Date wont hide even when 'hidden' in article options

GK User
Thu Mar 08, 2012 2:30 pm
I want for one article to have the title and black circle with publishdate hidden.
It worked for the title, but the black circle with the publishdate stays visible.

Somehow its visibility isnt connected to the title being visible or not.

Where or how can i make this black circle with publishing date invisible on a per article base?
User avatar
Senior Boarder

GK User
Thu Mar 08, 2012 3:45 pm
I checked the code in my installation but didn't see anything wrong, I may need to check further with our developers, however I have a quick solution for you:

Add this code to CSS Override:
Code: Select all
.item-page .itemDate, .blog-featured .itemDate, .article-content .itemDate{
display: none;
}
User avatar
Platinum Boarder

GK User
Thu Mar 08, 2012 4:06 pm
That did the trick :)

Feels to me like something that could be used in a future update of the template.

Thanks again!!
User avatar
Senior Boarder

GK User
Thu Mar 08, 2012 5:33 pm
Yeah I know it does but it doesn't solve the root of problem as I said, I will continue checking more.

Have a nice day!
User avatar
Platinum Boarder

GK User
Fri Mar 30, 2012 11:07 pm
Don Lee wrote:Yeah I know it does but it doesn't solve the root of problem as I said, I will continue checking more.

Have a nice day!


Mmm ... strange the trick doesn't work for me. I put it as is into the override css, as follow:

Code: Select all
/*
#------------------------------------------------------------------------
# boutique - September 2011 template (for Joomla 1.6/1.7)
#
# Copyright (C) 2007-2011 Gavick.com. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.gavick.com
# Support: [email protected]
*/

/* Here you can include your override CSS styles */

    .item-page .itemDate, .blog-featured .itemDate, .article-content .itemDate{
    display: none;}


Then in the article I put HIDE on all Dates fields (modified, publish, created). The black spot with the date is still there.
User avatar
Expert Boarder

GK User
Sat Mar 31, 2012 1:44 pm
Hi assenzio,

Can you please give me the link to your site to check it further?

Thanks,
User avatar
Platinum Boarder

GK User
Sat Mar 31, 2012 1:54 pm
Hi Don Lee,

I also have the same problem only I'm working offline. Do you any suggestion to solve the problem? The override.css trick also didn't work for me.

Thanks in advance!

Kind regards,

Kim
User avatar
Fresh Boarder

GK User
Sat Mar 31, 2012 2:33 pm
Hi Kim,

I need to check the site to know what's wrong with it, can't sit here and guess anything so once you put it online just give me the link and I will help right away, now please make sure that you have add the code to file override.css and turn on CSS Override mode in your template setting.

Cheers,
User avatar
Platinum Boarder

GK User
Sun Apr 01, 2012 3:24 pm
It works! I forgot to turn the CSS override ON in my template settings like you said. Stupid..

Thanks anyway for your quick reply.

Greets!



Don Lee wrote:Hi Kim,

I need to check the site to know what's wrong with it, can't sit here and guess anything so once you put it online just give me the link and I will help right away, now please make sure that you have add the code to file override.css and turn on CSS Override mode in your template setting.

Cheers,
User avatar
Fresh Boarder

GK User
Sun Apr 01, 2012 6:07 pm
dt84 wrote:It works! I forgot to turn the CSS override ON in my template settings like you said. Stupid..


Damn, same for me ! Now works fine !

To others: To turn on the CSS override pls go to to the template manager styles, then Advanced Settings.
User avatar
Expert Boarder

GK User
Tue Apr 03, 2012 2:26 pm
Hi guys,

I don't think the css override technique is the best option since it will hide the date for all articles...
To be able to control whether to show the article creation date or not, open file templates\gk_boutique\html\com_content\article\default.php

and change:
<div class="itemDate">
<span class="itemDateDay">
<?php echo JHTML::_('date',$this->item->created, 'd'); ?>
</span>
<span class="itemDateMonth">
<?php echo JHTML::_('date',$this->item->created, 'M'); ?>
</span>
</div>

to:
<?php if ($params->get('show_create_date')) : ?>
<div class="itemDate">
<span class="itemDateDay">
<?php echo JHTML::_('date',$this->item->created, 'd'); ?>
</span>
<span class="itemDateMonth">
<?php echo JHTML::_('date',$this->item->created, 'M'); ?>
</span>
</div>
<?php endif; ?>
User avatar
Fresh Boarder

GK User
Wed Apr 04, 2012 3:29 pm
Hi devplus,

Yeah you're right, it the best solution to add a logic for the code. Thank you!

Cheers,
User avatar
Platinum Boarder

GK User
Sun Jun 10, 2012 9:58 pm
Solution for k2 items:
open file templates/gk_boutique/html/com_k2/templates/yourtemplate/item.php

You'll see this in line 51-59: (boutique v2.9.1)

Code: Select all
  <?php if($this->item->params->get('itemTitle')): ?>
                     <!-- Item title -->
                         <!-- Date created -->
                         <div class="itemDate">
                            <span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
                            <span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
                         </div>
                     <h2 class="itemTitle">
                           <?php echo $this->item->title; ?>


That causes the date "linked" to the title display.
Modify the codes to saperate them like this:

Code: Select all
              
                    
                         <!-- Date created -->
                           
                              <?php if($this->item->params->get('itemDateCreated')): ?>
                         <div class="itemDate">
                           
                            <span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
                            <span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
                               
                               
                         </div>
                              <?php endif; ?>
                             
                            <!-- Item title -->
                               
                             <?php if($this->item->params->get('itemTitle')): ?>
                     <h2 class="itemTitle">
                           <?php echo $this->item->title; ?>
User avatar
Expert Boarder

GK User
Tue Jul 24, 2012 10:30 am
Thanks - that last one works... except the title is now pushed a bit to the left... http://www.joineryspecialists.co.nz/custom-joinery

Any ideas on how to move it back?
User avatar
Junior Boarder

GK User
Wed Jul 25, 2012 3:24 pm
Hi,

Which title do you want to move, page title or category titles?
User avatar
Platinum Boarder


cron