minor changes to template

GK User
Wed Mar 07, 2012 11:01 pm
Can you do me a favor...doing this for a friend, but haven't spent much time on it, plus I'm not up to date w/ Joomla 2.5 or K2...so somewhat lost...

but here are my problems,
see imgs attached..
1. Trying to get rid of the overlaid black box & read more box
2. trying to get rid of date published
User avatar
Junior Boarder

GK User
Wed Mar 07, 2012 11:05 pm
tried different ways to disable
Written by Super User, Print, Email, Be the first to comment!, ...

to no avail...any help will be greatly appreciated....

more familiar w/ the older version of Joomla...think can be done in global settings of article manager...but at a lost here...

Thank you & God bless
User avatar
Junior Boarder

GK User
Wed Mar 07, 2012 11:08 pm
by the way...Botique template

thungrac221 wrote:tried different ways to disable
Written by Super User, Print, Email, Be the first to comment!, ...

to no avail...any help will be greatly appreciated....

more familiar w/ the older version of Joomla...think can be done in global settings of article manager...but at a lost here...

Thank you & God bless
User avatar
Junior Boarder

GK User
Tue Mar 13, 2012 1:04 pm
Your template is in latest available version (2.7) ? Did you try to use this enable/disable article informations in article settings ?
User avatar
Platinum Boarder

GK User
Fri Mar 16, 2012 3:23 am
bkrztuk wrote:Your template is in latest available version (2.7) ? Did you try to use this enable/disable article informations in article settings ?


Yes, it is 2.7, & yes tried to do in article settings...title & date seem to be linked together...cannot hide the date...doesn't do ANYTHING, but if hide title, DATE & TITLE disappear.
User avatar
Junior Boarder

GK User
Sun Jun 10, 2012 9:37 pm
I'm stuck with this too. First, I install the quickstart with bontique v2.8.2. Now I update to v2.9.1, but the error is still there, even you set to hide the date in category setting or item display setting.
User avatar
Expert Boarder

GK User
Sun Jun 10, 2012 9:54 pm
I found the solution here for joomla native articles:
https://www.gavick.com/forums/boutique/ ... 14609.html

devplus wrote: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; ?>


And this is what I've done with k2 items:
open file templates/gk_boutique/html/com_k2/templates/yourtemplate/item.php

You'll see this in line 51-59:

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; ?>


Cheers!
User avatar
Expert Boarder


cron