ThomasF Posted September 4, 2017 Share Posted September 4, 2017 (edited) [sOLVED ?] Hi, So I am setting up a shop and don't like that some things shop up on the Sitemap (I have disabled them in the other blocks). Like "Suppliers" or "Our stores".. I've been digging through the template files (as read on comments for 1.6) but apparently things have changed a lot. Where can one get rid off those links? Cheers, Thomas Edited September 5, 2017 by ThomasF (see edit history) Link to comment Share on other sites More sharing options...
ThomasF Posted September 5, 2017 Author Share Posted September 5, 2017 (edited) So I found the place.. ./controllers/front/SitemapController.php for now I commented out the respective parts and put it in the overrides. Hopefully over time I can come up with a solution that does not include messing with the core (what happens on next update?) Edited September 5, 2017 by ThomasF (see edit history) 1 Link to comment Share on other sites More sharing options...
dlevacher Posted March 26, 2021 Share Posted March 26, 2021 A bit late (3+ years ago), but still this thread helped me find what I was looking for. I overrided the template /themes/my_theme/templates/cms/sitemap.tpl and removed the links that were not needed. Better than changing controllers. * Prestashop 1.7 1 Link to comment Share on other sites More sharing options...
ukbaz Posted November 8, 2021 Share Posted November 8, 2021 Is there a way to exclude certain pages in 1.7? I used to have this in sitemap.tpl for version 1.6 but not working in 1.7 {foreach from=$categoriescmsTree.cms item=cms name=cmsTree} <!-- EXCLUDE SPECIFIC PAGES --> {if $cms.id_cms==20 || $cms.id_cms==24 || $cms.id_cms==31 || $cms.id_cms==33 || $cms.id_cms==41 || $cms.id_cms==17 || $cms.id_cms==42 || $cms.id_cms==15 || $cms.id_cms==16 || $cms.id_cms==18 || $cms.id_cms==32 || $cms.id_cms==65 || $cms.id_cms==66} {else} <li> <a href="{$cms.link|escape:'html':'UTF-8'}" title="{$cms.meta_title|escape:'html':'UTF-8'}"> {$cms.meta_title|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} <li> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now