Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Adding non-php files to sitemap


Recommended Posts

Can anyone tell me how to add categories to a sitemap? I know how to add an ordinary 'contact us' or 'shipping' category, but my problem is that i need to add categories that don't have individual php files as they are pages that are generated through a contrib installed in the admin, so is it possible to add them without individual php files?


PS i've tried crossover contribs but they don't seem to work for me, i just receive error messages where the categories should appear!

Link to comment
Share on other sites

To make a link to a specific page and not lose the session you need to use a link such as


<a href="<?php echo tep_href_link('index.php', 'cPath=21')?>">Womens Wear</a>


You call the page first then whatever is after the ? that calls for the specific page, product, catagory... whatever.


If that doesn't work you can also try

<?php echo '<a href="' . tep_href_link('index.php', 'cPath=21'). '" class="top">Womens Wear</a>';?>


It seems to depend on where the code is being place on the page.


If you don't have a second part, like if you just wanted to link to the contact_us.php you would remove the , 'cPath=21' from the link.

Wendy James


Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...