Gavick University and DATE in blog

GK User
Fri Nov 25, 2016 9:09 am
On this page:
http://gh663100.eshley.hostime.cz/index ... Itemid=122
Date of article is on smal box (this box is over text). But on this blog I dont want date in box, I want clasic view (other pages we want date in box) Is it possible?
User avatar
Junior Boarder

teitbite
Mon Nov 28, 2016 12:02 pm
Hi

Add a page class suffix in template's setting "hidedate" than add this to override.css

Code: Select all
.hidedate header > time {
display: none;
}
User avatar
Moderator

GK User
Tue Nov 29, 2016 3:07 pm
This is completely hide date (createdate), but I want view standard date (21.2.2016 - not in box) - and class in override.css must be .bloghidedate (not only .hidedate)
User avatar
Junior Boarder

teitbite
Mon Dec 05, 2016 6:00 pm
Hi

You can use any page class suffix You like. Just remember it's something unique so it will not affect other pages. Here is an example https://www.gavick.com/documentation/jo ... omla-pages how to use page class suffix.

Than let say You have used a suffix called "customdate", so now just add a class to override.css

Code: Select all
.dateregformat,
.customdate article header time {
    display: none;
}

.customdate article header {
    padding: 0;
}

.customdate .dateregformat {
    display: block;
}


last step will be to add this:
Code: Select all
          <div class="dateregformat"><?php JHTML::_('date', $this->item->publish_up, JText::_('d.m.Y')); ?></div>


to /html/com_content/article/default.php line 103 under
Code: Select all
          <header<?php if(!($params->get('show_publish_date') || $params->get('show_create_date'))) : ?> class="nodate"<?php endif; ?>>
                    <?php if($params->get('show_publish_date')) : ?>
User avatar
Moderator


cron