- Posts: 11
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- K2 front-end editing options missing in Purity III template
K2 front-end editing options missing in Purity III template
- rustyDusty
- Topic Author
- Offline
- New Member
When I change template to js_wright the add and edit buttons are visible and function normally.
In Purity II they are missing. I posted this issue with Joomlart forum and they logged in as admin to fix the bug but couldn't find it.
www.joomlart.com/forums/topic/K2-front-end-editing-issue/
Maybe you can help. What line of code do I need to add to purity to fix this?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
To be honest since they created the overrides and know the specifics of the template, they should be able to correct them.
If you have coding skills, you can compare the default templates and apply the default code in the PurityIII templates where needed (the buttons in this case).
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- rustyDusty
- Topic Author
- Offline
- New Member
- Posts: 11
JoomlArt
In fact when I first went to them with this problem their response was:
"I spent my time to debug the problem on your site and besides that, I set your template to Joomla default but the edit button does not show on front-end of your site. This is not bug from our product maybe you don’t config to show it from the K2 component
In this case, you can contact K2 component and they will help you how to enable edit button from front-end of your site."
My reply was:
"Thank you. I appreciate the time you spent working on this. It’s strange that these edit buttons don’t show when the site is set to joomla default. I deleted them from my site so I can’t test this but my previous template before Purity III was js_wright and it shows up in that template just fine and works too. See attachment.
I don’t know what the problem could be. I’ll give up on it for now and just edit articles from the back-end."
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="catItemEditLink">
<a data-k2-modal="edit" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?>
And this is the code for item.php
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a data-k2-modal="edit" href="<?php echo $this->item->editLink; ?>"><?php echo JText::_('K2_EDIT_ITEM'); ?></a>
</span>
<?php endif; ?>
This code is for K2 2.7, Feel free to c/p my message so your issue will be resolved.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- rustyDusty
- Topic Author
- Offline
- New Member
- Posts: 11
After posting another reply at joomlart I decided to upgrade to joomla 3.5 then upgrade to k2 2.7 and the problem vanished!
I can see both edit and add item buttons just fine. What happened? (that's a rhetorical question.)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
It could be related to the template, or the overrides. Without seeing the code before and after the update I really would not know what was the issue. Anyway problem solved now :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- rustyDusty
- Topic Author
- Offline
- New Member
- Posts: 11
It was not the updates. An hour ago today I changed the Global Configuration --> SEO settings to "yes" for Use URL Rewriting. Poof! Buttons gone.
Set it back to "No" and they returned.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- K2 front-end editing options missing in Purity III template