fix for frontend edit item to show or not in sitemap
2 posts
• Page 1 of 1
fix for frontend edit item to show or not in sitemap
Hi. in joomla 3 i create a sitemap and created a menu to it in frontend. in frontend i logined as super admin user to edit items to show or not sow in sitemap. when i not logined, sitemap work correctly but when i login and click sitemapm it get 500 internal server error and mootools not found.
fix for compatiable with joomla 3:
in file: joomla root \components\com_xmap\views\html\tmpl\default.php
search:
change it to:
I get last version from github and seed that you fixed this in that. but based on http://docs.joomla.org/JHtmlBehavior::framework/1.6
joomla from version 1.6 support JHTML::_('behavior.framework', true); then you do not need to check joomla version for that. you just need change JHTML::_('behavior.mootools'); to JHTML::_('behavior.framework', true);
------------
search:
change it to:
I get last version from github and seed that you fixed this in that.
--------------------------
when i set joomla debuger to developer, and when click on tick icon to unpublish items in frontend, it do not work lively. to icon change correctly below strike error must fixed :
in file joomla root \components\com_xmap\models\sitemap.php
search:
change it to:
fix for compatiable with joomla 3:
in file: joomla root \components\com_xmap\views\html\tmpl\default.php
search:
- Code: Select all
JHTML::_('behavior.mootools');
change it to:
- Code: Select all
JHTML::_('behavior.framework', true);
I get last version from github and seed that you fixed this in that. but based on http://docs.joomla.org/JHtmlBehavior::framework/1.6
joomla from version 1.6 support JHTML::_('behavior.framework', true); then you do not need to check joomla version for that. you just need change JHTML::_('behavior.mootools'); to JHTML::_('behavior.framework', true);
------------
search:
- Code: Select all
JUtility::getToken()
change it to:
- Code: Select all
JSession::getFormToken()
I get last version from github and seed that you fixed this in that.
--------------------------
when i set joomla debuger to developer, and when click on tick icon to unpublish items in frontend, it do not work lively. to icon change correctly below strike error must fixed :
in file joomla root \components\com_xmap\models\sitemap.php
search:
- Code: Select all
$db = &JFactory::getDBO();
change it to:
- Code: Select all
$db = JFactory::getDBO();
-

mhehm - Senior Boarder

- Posts: 53
- Joined: Sun Jan 20, 2013 1:22 pm
- Location: Iran
Re: fix for frontend edit item to show or not in sitemap
I pulled this to https://github.com/guilleva/Xmap
-

mhehm - Senior Boarder

- Posts: 53
- Joined: Sun Jan 20, 2013 1:22 pm
- Location: Iran
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot], Google Adsense [Bot] and 4 guests