Jump to content

[Solved] How to show a page under Info block....?


Recommended Posts

Hi,
I am new in using prestashop and i added a page from back office by Tools->CMS->Add New and i just typed information then i clicked on Save button and new page was added and it is shown in the list of other pages but it is not shown on front office.... why...? is there any other way or need to activate it...?



i also checked in database page is added in cms_lang table and its id is inserted in cms table but its related information is not inserted in block_cms table (id_block and id_cms is not inserted in block_cms table)

when i inserted these ids manually by query browser then it is shown in front office....


ANY ONE CAN GUIDE ME REGARDING THIS....

reply me soon...

Link to comment
Share on other sites

You will need to manually link to this new page. Either be it by "Information Links" "Footer Links" or a traditional "to view blah blah CLICK HERE" type link on any page.

Where was it you wanted this to show?

Link to comment
Share on other sites

actually i added a page from TooL->CMS-> Add New and it was added successfully in admin but on front office it is not shown in info block , when i checked code of classes/CMS.php

public static function updateCmsToBlock($cms, $id_block)
{
Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'block_cms`
WHERE `id_block` ='.intval($id_block));
foreach($cms AS $id_cms)
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'block_cms (id_block, id_cms) VALUES
('.intval($id_block).', '.intval($id_cms).')');
return true;
}
the insert query above mentioned function is not inserting cms records related records in "block_cms" table.....

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...