Jump to content

can I arrange my information area in order


Recommended Posts

Just download the file on the first post here, then unzip the blockinfos_mp folder into your modules folder, then upload it to your server. Once you've done that, go to the Modules tab and uninstall "Info block v1.1" and install "Info block MP v1.12". You can then put 01., 02., etc in front of the CMS page names to change the order of the CMS pages.

Link to comment
Share on other sites

  • 6 months later...

I've installed the Info block MP v1.12 module and while it certainly does allow you to change the order of the Information Pages - but if you view one of the actual (CMS) pages from the menu in your broswer, it also displays the number in the page title (e.g. "01.About Us"). It also displays the number on the sitemap page too.

Does anybody else have the same problem and is there a fix for this.

Iain.

Link to comment
Share on other sites

Unfortunately, that's something a module can't fix. You will need to change PrestaShop's code to fix the problem. For example, to fix the problem on the sitemap, change line 92 of classes/CMS.php (in PrestaShop v1.3.1) from:

$row['link'] = $link->getCMSLink(intval($row['id_cms']), $row['link_rewrite']);



to:

$row['link'] = $link->getCMSLink(intval($row['id_cms']), $row['link_rewrite']);
$row['meta_title'] = Category::hideCategoryPosition($row['meta_title']);

Link to comment
Share on other sites

  • 4 weeks later...

Try changing line 102 of modules/blockvariouslinks/blockvariouslinks.php from:

$smarty->assign('cmslinks', $id_cms ? CMS::getLinks($cookie->id_lang, $id_cms) : array());



to:

$cmslinks = $id_cms ? CMS::getLinks($cookie->id_lang, $id_cms) : array();
for ($i = 0; $i < sizeof($cmslinks); $i++)
  $cmslinks[$i]['meta_title'] = Category::hideCategoryPosition($cmslinks[$i]['meta_title']);
$smarty->assign('cmslinks', $cmslinks);

Link to comment
Share on other sites

×
×
  • Create New...