move ;print-email on top

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
Sun Mar 17, 2013 10:02 pm
Reply with quote
Report this post
hi

can you help with this

I need to do the same as mention (print screen) but i would like also to move my Photos on left to reduce the space and move -email ,print and category on top as mention on print screen.

Thanks

http://planetekreyol.com/index.php/articlebiographie/84-ti-manno
User avatar
Expert Boarder

Konrad M
Mon Mar 18, 2013 8:43 am
Reply with quote
Report this post
Hi,
please go to html/com_content/article/default.php and find:
Code: Select all
<?php if (!$this->print) : ?>
         <?php if ($params->get('show_print_icon')) : ?>
         <li class="print-icon">
         <?php echo JHtml::_('icon.print_popup',  $this->item, $params); ?>
         </li>
         <?php endif; ?>

         <?php if ($params->get('show_email_icon')) : ?>
         <li class="email-icon">
         <?php echo JHtml::_('icon.email',  $this->item, $params); ?>
         </li>
         <?php endif; ?>
         
         <?php if ($canEdit) : ?>
         <li class="edit-icon">
         <?php echo JHtml::_('icon.edit', $this->item, $params); ?>
         </li>
         <?php endif; ?>
      <?php else : ?>
      <li>
      <?php echo JHtml::_('icon.print_screen',  $this->item, $params); ?>
      </li>
      <?php endif; ?>

then please cut it and paste after:
Code: Select all
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
         <li class="createdby">
            <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
            
            <?php if (!empty($this->item->contactid) && $params->get('link_author') == true): ?>
            <?php
               $needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
               $menu = JFactory::getApplication()->getMenu();
               $item = $menu->getItems('link', $needle, true);
               $cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
            ?>
               <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($cntlink), $author)); ?>
            <?php else: ?>
               <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
            <?php endif; ?>
         </li>
         <?php endif; ?>

Last thing you need to do is add this to override.css
Code: Select all
article aside {
display:none !important;
}
.itemAsideInfo + .itemBody {
margin-left:0 !important;
}

Remember to enable override.css option in template settings.
User avatar

GK User
Wed Mar 20, 2013 5:17 am
Reply with quote
Report this post
i did but nowican see the print icons,email etc.... they all gone

i think do i need to remove the old code and paste the new one ?

Thanks
User avatar
Expert Boarder

GK User
Wed Mar 20, 2013 5:26 am
Reply with quote
Report this post
for article category article the code works but you click on the article ..there is no category , no email ,no printer icon

http://planetekreyol.com/index.php/histoire
User avatar
Expert Boarder

Konrad M
Wed Mar 20, 2013 1:21 pm
Reply with quote
Report this post
First please check if you didn't disable it in article options.
User avatar

GK User
Thu Mar 21, 2013 12:24 am
Reply with quote
Report this post
Konrad M wrote:First please check if you didn't disable it in article options.


I don,t .. i did not do anything after i pasted the new code ...
User avatar
Expert Boarder

Konrad M
Fri Mar 22, 2013 10:05 am
Reply with quote
Report this post
Ok, please send me Private Message with ftp access I will check it. Remember add link to this topic too.
User avatar


cron