HTML Sitemap this->_width not set
1 post
• Page 1 of 1
HTML Sitemap this->_width not set
Hey, I think there is an execution order issue or something. I put some debugging statements in and saw the function that sets the width based on columns isn't called before the output starts. Thus all the widths are set to "%" because the this-> width isn't set. I fixed by adding this line to the constructor to XmapHtmlDisplayer in default_class.php.
if( $sitemap->params->get('columns') > 1 ) { // calculate column widths
$this->_width = intval((100 / ($sitemap->params->get('columns'))) - 1);
}
if( $sitemap->params->get('columns') > 1 ) { // calculate column widths
$this->_width = intval((100 / ($sitemap->params->get('columns'))) - 1);
}
- lyric8
- Fresh Boarder

- Posts: 1
- Joined: Thu Sep 01, 2011 10:09 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest