item aside info

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
Thu Oct 10, 2013 10:45 am
Reply with quote
Report this post
i would like to have the item aside info only visible for administrator
i want to be able to edit text in the frontend (more convenient for customer)
but when i hide the categorie info the edit button disappears as well
User avatar
Senior Boarder

teitbite
Fri Oct 11, 2013 4:17 pm
Reply with quote
Report this post
Hi

I'm not sure if I understood correctly. Can You please tell me what is item aside info ? If it's a module than all You need to do is to set this module to have a "Special" level access.
User avatar
Moderator

GK User
Thu Nov 21, 2013 12:54 pm
Reply with quote
Report this post
no its not a module, it's a template thing
in firebug it shows 'side class="itemAsideInfo">'
its the grey box left of the articles
i can add display none, but then you can't edit articles in the frontend anymore
User avatar
Senior Boarder

teitbite
Thu Nov 21, 2013 6:56 pm
Reply with quote
Report this post
Hi

On now I understand, but the same name was used while overriding regular joomla article layout and k2 layout. Please just tell me the url to example page and I'll tell You where to make changes.
User avatar
Moderator

GK User
Fri Nov 22, 2013 9:58 am
Reply with quote
Report this post
User avatar
Senior Boarder

teitbite
Sun Nov 24, 2013 8:27 pm
Reply with quote
Report this post
Hi

Please edit /html/com_content/article/default.php around line 305 find code:

Code: Select all
            <?php if ($canEdit) : ?>
               <?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.edit', $this->item, $params)); ?>
            <?php endif; ?>


and move it outside <aside class="itemAsideInfo"></aside> layer. This way edit button will be visible even if this block will be hidden.
User avatar
Moderator


cron