Title and date to show in article, not in header

Support desk for Multipurpose Quark Theme
GK User
Wed Sep 16, 2015 3:05 pm
Hi, I'm using Quark 1.2.0 (I updated from the first version) and I need to make a change in the single (joomla) article view.
All is fine in the blog view, where are displayed title and date.
Now, as seen in the demo, I have only the author. The title and date in the demo are in the header, but in my website the header is the same module for all the articles and consequently the title&date of each article is not shown. I don't know how to display them in the article.
I attach a screen shot and if you need further details I can send them to you in a pm, the site is already public and I don't want to send its address.
title-date-in-article-view.jpg


Thanks in advance.
User avatar
Senior Boarder

teitbite
Thu Sep 17, 2015 8:36 pm
Hi

Please tell me the url to the page with example of blog item and an url to the page where You want this changes. Send me also an access to FTP and make sure title and date is enabled in joomla articles settings.
User avatar
Moderator

teitbite
Sat Sep 19, 2015 9:46 am
Hi

Both this articles look like regular joomla article content, so if it's using same file than it has to be a configuration issue. Unfortunately the access You've send me doesn't have a sufficient level to allow me enter joomla panel. Please extend it or send me an new access with higher permissions.

What is the difference between this articles ? I think all You need to do is to compare settings or use the same layout.
User avatar
Moderator

teitbite
Sat Sep 19, 2015 10:16 am
Hi

Thank You for the other PM. I was comparing wrong articles, but looks like in K2 there are not all features You need enabled, so I will still need an access to joomla panel to enable it first to compare and move positions.
User avatar
Moderator

GK User
Sun Sep 20, 2015 9:51 am
Hi, sorry for the access problem.
Now you can access to backend with the same username and password you already have.

Thanks,
best regards
User avatar
Senior Boarder

GK User
Sun Sep 20, 2015 9:53 am
Maybe the problem comes form the fact that I renamed /html/com_user to /html/_com_user? I had the problem described here https://www.gavick.com/forums/quark/editing-profile-opens-a-blank-page-47116 and renaming the folder fixed the problem.
User avatar
Senior Boarder

teitbite
Sun Sep 20, 2015 1:42 pm
Hi

No, this file is not used in this component. I've made some changes to /html/com_content/article/default.php

I have mostly moved title and date elements from the top header into the place closed to what You are looking for. Please check.
User avatar
Moderator

GK User
Mon Sep 21, 2015 8:59 am
Hi, thanks, it's perfect.
Did you make the changes as override or in template files directly? I say this because when I will update template I don't want to lose the changes you made.

Now I would like to replicate the same in K2 articles, like the one I sent you in first PM (www.xxxxxx.org/noticies/donant-.............)
Is it possible? If you give me the code I can make it myself.

Thanks again for your help.
User avatar
Senior Boarder

teitbite
Wed Sep 23, 2015 7:32 pm
Hi

All changes done were to /html/com_content/article/default.php file, so You can check it there, but this will will get overwritten while template update. Please tell me the url to the page You wish to make a similar change. Code will be much different since different informations are in regular joomla articles and K2.
User avatar
Moderator

GK User
Thu Sep 24, 2015 12:23 pm
Ok, I've just sent you a PM.

Thanks.
User avatar
Senior Boarder

teitbite
Sun Sep 27, 2015 8:52 am
Hi

Please check. I've made some changes to /html/com_k2/tempalte/default/item.php . Basically added this code to top of the article content:

Code: Select all
                <div class="item-title-wrap">
                     <h1 class="item-title">
                        <?php echo $this->item->title; ?>
                     </h1>
               
                     <?php if($this->item->params->get('itemDateCreated')): ?>
                     <span class="item-category">
                           <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"> <?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?> </time>
                     </span>
                     <?php endif; ?>
                </div>
User avatar
Moderator

GK User
Mon Sep 28, 2015 12:36 pm
It's perfect, thanks a lot!
User avatar
Senior Boarder


cron