Miércoles, 16 Abril 2014 07:40
beggarly

fix for frontend edit item to show or not in sitemap

Report Xmap bugs on this forum.

fix for frontend edit item to show or not in sitemap

Postby mhehm » Sun Jan 27, 2013 1:18 pm

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:
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();
User avatar
mhehm
Senior Boarder
Senior Boarder
 
Posts: 71
Joined: Sun Jan 20, 2013 1:22 pm
Location: Iran

Re: fix for frontend edit item to show or not in sitemap

Postby mhehm » Mon Jan 28, 2013 5:54 am

I pulled this to https://github.com/guilleva/Xmap
User avatar
mhehm
Senior Boarder
Senior Boarder
 
Posts: 71
Joined: Sun Jan 20, 2013 1:22 pm
Location: Iran


Return to Bugs



Who is online

Users browsing this forum: No registered users and 1 guest