wurdgirl Posted September 20, 2013 Share Posted September 20, 2013 Back office looks fine but none of my cms pages are showing up in FO; not sure of the cause. I'm using Godaddy hosting and custom theme vp_tea. www.cutiepiesnyc.com Link to comment Share on other sites More sharing options...
El Patron Posted September 20, 2013 Share Posted September 20, 2013 back office-->modules-->(search box type in permanent links) is this module enabled? sort of guessing what you want or do not want to display in your cms pages... if you want in your menu, then you would need to add to your menu from it's configuration menu Link to comment Share on other sites More sharing options...
wurdgirl Posted September 20, 2013 Author Share Posted September 20, 2013 the CMS block is enabled and was working as of two days ago—not sure what happened to trigger 404s. The menu is only viewable in the footer—links appear normally but trigger 404s. I've checked and rechecked configurations in modules as well as Preferences; tried following other threads with similar issues but code doesn't match up... Link to comment Share on other sites More sharing options...
vekia Posted September 21, 2013 Share Posted September 21, 2013 i think that your issue is related to urls generated by module, it looks like: http://cutiepiesnyc.com/en/cms.php?id_cms=7 but it should be: http://cutiepiesnyc.com/en/content/7-holidays in my opinion problem is in module which isn't fully compatibile with your ps version and generating wrong urls Link to comment Share on other sites More sharing options...
wurdgirl Posted September 21, 2013 Author Share Posted September 21, 2013 Thanks; so you're saying I need to update Prestashop? Link to comment Share on other sites More sharing options...
vekia Posted September 21, 2013 Share Posted September 21, 2013 nope, you should check cms block module code Link to comment Share on other sites More sharing options...
wurdgirl Posted September 23, 2013 Author Share Posted September 23, 2013 For what, exactly? Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 open module .tpl file, and check please how urls to your pages looks like there (blockcms.tpl file) i suppose (but im not sure at all) that your tpl file uses wrong method, it should look like: {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} Link to comment Share on other sites More sharing options...
wurdgirl Posted September 23, 2013 Author Share Posted September 23, 2013 That unfortunately didn't work... I disabled friendly URLs in Preferences since that is referenced in other threads on this topic; that resolves cms page issue but disables all my product pages Is there a solve for this? Other threads were not helpful. Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 but you've got this code there? or something different? Link to comment Share on other sites More sharing options...
wurdgirl Posted September 23, 2013 Author Share Posted September 23, 2013 This code was in my source .tpl: {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> {/if} {/foreach} Looking at the rest of the code, none of the pages I've added to this module are listed (Catering, Holidays, etc.)... shouldn't they be referenced? Link to comment Share on other sites More sharing options...
wurdgirl Posted September 24, 2013 Author Share Posted September 24, 2013 There are two elements at work here, right? cms.tpl and blockcms.tpl... I placed your recommended code into blockcms.tpl, but there's no equivalent in cms.tpl, just this— {/foreach} </ul> {/if} {if isset($cms_pages) & !empty($cms_pages)} <h4>{l s='List of pages in %s:' sprintf=$category->name}</h4> <ul class="bullet"> {foreach from=$cms_pages item=cmspages} <li> <a href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'htmlall':'UTF-8'}">{$cmspages.meta_title|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} Might they be incompatible? Link to comment Share on other sites More sharing options...
wurdgirl Posted September 26, 2013 Author Share Posted September 26, 2013 Here's code from my cms.tpl file: {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($cms) && ($content_only == 0)} {include file="$tpl_dir./breadcrumb.tpl"} {/if} {if isset($cms) && !isset($cms_category)} {if !$cms->active} <br /> <div id="admin-action-cms"> <p>{l s='This CMS page is not visible to your customers.'} <input type="hidden" id="admin-action-cms-id" value="{$cms->id}" /> <input type="submit" value="{l s='Publish'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad|escape:'htmlall':'UTF-8'}', 0, '{$smarty.get.adtoken|escape:'htmlall':'UTF-8'}')"/> <input type="submit" value="{l s='Back'}" class="exclusive" onclick="submitPublishCMS('{$base_dir}{$smarty.get.ad|escape:'htmlall':'UTF-8'}', 1, '{$smarty.get.adtoken|escape:'htmlall':'UTF-8'}')"/> </p> <div class="clear" ></div> <p id="admin-action-result"></p> </p> </div> {/if} <div class="rte{if $content_only} content_only{/if}"> {$cms->content} </div> {elseif isset($category)} <div class="block-cms"> <h1><a href="{if $cms_category->id eq 1}{$base_dir}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'htmlall':'UTF-8'}</a></h1> {if isset($sub_category) & !empty($sub_category)} <h4>{l s='List of sub categories in %s:' sprintf=$cms_category->name}</h4> <ul class="bullet"> {foreach from=$sub_category item=subcategory} <li> <a href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} {if isset($cms_pages) & !empty($cms_pages)} <h4>{l s='List of pages in %s:' sprintf=$cms_category->name}</h4> <ul class="bullet"> {foreach from=$cms_pages item=cmspages} <li> <a href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'htmlall':'UTF-8'}">{$cmspages.meta_title|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> {/if} </div> {else} {l s='This page does not exist.'} {/if} <br /> Here's code from my blockcms.tpl file: {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $block == 1} <!-- Block CMS module --> {foreach from=$cms_titles key=cms_key item=cms_title} <div id="informations_block_left_{$cms_key}" class="block informations_block_left"> <h4 class="title_block"><a href="{$cms_title.category_link}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a></h4> <ul class="block_content"> {foreach from=$cms_title.categories item=cms_page} {if isset($cms_page.link)}<li class="bullet"><b style="margin-left:2em;"> <a href="{$cms_page.link}" title="{$cms_page.name|escape:html:'UTF-8'}">{$cms_page.name|escape:html:'UTF-8'}</a> </b></li>{/if} {/foreach} {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)}<li><a href="{$cms_page.link}" title="{$cms_page.meta_title|escape:html:'UTF-8'}">{$cms_page.meta_title|escape:html:'UTF-8'}</a></li>{/if} {/foreach} {if $cms_title.display_store}<li><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} </ul> </div> {/foreach} <!-- /Block CMS module --> {else} <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul> {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Best sellers' mod='blockcms'}">{l s='Best sellers' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} <li class="item"><a href="{$link->getPageLink($contact_url, true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} <li><a href="{$link->getPageLink('sitemap')}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li> {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a class="_blank" href="http://www.prestashop.com">PrestaShop</a>™</li>{/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> {/if} This is holding me up from doing real business, please help! Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 foreach loop should look like: {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} if you've got the same code, it mean that problem is somewhere else, probably in link controller Link to comment Share on other sites More sharing options...
wurdgirl Posted September 26, 2013 Author Share Posted September 26, 2013 Hmm, there are definitely two issues at work here—I need to link to custom information on these pages, and I'd successfully implemented via my custom theme's vtemfooter module; however, after changing code per your specs in cms.tpl and backing up AdminCmsController.php file, the default information footer appears but doesn't seem to be live linking; also, I can't seem to locate where in back office I might edit/customize this information block... live site is displaying my links (edited via Preferences>CMS) in addition to a host of default items I don't need. Link to comment Share on other sites More sharing options...
wurdgirl Posted October 4, 2013 Author Share Posted October 4, 2013 This has been non-functional for TOO LONG—please help!! Custom module, vtemfooter, still throws 404s when enabled; generic cms block module shows non-linked text for cms pages. Current route to cms is set to: content/{id}-{rewrite} How do I fix this? Link to comment Share on other sites More sharing options...
Recommended Posts