- Posts: 529
COMMUNITY FORUM
Hide Title > "Edit Item"-Button also hide
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
10 years 9 months ago #130606
by Franz Wohlkönig
Hide Title > "Edit Item"-Button also hide was created by Franz Wohlkönig
Hi,
hiding Itemtitle also hides "Edit Item"-Button.
Tried to move userItemEditLink-Part of user.php to another Place: no success. Same behaviour with "?template=system".
What i have to change, that Button still shows?
Thanks and Regards
hiding Itemtitle also hides "Edit Item"-Button.
Tried to move userItemEditLink-Part of user.php to another Place: no success. Same behaviour with "?template=system".
What i have to change, that Button still shows?
Thanks and Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 9 months ago #130607
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Hide Title > "Edit Item"-Button also hide
You are right Franz.
The edit item code is the following:
You need to move this code outside the item's title.
example code:
This code is located in item.php.
Hint: Read this file to locate the proper item.php
nuevvo.com/blog/item/84-k2-inheritance-sub-templating
The edit item code is the following:
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?>
You need to move this code outside the item's title.
example code:
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?>
<?php if($this->item->params->get('itemTitle')): ?>
<!-- Item title -->
<h2 class="itemTitle">
<?php echo $this->item->title; ?>
<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span>
<sup>
<?php echo JText::_('K2_FEATURED'); ?>
</sup>
</span>
<?php endif; ?>
</h2>
<?php endif; ?>
This code is located in item.php.
Hint: Read this file to locate the proper item.php
nuevvo.com/blog/item/84-k2-inheritance-sub-templating
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 529
10 years 9 months ago #130608
by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Re: Hide Title > "Edit Item"-Button also hide
Hi Krikor,
Thanks for helping, now works*g
Regards
Thanks for helping, now works*g
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 9 months ago #130609
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Hide Title > "Edit Item"-Button also hide
Thank you Franz,
I 'm glad I could help you.
I 'm glad I could help you.
Please Log in or Create an account to join the conversation.