Show Publish Date in Joomla Tag Category View

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Nov 29, 2014 12:29 am
Reply with quote
Report this post
Hello,

How can i show publish date of an article in Joomla Tag Category View?

Thanks
User avatar
Senior Boarder

teitbite
Mon Dec 01, 2014 10:47 am
Reply with quote
Report this post
Hi

Is it a tag or a category view ? Can You show me which page You have in mind ?
User avatar
Moderator

GK User
Wed Dec 03, 2014 1:39 pm
Reply with quote
Report this post
Hi,

Ow sorry,i want to show publish date in Joomla Tag Blog Layout view, like the category view. I've just sent you url via private msg.

Current View

current-view.jpg


Want to be like that

desired-view.jpg
User avatar
Senior Boarder

teitbite
Thu Dec 04, 2014 1:21 pm
Reply with quote
Report this post
Hi

I cannot find where the write code is in component. Have You changed anything there ? Please send me an access to ftp so I'll look for this in Your site directly.
User avatar
Moderator

GK User
Sat Dec 06, 2014 6:26 pm
Reply with quote
Report this post
teitbite wrote:Hi

I cannot find where the write code is in component. Have You changed anything there ? Please send me an access to ftp so I'll look for this in Your site directly.


I am sending you via private message
User avatar
Senior Boarder

teitbite
Sun Dec 07, 2014 5:28 pm
Reply with quote
Report this post
Hi

I have located the file in /components/com_tags/ folder, but cannot change anything there. I'm receiving this message while trying:

Upload failed (/var/www/avmindirim.com/public_html/components/com_tags/views/tags/tmpl/default_items.php-7f63d3e5-9609-4032-8b27-be4f9adb0b0b).

Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.). Please contact your web hosting service provider for assistance.
User avatar
Moderator

GK User
Mon Dec 08, 2014 3:52 pm
Reply with quote
Report this post
Hi,

Sorry for that, i have given you full permission, can you try again please?
User avatar
Senior Boarder

teitbite
Tue Dec 09, 2014 6:49 pm
Reply with quote
Report this post
Hi

I have added this code to /components/com_tags/view/tag/tmpl/default_items.php

Code: Select all
            <div class="item-date"><?php echo JHtml::_('date', $item->tag_date, 'j F Y'); ?></div>


than I copied this file to /html/com_tags/tag/ folder.

It's closest to the look You have on category pages. Unfortunately it's not easy to make it show over the line, so I hope it can stay like that.
User avatar
Moderator

GK User
Tue Dec 09, 2014 7:29 pm
Reply with quote
Report this post
Hi,

That's better i appreciate your help, thank you very much.
User avatar
Senior Boarder

GK User
Wed Dec 10, 2014 3:39 pm
Reply with quote
Report this post
Hi again;

Is this cause any trouble like that? tag_date -> core_created_time

Code: Select all
 <div class="item-date"><?php echo JHtml::_('date', $item->core_created_time, 'j F Y'); ?></div>


Thanks

teitbite wrote:Hi

I have added this code to /components/com_tags/view/tag/tmpl/default_items.php

Code: Select all
            <div class="item-date"><?php echo JHtml::_('date', $item->tag_date, 'j F Y'); ?></div>


than I copied this file to /html/com_tags/tag/ folder.

It's closest to the look You have on category pages. Unfortunately it's not easy to make it show over the line, so I hope it can stay like that.
User avatar
Senior Boarder

teitbite
Thu Dec 11, 2014 1:08 pm
Reply with quote
Report this post
Hi

I do not understand, but if You are asking if the code You pasted is correct than I must say I do not know. I do not think a value item->core_created_time exists so there will be no date displayed at all. Tags has a very few informations prepared from You can chose from.

What are You trying to do ?
User avatar
Moderator

GK User
Fri Dec 12, 2014 2:13 am
Reply with quote
Report this post
Hi again,

With tag_date value, i noticed that date is showing the tagged time of the article, for example i published an article in 2013 then add a tag to this article in 2014, tag_date becomes 2014, so i want to show publish date and i searched a little than i found that there is a core_created_time. Now date shows the publish date (same as created date in my website). I wanted to know if this cause any trouble. But it seems ok now.

Thank you again

teitbite wrote:Hi

I do not understand, but if You are asking if the code You pasted is correct than I must say I do not know. I do not think a value item->core_created_time exists so there will be no date displayed at all. Tags has a very few informations prepared from You can chose from.

What are You trying to do ?
User avatar
Senior Boarder

teitbite
Sun Dec 14, 2014 9:44 pm
Reply with quote
Report this post
Hi

No it will not cause any trouble. It's a simple display element, so the only problem which could be with it is that nothing will be shown. Thanks for letting me know. I did not know that this values are different.
User avatar
Moderator


cron