smallbizwebsites Posted February 28, 2013 Share Posted February 28, 2013 I have a "Privacy" page, and I want to put a link on it to the "Terms and Conditions" page. I find that if I use <a href="terms-and-conditions">Terms</a> that this does not work. The actual page URL might be /en/content/3-terms-and-conditions. How can I get rid of these numbers? Link to comment Share on other sites More sharing options...
tomerg3 Posted February 28, 2013 Share Posted February 28, 2013 The page ID is used to track changes int he URLs (IE renaming a product / moving to another category) Link to comment Share on other sites More sharing options...
smallbizwebsites Posted February 28, 2013 Author Share Posted February 28, 2013 Thanks, but how do I get a reliable URL I can use to link pages that do not have these numbers? For example, if I have an "About" page, and I want to link to it from any other page, what URL should I use? If I modify the "About" page, it may then be called "2-about" or "3-about". If I try just using "about", then I get a 404 error. I need fixed URLs without the numbers. Is there a way do eliminate them? Link to comment Share on other sites More sharing options...
tomerg3 Posted February 28, 2013 Share Posted February 28, 2013 You should use the $link object to get links to pages. There are example in existing modules to do it for content pages, and well as general pages. It is a bad idea to remove the IDs from URLs Link to comment Share on other sites More sharing options...
smallbizwebsites Posted February 28, 2013 Author Share Posted February 28, 2013 Ahh- that's a big help. I'm just learning. Is there an example you can suggest I look at? Link to comment Share on other sites More sharing options...
tomerg3 Posted February 28, 2013 Share Posted February 28, 2013 Check out the blockcms module /mocules/blockcms/blockcms.tpl Read the PS developer documentation... Link to comment Share on other sites More sharing options...
smallbizwebsites Posted February 28, 2013 Author Share Posted February 28, 2013 OK Thanks. This is a big help! Owe you one. Link to comment Share on other sites More sharing options...
smallbizwebsites Posted February 28, 2013 Author Share Posted February 28, 2013 I guess I missed something. I am not editing module files. Rather, I am just using the CMS editor to edit a static page. When I select some text that I want to be a link to some other static page, what do I type in as the URL? Link to comment Share on other sites More sharing options...
Recommended Posts