Wednesday, 28 January 2015 06:34

HTML Sitemap this->_width not set

Report Xmap bugs on this forum.

HTML Sitemap this->_width not set

Postby lyric8 » Thu Sep 01, 2011 10:11 am

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);
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Thu Sep 01, 2011 10:09 am

Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests