Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Site map adding page link help

    i try to add link for the page i created into the tpl_site_map_default.php file.
    i created a new page named about us. all the links shows something like this in the site map
    PHP Code:
    <li><?php echo '<a href="' zen_href_link(FILENAME_PRODUCTS_NEW) . '">' PAGE_PRODUCTS_NEW '</a>'?></li>
    <li><?php echo '<a href="' zen_href_link(FILENAME_SPECIALS) . '">' PAGE_SPECIALS '</a>'?></li>
    <li><?php echo '<a href="' zen_href_link(FILENAME_REVIEWS) . '">' PAGE_REVIEWS '</a>'?></li>
    in order to add the new link, i simply copy tht existing link and paste it somewhere below it and just rename it like this.
    PHP Code:
    <li><?php echo '<a href="' zen_href_link(FILENAME_ABOUT_US) . '">' PAGE_ABOUT_US '</a>'?></li>
    the link works fine, but the name of the link appears like the pic below...

    so can someone plz help me to just rename it to About Us. thnx
    Attached Images Attached Images  

  2. #2

    Default Re: Site map adding page link help

    Quote Originally Posted by miles View Post
    PHP Code:
    <li><?php echo '<a href="' zen_href_link(FILENAME_ABOUT_US) . '">' PAGE_ABOUT_US '</a>'?></li>
    the link works fine, but the name of the link appears like the pic below...

    so can someone plz help me to just rename it to About Us. thnx
    I think I can help on this one. I'm new to Zen-Cart but I'm pretty sure all you have to change is the part inbetween the periods, ". PAGE_ABOUT_US ." to ". About Us ." That should do it. Hope this helps.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Site map adding page link help

    While that would work- It is NOT the Zen Cart way to do things. WORDS IN ALL CAPS are CONSTANTS and should defined in a language file.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4

    Default Re: Site map adding page link help

    Like I said, I'm new to Zen-Cart and have not had a chance to look around and see what the standards are here. I just gave a suggestion to miles to help him solve his problem.

    Kim, where is the language file I would edit to add the new CONSTANT to create a new link? Thanks for any help.

    tmasnorton

 

 

Similar Threads

  1. Adding site map link to home page footer
    By allaboutme in forum General Questions
    Replies: 5
    Last Post: 16 Sep 2009, 11:24 AM
  2. Adding a Site Map and home page text
    By caga595 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jul 2008, 05:49 PM
  3. adding new page to site map
    By ChristopherDoiron in forum General Questions
    Replies: 4
    Last Post: 11 Feb 2008, 11:25 PM
  4. Remove Site Map Link
    By traciboyle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Jan 2008, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg