Jump to content

Cms content no longer linking


Recommended Posts

Still can't get my cms content to appear--need this to resolve or I'm giving up and heading to Wordpress.

 

I've checked controllers/front/cmscontroller.php per line 114 (http://www.prestashop.com/forums/topic/213456-cms-categories-bug-in-153/?pid=1052885&do=findComment&comment=1052885) as follows:

 

/**
* Assign template vars related to page content
* @see FrontController::initContent()
*/
public function initContent()
{
parent::initContent();
 
$parent_cat = new CMSCategory(1, $this->context->language->id);
$this->context->smarty->assign('id_current_lang', $this->context->language->id);
$this->context->smarty->assign('home_title', $parent_cat->name);
$this->context->smarty->assign('cgv_id', Configuration::get('PS_CONDITIONS_CMS_ID'));
if (isset($this->cms->id_cms_category) && $this->cms->id_cms_category)
$path = Tools::getFullPath($this->cms->id_cms_category, $this->cms->meta_title, 'CMS');
else if (isset($this->cms_category->meta_title))
$path = Tools::getFullPath(1, $this->cms_category->meta_title, 'CMS');
if ($this->assignCase == 1)
{
$this->context->smarty->assign(array(
'cms_category' => $this->cms_category,
'content_only' => (int)(Tools::getValue('content_only')),
'path' => $path
));
}
else if ($this->assignCase == 2)
{
$this->context->smarty->assign(array(
'category' => $this->cms_category, //for backward compatibility
'cms_category' => $this->cms_category,
'sub_category' => $this->cms_category->getSubCategories($this->context->language->id),
'cms_pages' => CMS::getCMSPages($this->context->language->id, (int)($this->cms_category->id) ),
'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '',
));
}
 
$this->setTemplate(_PS_THEME_DIR_.'cms.tpl');
}
}
 
I've also adjust "foreach" linking info per previous thread (http://www.prestashop.com/forums/topic/276451-cms-pages-not-appearing/) in my blockcms.tpl and cms.tpl files:
{foreach from=$cmslinks item=cmslink}
{if $cmslink.meta_title != ''}
<li class="item"><a href="{$cmslink.link|addslashes|escape:'html'}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
{/if}
{/foreach}
 
How do I fix this?!!
 
Link to comment
Share on other sites

×
×
  • Create New...