GavickPro / Meet-Gavern

Meet Gavern Template for Joomla! 3.0
42 stars 41 forks source link

Created date not showing #209

Open Pascal1999 opened 10 years ago

Pascal1999 commented 10 years ago

Hi all,

Is there anybody who can help me out? I use de free Meet_Gavern template but the created date isn't showing next to the article. Not in cat-view and also not in item-view.

Offcourse al settings are set to 'show'.

I found a possible solution on Gavick but it didn't work! https://www.gavick.com/forums/rockwall-joomla25/created-date-does-not-show-k2-item-and-category-view-37563.html?p=187510&hilit=created%20date#p187510

Can somebody help me out please. I really need this to work.

Thanks in advance and sorry for my bad english!

dziudek commented 10 years ago

Hello,

Please check your settings - for me this feature is working fine on the single item page.

Pascal1999 commented 10 years ago

I did check all my settings. I even set ALL my settings to 'show' just to be sure!

Other question. I saw stand "Meet Gavern v1.4? The free version is up to 1.3 as far as i know. Is there a update that i don't know of?

Please get beack to me. I really appreciate your help!

Pascal1999 commented 10 years ago

P.s. I forgot to mention that i use K2 for my articles.

dziudek commented 10 years ago

Do you know that in K2 create date is displayed as the big yellow block?

Meet Gavern 1.4 will be released most probably in this week.

Pascal1999 commented 10 years ago

Yes i know but there is no mentioning of the year and that is kind of missleading for some people!

Btw, very nice that there is going to be an updated version of Meet_Gavern.

dziudek commented 10 years ago

In this case you have to modify the template code for displaying a year - it is a custom work.

Pascal1999 commented 10 years ago

I don't have the knowledge for that! Isn't there a way to implement that in the update?

dziudek commented 10 years ago

You are the first person who requested it - additionally it will destroy the current block date layout.

Pascal1999 commented 10 years ago

If it is to much work then never mind, but i thought that it was normal that date-notation also has a yearcount in it.

If you use de normal content component from Joomla in combination with Meet_Gavern, then the created date is shown. That's why it came to me! exsample

But i understand that it could ruin the layout. So that's just to bad for me.

kenmcmahon commented 9 years ago

Having the year on posts can be important, otherwise it's difficult to trust if you're looking at something that's current. I managed this by editing the helpers.layout.fragments.php file. The full path to it is: themes/MeetGavernWP/gavern/helpers/helpers.layout.fragments.php

The relevant section is lines 248 to 254 shown below:

<a href="<?php echo esc_url(get_permalink()); ?>" title="<?php echo esc_attr(get_the_time()); ?>" rel="bookmark"> <time class="entry-date" datetime="<?php echo esc_attr(get_the_date(DATE_W3C)); ?>"> <?php echo esc_html(get_the_date('d')); ?> <span><?php echo esc_html(get_the_date('M')); ?></span> </time> </a>

at the end of the line: <span><?php echo esc_html(get_the_date('M')); ?></span>

add a <br /> followed by the following line:

<span><?php echo esc_html(get_the_date('Y')); ?></span>

Then you just need to edit your override.css stylesheet to adjust the spacing and lengthen the coloured panel to accommodate the year.

Here's what it looks like: image