zomigi Posted October 30, 2009 Share Posted October 30, 2009 There are a number of links listed under the "Information" section of the site map that I don't want to show, just temporarily for now (delivery, legal notice, etc.). I've used the footer links module to keep these links from showing in the footer, but they still display on the site map. Is there any way I can recognize which links I don't have activated for the footer and de-activate those on the site map as well?I know I can manually edit my sitemap.tpl to explicitly list the links I want, instead of pulling from $cmslinks, but I'd rather not do this if I don't have to. Like I said, it is only temporary that I don't want these links to display, so it would be much less work in the long run if the display of links in the site map was automated instead of hardcoded.Thanks in advance for your help. Link to comment Share on other sites More sharing options...
ginger Posted October 30, 2009 Share Posted October 30, 2009 Back Office > Tools > CMS Link to comment Share on other sites More sharing options...
zomigi Posted October 31, 2009 Author Share Posted October 31, 2009 There's nothing I can do at the CMS. I can delete the pages, but like I said, I just want them to not display temporarily. I don't want to delete the pages. I just want to make the links not show for a while, just as I can do in the footer module. Can this be done? Link to comment Share on other sites More sharing options...
ginger Posted October 31, 2009 Share Posted October 31, 2009 CMS is it....Just copy the HTML from the one you want to deactivate onto a TEXT file...Save it for later...Recreate it when your ready to have it up again...The Site Map Module should recognize this... Link to comment Share on other sites More sharing options...
Lalo Landa Posted October 31, 2009 Share Posted October 31, 2009 Sitemap is a page where the visitor can see all the pages of the site, so why you want to do that there? Link to comment Share on other sites More sharing options...
zomigi Posted November 2, 2009 Author Share Posted November 2, 2009 Ok, I guess I will delete the pages temporarily, but that's awfully hacky. Too bad there's no better way.Lalo Landa, as I've said, I want the pages to be hidden *temporarily*. Right now there is nothing on them. My client is working on the content, but wants to get the site up before those pages are done. Thus, I want to hide those pages, because they are not part of the site yet and thus should not show up on the site map. Once they have content and truly become pages, then they should show on the site map. Link to comment Share on other sites More sharing options...
teclive Posted January 3, 2010 Share Posted January 3, 2010 Hiya zomigiany chance you figured out how to hide links from the sitemap?I understand what you want, and kind of want the same thing. Client has pages, but does not necessarily want them all showing on the sitemap page Link to comment Share on other sites More sharing options...
teclive Posted January 3, 2010 Share Posted January 3, 2010 umm.. i have another question trying to remove manufact's and suppliers from the sitemenu but cant even find those pages in the cms via the admin.How do i get rid of those 2 links? Link to comment Share on other sites More sharing options...
Don Camillo Posted February 15, 2011 Share Posted February 15, 2011 Maybe this helps? http://www.prestashop.com/forums/viewthread/78750/configuring___using_prestashop/sitemap_questionGreetz, Don Link to comment Share on other sites More sharing options...
yans Posted April 27, 2012 Share Posted April 27, 2012 My full code to exclude CMS pages from the Information links on the Sitemap is below. It may not be possible to make the code more compact, because the != operator may need to be explicit for each excluded page, because I am not sure that the evaluation of any type of grouping would return the correct desired evaluation. I know that {if $cmslink.id_cms !=(1||2||3)} does not work, because when evaluating page id 1, for example, the OR operator allows truth that it (1) is not 2, so undesired evaluation result of true occurs and link is listed. At least I don't have to delete any CMS pages that I am simply not currently using! {foreach from=$cmslinks item=cmslink}{if ($cmslink.id_cms != "1" && $cmslink.id_cms != "2" && $cmslink.id_cms != "3" && $cmslink.id_cms != "5" && $cmslink.id_cms != "9" && $cmslink.id_cms != "15")} [list] [*][url="{$cmslink.link}"]{$cmslink.meta_title}[/url] {/if}{/foreach} cool man, it's work thanks for the code Link to comment Share on other sites More sharing options...
txbikerdog Posted January 11, 2013 Share Posted January 11, 2013 Just an FYI if you're new and trying to figure this out... With PrestaShop 1.5.3.1 I was able to remove these links from the sitemap page by disabling them in Preferences > CMS (un-checking the "Displayed" column) re-post to fix font size...sorry...darn copy & paste Just an FYI if you're new and trying to figure this out... With PrestaShop 1.5.3.1 I was able to remove these links from the sitemap page by disabling them in Preferences > CMS (un-checking the "Displayed" column) 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