-
AuthorPosts
-
zakladadadic Friend
zakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
November 19, 2009 at 11:02 am #146182Hi,
How can I avoid showing Mega menu descriptions in sitemap (Xmap) links.
ieExplore Don’t be surprised
Menu showcase [group=1] Maximize your Joomla menuSuch sitemap is awkward. Is this issue for JA or Xmap ?
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 19, 2009 at 11:24 am #324257It’s not really an issue, it’s a case that is out of megamenu code.
I think you can desable showing menu title in x-map, checkout the x-map config.zakladadadic Friendzakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
November 19, 2009 at 1:08 pm #324263<em>@basskool 153717 wrote:</em><blockquote>It’s not really an issue, it’s a case that is out of megamenu code.
I think you can desable showing menu title in x-map, checkout the x-map config.</blockquote>Thanks basskool, but Xmap option “show menu titles” makes no difference, titles are always visible showing megamenu code (brackets).
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 19, 2009 at 2:00 pm #324266x-map uses his own cache, so clear that cache and Joomla cache also.
Meanwhile, it is time to find a place for this code into x-map
//Parse title and remove the options & description which configure for mega menu.
$title = $node->data();
$title = str_replace (array('\[','\]'), array('%open%', '%close%'), $title);
$regex = '/([^[]*)[([^]]*)](.*)$/';
if (preg_match ($regex, $title, $matches)) {
$title = $matches[1];
} else {
$title = $title;
}
$title = str_replace (array('%open%', '%close%'), array('[',']'), $title);
$node->setData ($title);
This code should clean the menu item title, and I haven’t got that far like you, but at least I know the problem 🙂
Danny1 user says Thank You to korb for this useful post
zakladadadic Friendzakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
November 20, 2009 at 7:57 pm #324447Thank you for your effort. Can you please tell me where exactly to place the code since it looks like you are an expert (even though you haven’t got that far as I did:D. I tried on several spots/files without getting any difference (or even worse, parse error messages).
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 20, 2009 at 8:15 pm #324451If you are no coder, don’t try to put this code anywhere. You better show this code to x-map developers http://joomla.vargas.co.cr/, explain to them your issue, and if they provide you with a solution share it with us.
I will do that anyway but now I am so busy with something else.
Regards,
Dannykorb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 20, 2009 at 11:25 pm #324464Ah, I could swear I saw x-map config option to desable showing menu titles with NO PROBLEM!
Yes you can do that nce and easy in the general configuration. 🙂Regards,
Dannyzakladadadic Friendzakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
November 21, 2009 at 10:10 am #324508<em>@zakladadadic 153733 wrote:</em><blockquote>Thanks basskool, but Xmap option “show menu titles” makes no difference, titles are always visible showing megamenu code (brackets).</blockquote>
Danny, as I said in previous post, that option makes no difference (see attached image).
If this works for you, than I must have some other problem.
Thank you!
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 21, 2009 at 11:30 am #324519I understand perfect. The x-map option desables only the menu titles, like Main menu, User Menu, these.
But our problem here is the MENU ITEMS TITLES.
Seems we have to ask for help at X-map developers.Regards,
Dannyprakash Friendprakash
- Join date:
- October 2008
- Posts:
- 439
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 146 times in 115 posts
November 21, 2009 at 11:31 am #324520Hi,
based on some knowledge that I have regarding XMAP and MegaMenu I created a sample output for XMAP which does not display the text after []. I am not sure if my method is the correct method or if it has any effect on performance (if there are lots of links). Please let me know of a better solution if possible.
This is the code – the file is – componentscom_xmapxmap.html.php (the code pasted below is the entire xmap.html.php file
<?php
/**
* $Id: xmap.html.php 24 2009-03-13 15:05:30Z guilleva $
* $LastChangedDate: 2009-03-13 09:05:30 -0600 (Fri, 13 Mar 2009) $
* $LastChangedBy: guilleva $
* Xmap by Guillermo Vargas
* A Sitemap component for Joomla! CMS (http://www.joomla.org)
* Author Website: http://joomla.vargas.co.cr
* Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/defined('_JEXEC') or die('Direct Access to this location is not allowed.');
/** Wraps HTML output */
class XmapHtml extends Xmap {
var $level = -1;
var $_openList = '';
var $_closeList = '';
var $_closeItem = '';
var $_childs;
var $_width;
var $_isAdmin = 0;function XmapHtml (&$config, &$sitemap) {
$this->view = 'html';
Xmap::Xmap($config, $sitemap);
$this->_parent_children=array();
$this->_last_child=array();
}/**
* Print one node of the sitemap
*/
function printNode( &$node ) {
global $Itemid;$out = '';
if ($this->sitemap->isExcluded($node->id,$node->uid) && !$this->_isAdmin) {
return FALSE;
}// To avoid duplicate children in the same parent
if ( !empty($this->_parent_children[$this->level][$node->uid]) ) {
return FALSE;
}//var_dump($this->_parent_children[$this->level]);
$this->_parent_children[$this->level][$node->uid] = true;$out .= $this->_closeItem;
$out .= $this->_openList;
$this->_openList = "";if ( $Itemid == $node->id )
$out .= '<li class="active">';
else
$out .= '<li>';$link = Xmap::getItemLink($node);
if( !isset($node->browserNav) )
$node->browserNav = 0;$node->name = htmlspecialchars($node->name);
$testavaluetoday = htmlspecialchars($node->name);
$returnedvaluetoday = strpos($testavaluetoday,"[");
if ($returnedvaluetoday != 0){
$finalvalueretrievedtoday = substr($testavaluetoday,0,$returnedvaluetoday);
}
else{
$finalvalueretrievedtoday = htmlspecialchars($node->name);
}
switch( $node->browserNav ) {
case 1: // open url in new window
$ext_image = '';
if ( $this->sitemap->exlinks ) {
$ext_image = 'Â <img src="'. $this->live_site .'/components/com_xmap/images/'. $this->sitemap->ext_image .'" alt="' . _XMAP_SHOW_AS_EXTERN_ALT . '" title="' . _XMAP_SHOW_AS_EXTERN_ALT . '" border="0" />';
}
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'" target="_blank">'. $finalvalueretrievedtoday . $ext_image .'</a>';
break;case 2: // open url in javascript popup window
$ext_image = '';
if( $this->sitemap->exlinks ) {
$ext_image = 'Â <img src="'. $this->live_site .'/components/com_xmap/images/'. $this->sitemap->ext_image .'" alt="' . _XMAP_SHOW_AS_EXTERN_ALT . '" title="' . _XMAP_SHOW_AS_EXTERN_ALT . '" border="0" />';
}
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'" target="_blank" '. "onClick="javascript: window.open('". $link ."', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550'); return false;">". $finalvalueretrievedtoday . $ext_image."</a>";
break;case 3: // no link
$out .= '<span>'. $finalvalueretrievedtoday .'</span>';
break;default: // open url in parent window
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'">'. $finalvalueretrievedtoday .'</a>';
break;
}$this->_closeItem = "</li>n";
$this->_childs[$this->level]++;
echo $out;if ($this->_isAdmin) {
if ( $this->sitemap->isExcluded($node->id,$node->uid) ) {
$img = '<img src="'.$this->live_site.'/administrator/images/publish_x.png" alt="'._XMAP_EXT_PUBLISHED.'" title="'._XMAP_EXT_UNPUBLISHED.'">';
$class= 'xmapexclon';
} else {
$img = '<img src="'.$this->live_site.'/administrator/images/tick.png" alt="'._XMAP_EXT_PUBLISHED.'" title="'._XMAP_EXT_PUBLISHED.'" />';
$class= 'xmapexcloff';
}
echo ' <a href= "#" class="xmapexcl '.$class.'" rel="{uid:''.$node->uid.'',itemid:'.$node->id.'}">'.$img.'</a>';
# echo ' <a href= "#" class="xmapoptions" rel="{uid:''.$node->uid.'',itemid:'.$node->id.'}"><img src="'.$this->live_site.'/components/com_xmap/images/options.gif" border="0" alt="Options" title="Options" /></a>';
}
//echo $this->_last_child[$this->level-1] . ' ' . $this->_parent_children[$this->level]['parent'];
$this->count++;$this->_last_child[$this->level] = $node->uid;
return TRUE;
}/**
* Moves sitemap level up or down
*/
function changeLevel( $level ) {
if ( $level > 0 ) {
# We do not print start ul here to avoid empty list, it's printed at the first child
$this->level += $level;
$this->_childs[$this->level]=0;
$this->_openList = "n<ul class="level_".$this->level."">n";
$this->_closeItem = '';// If we are moving up, then lets clean the children of this level
// because for sure this is a new set of links
if ( empty ($this->_last_child[$this->level-1]) || empty ($this->_parent_children[$this->level]['parent']) || $this->_parent_children[$this->level]['parent'] != $this->_last_child[$this->level-1] ) {
$this->_parent_children[$this->level]=array();
$this->_parent_children[$this->level]['parent'] = @$this->_last_child[$this->level-1];
}
} else {
if ($this->_childs[$this->level]){
echo $this->_closeItem."</ul>n";
}
$this->_closeItem ='</li>';
$this->_openList = '';
$this->level += $level;
}
}/** Print component heading, etc. Then call getHtmlList() to print list */
function startOutput(&$menus,&$config) {
global $database, $Itemid;
$sitemap = &$this->sitemap;
$this->live_site = substr_replace(JURI::root(), "", -1, 1);$user = &JFactory::getUser();
if ($this->_isAdmin) {
JHTML::_('behavior.mootools');
$live_site = JURI::root();
$ajaxurl = "$live_site/index.php?option=com_xmap&tmpl=component&task=editElement&action=toggleElement";$css = '.xmapexcl img{ border:0px; }'."n";
$css .= '.xmapexcloff { text-decoration:line-through; }';
//$css .= "n.".$this->sitemap->classname .' li {float:left;}';$js = "
window.addEvent('domready',function (){
$$('.xmapexcl').each(function(el){
el.onclick = function(){
if (this && this.rel) {
options = Json.evaluate(this.rel);
this.onComplete = checkExcludeResult
var myAjax = new Ajax('{$ajaxurl}&sitemap={$this->sitemap->id}&uid='+options.uid+'&itemid='+options.itemid,{
onComplete: checkExcludeResult.bind(this)
}).request();
}
return false;
};});
});
checkExcludeResult = function (txtresponse,xmlresponse) {
//this.set('class','xmapexcl xmapexcloff');
var imgs = this.getElementsByTagName('img');
var response = xmlresponse.getElementsByTagName('response')[0];
var result = response.getElementsByTagName('result')[0].firstChild.nodeValue;
if (result == 'OK') {
var state = response.getElementsByTagName('state')[0].firstChild.nodeValue;
if (state==0) {
imgs[0].src='{$live_site}administrator/images/publish_x.png';
} else {
imgs[0].src='{$live_site}administrator/images/tick.png';
}
} else {
alert('The element couldn\'t be published or upublished!');
}
}";$doc = JFactory::getDocument();
$doc->addStyleDeclaration ($css);
$doc->addScriptDeclaration ($js);
}$menu = &JTable::getInstance('Menu');
$menu->load( $Itemid ); // Load params for the Xmap menu-item
$params = new JParameter($menu->params);
$title = $params->get('page_title',$menu->name);$exlink[0] = $sitemap->exlinks; // image to mark popup links
$exlink[1] = $sitemap->ext_image;if( $sitemap->columns > 1 ) { // calculate column widths
$total = count($menus);
$columns = $total < $sitemap->columns ? $total : $sitemap->columns;
$this->_width = (100 / $columns) - 1;
}
echo '<div class="'. $sitemap->classname .'">';if ( $params->get( 'show_page_title' ) ) {
echo '<div class="componentheading">'.$title.'</div>';
}
echo '<div class="contentpaneopen"'. ($sitemap->columns > 1 ? ' style="float:left;width:100%;"' : '') .'>';}
/** Print component heading, etc. Then call getHtmlList() to print list */
function endOutput(&$menus) {
global $database, $Itemid;
$sitemap = &$this->sitemap;echo '<div style="clear:left"></div>';
//BEGIN: Advertisement
if( $sitemap->includelink ) {
echo "<div style="text-align:center;"><a href="http://joomla.vargas.co.cr" style="font-size:10px;">Powered by Xmap!</a></div>";
}
//END: Advertisementecho "</div>";
echo "</div>n";
}function startMenu(&$menu) {
$sitemap=&$this->sitemap;
if( $sitemap->columns > 1 ) // use columns
echo '<div style="float:left;width:'.$this->_width.'%;">';
if( $sitemap->show_menutitle ) // show menu titles
echo '<h2 class="menutitle">'.$menu->name.'</h2>';
}function endMenu(&$menu) {
$sitemap=&$this->sitemap;
$this->_closeItem='';
if( $sitemap->show_menutitle || $sitemap->columns > 1 ) { // each menu gets a separate list
if( $sitemap->columns > 1 ) {
echo "</div>n";
}}
}
}
4 users say Thank You to prakash for this useful post
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 21, 2009 at 11:36 am #324521<em>@prbalge 154057 wrote:</em><blockquote>Hi,
based on some knowledge that I have regarding XMAP and MegaMenu I created a sample output for XMAP which does not display the text after []. I am not sure if my method is the correct method or if it has any effect on performance (if there are lots of links). Please let me know of a better solution if possible.
This is the code – the file is – componentscom_xmapxmap.html.php (the code pasted below is the entire xmap.html.php file
<?php
/**
* $Id: xmap.html.php 24 2009-03-13 15:05:30Z guilleva $
* $LastChangedDate: 2009-03-13 09:05:30 -0600 (Fri, 13 Mar 2009) $
* $LastChangedBy: guilleva $
* Xmap by Guillermo Vargas
* A Sitemap component for Joomla! CMS (http://www.joomla.org)
* Author Website: http://joomla.vargas.co.cr
* Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/defined('_JEXEC') or die('Direct Access to this location is not allowed.');
/** Wraps HTML output */
class XmapHtml extends Xmap {
var $level = -1;
var $_openList = '';
var $_closeList = '';
var $_closeItem = '';
var $_childs;
var $_width;
var $_isAdmin = 0;function XmapHtml (&$config, &$sitemap) {
$this->view = 'html';
Xmap::Xmap($config, $sitemap);
$this->_parent_children=array();
$this->_last_child=array();
}/**
* Print one node of the sitemap
*/
function printNode( &$node ) {
global $Itemid;$out = '';
if ($this->sitemap->isExcluded($node->id,$node->uid) && !$this->_isAdmin) {
return FALSE;
}// To avoid duplicate children in the same parent
if ( !empty($this->_parent_children[$this->level][$node->uid]) ) {
return FALSE;
}//var_dump($this->_parent_children[$this->level]);
$this->_parent_children[$this->level][$node->uid] = true;$out .= $this->_closeItem;
$out .= $this->_openList;
$this->_openList = "";if ( $Itemid == $node->id )
$out .= '<li class="active">';
else
$out .= '<li>';$link = Xmap::getItemLink($node);
if( !isset($node->browserNav) )
$node->browserNav = 0;$node->name = htmlspecialchars($node->name);
$testavaluetoday = htmlspecialchars($node->name);
$returnedvaluetoday = strpos($testavaluetoday,"[");
if ($returnedvaluetoday != 0){
$finalvalueretrievedtoday = substr($testavaluetoday,0,$returnedvaluetoday);
}
else{
$finalvalueretrievedtoday = htmlspecialchars($node->name);
}
switch( $node->browserNav ) {
case 1: // open url in new window
$ext_image = '';
if ( $this->sitemap->exlinks ) {
$ext_image = 'Â <img src="'. $this->live_site .'/components/com_xmap/images/'. $this->sitemap->ext_image .'" alt="' . _XMAP_SHOW_AS_EXTERN_ALT . '" title="' . _XMAP_SHOW_AS_EXTERN_ALT . '" border="0" />';
}
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'" target="_blank">'. $finalvalueretrievedtoday . $ext_image .'</a>';
break;case 2: // open url in javascript popup window
$ext_image = '';
if( $this->sitemap->exlinks ) {
$ext_image = 'Â <img src="'. $this->live_site .'/components/com_xmap/images/'. $this->sitemap->ext_image .'" alt="' . _XMAP_SHOW_AS_EXTERN_ALT . '" title="' . _XMAP_SHOW_AS_EXTERN_ALT . '" border="0" />';
}
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'" target="_blank" '. "onClick="javascript: window.open('". $link ."', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550'); return false;">". $finalvalueretrievedtoday . $ext_image."</a>";
break;case 3: // no link
$out .= '<span>'. $finalvalueretrievedtoday .'</span>';
break;default: // open url in parent window
$out .= '<a href="'. $link .'" title="'. $finalvalueretrievedtoday .'">'. $finalvalueretrievedtoday .'</a>';
break;
}$this->_closeItem = "</li>n";
$this->_childs[$this->level]++;
echo $out;if ($this->_isAdmin) {
if ( $this->sitemap->isExcluded($node->id,$node->uid) ) {
$img = '<img src="'.$this->live_site.'/administrator/images/publish_x.png" alt="'._XMAP_EXT_PUBLISHED.'" title="'._XMAP_EXT_UNPUBLISHED.'">';
$class= 'xmapexclon';
} else {
$img = '<img src="'.$this->live_site.'/administrator/images/tick.png" alt="'._XMAP_EXT_PUBLISHED.'" title="'._XMAP_EXT_PUBLISHED.'" />';
$class= 'xmapexcloff';
}
echo ' <a href= "#" class="xmapexcl '.$class.'" rel="{uid:''.$node->uid.'',itemid:'.$node->id.'}">'.$img.'</a>';
# echo ' <a href= "#" class="xmapoptions" rel="{uid:''.$node->uid.'',itemid:'.$node->id.'}"><img src="'.$this->live_site.'/components/com_xmap/images/options.gif" border="0" alt="Options" title="Options" /></a>';
}
//echo $this->_last_child[$this->level-1] . ' ' . $this->_parent_children[$this->level]['parent'];
$this->count++;$this->_last_child[$this->level] = $node->uid;
return TRUE;
}/**
* Moves sitemap level up or down
*/
function changeLevel( $level ) {
if ( $level > 0 ) {
# We do not print start ul here to avoid empty list, it's printed at the first child
$this->level += $level;
$this->_childs[$this->level]=0;
$this->_openList = "n<ul class="level_".$this->level."">n";
$this->_closeItem = '';// If we are moving up, then lets clean the children of this level
// because for sure this is a new set of links
if ( empty ($this->_last_child[$this->level-1]) || empty ($this->_parent_children[$this->level]['parent']) || $this->_parent_children[$this->level]['parent'] != $this->_last_child[$this->level-1] ) {
$this->_parent_children[$this->level]=array();
$this->_parent_children[$this->level]['parent'] = @$this->_last_child[$this->level-1];
}
} else {
if ($this->_childs[$this->level]){
echo $this->_closeItem."</ul>n";
}
$this->_closeItem ='</li>';
$this->_openList = '';
$this->level += $level;
}
}/** Print component heading, etc. Then call getHtmlList() to print list */
function startOutput(&$menus,&$config) {
global $database, $Itemid;
$sitemap = &$this->sitemap;
$this->live_site = substr_replace(JURI::root(), "", -1, 1);$user = &JFactory::getUser();
if ($this->_isAdmin) {
JHTML::_('behavior.mootools');
$live_site = JURI::root();
$ajaxurl = "$live_site/index.php?option=com_xmap&tmpl=component&task=editElement&action=toggleElement";$css = '.xmapexcl img{ border:0px; }'."n";
$css .= '.xmapexcloff { text-decoration:line-through; }';
//$css .= "n.".$this->sitemap->classname .' li {float:left;}';$js = "
window.addEvent('domready',function (){
$$('.xmapexcl').each(function(el){
el.onclick = function(){
if (this && this.rel) {
options = Json.evaluate(this.rel);
this.onComplete = checkExcludeResult
var myAjax = new Ajax('{$ajaxurl}&sitemap={$this->sitemap->id}&uid='+options.uid+'&itemid='+options.itemid,{
onComplete: checkExcludeResult.bind(this)
}).request();
}
return false;
};});
});
checkExcludeResult = function (txtresponse,xmlresponse) {
//this.set('class','xmapexcl xmapexcloff');
var imgs = this.getElementsByTagName('img');
var response = xmlresponse.getElementsByTagName('response')[0];
var result = response.getElementsByTagName('result')[0].firstChild.nodeValue;
if (result == 'OK') {
var state = response.getElementsByTagName('state')[0].firstChild.nodeValue;
if (state==0) {
imgs[0].src='{$live_site}administrator/images/publish_x.png';
} else {
imgs[0].src='{$live_site}administrator/images/tick.png';
}
} else {
alert('The element couldn\'t be published or upublished!');
}
}";$doc = JFactory::getDocument();
$doc->addStyleDeclaration ($css);
$doc->addScriptDeclaration ($js);
}$menu = &JTable::getInstance('Menu');
$menu->load( $Itemid ); // Load params for the Xmap menu-item
$params = new JParameter($menu->params);
$title = $params->get('page_title',$menu->name);$exlink[0] = $sitemap->exlinks; // image to mark popup links
$exlink[1] = $sitemap->ext_image;if( $sitemap->columns > 1 ) { // calculate column widths
$total = count($menus);
$columns = $total < $sitemap->columns ? $total : $sitemap->columns;
$this->_width = (100 / $columns) - 1;
}
echo '<div class="'. $sitemap->classname .'">';if ( $params->get( 'show_page_title' ) ) {
echo '<div class="componentheading">'.$title.'</div>';
}
echo '<div class="contentpaneopen"'. ($sitemap->columns > 1 ? ' style="float:left;width:100%;"' : '') .'>';}
/** Print component heading, etc. Then call getHtmlList() to print list */
function endOutput(&$menus) {
global $database, $Itemid;
$sitemap = &$this->sitemap;echo '<div style="clear:left"></div>';
//BEGIN: Advertisement
if( $sitemap->includelink ) {
echo "<div style="text-align:center;"><a href="http://joomla.vargas.co.cr" style="font-size:10px;">Powered by Xmap!</a></div>";
}
//END: Advertisementecho "</div>";
echo "</div>n";
}function startMenu(&$menu) {
$sitemap=&$this->sitemap;
if( $sitemap->columns > 1 ) // use columns
echo '<div style="float:left;width:'.$this->_width.'%;">';
if( $sitemap->show_menutitle ) // show menu titles
echo '<h2 class="menutitle">'.$menu->name.'</h2>';
}function endMenu(&$menu) {
$sitemap=&$this->sitemap;
$this->_closeItem='';
if( $sitemap->show_menutitle || $sitemap->columns > 1 ) { // each menu gets a separate list
if( $sitemap->columns > 1 ) {
echo "</div>n";
}}
}
}
</blockquote>Hey mate,
Where is the code you added to mek it work? I want to test it on my localhost with my x-map version.Thanks
prakash Friendprakash
- Join date:
- October 2008
- Posts:
- 439
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 146 times in 115 posts
November 21, 2009 at 11:38 am #324522Hi
I have made modifications at around 8-9 places. Best I suggest would be take a backup of your existing xmap.html.php and simply paste the entire code that I have provided and have a look.
zakladadadic Friendzakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
November 21, 2009 at 11:44 am #324523It works like a charm!
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 21, 2009 at 5:28 pm #324548So what should we do on x-map update?
brunus Friendbrunus
- Join date:
- November 2009
- Posts:
- 31
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 6 times in 1 posts
December 1, 2009 at 10:14 am #325372<em>@korb 154093 wrote:</em><blockquote>So what should we do on x-map update?</blockquote>
Make a diff and add changes…
But in this case, the best to do it’s to contact the Xmap developper and to ask him if it’s possible to add the mega-menu special code in the official Xmap code… like this updates would be painless.AuthorPostsThis topic contains 19 replies, has 6 voices, and was last updated by viet4777 14 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum