Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    166
    Plugin Contributions
    1

    Default VARIABLE / CONSTANT that displays page name?

    What's the variable or constant that displays the name of the page?

    Like main_page , product_info etc..

    thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: VARIABLE / CONSTANT that displays page name?

    Depends what you're trying to do with the information, and where ...
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2007
    Posts
    166
    Plugin Contributions
    1

    Default Re: VARIABLE / CONSTANT that displays page name?

    I would like to build some swith / else if statements so that some of my menu items will appear on certain levels of the catalog.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: VARIABLE / CONSTANT that displays page name?

    In v1.3.x, you can usually use $current_page_base to get the value of the "main_page=" setting on the URL. If you're trying to access it from inside a function/class you'll need to global that variable to access it.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2007
    Posts
    166
    Plugin Contributions
    1

    Default Re: VARIABLE / CONSTANT that displays page name?

    Thanks! I'll give it a shot!

 

 

Similar Threads

  1. is there a page that displays all products in a category?
    By warroyo90 in forum General Questions
    Replies: 1
    Last Post: 1 Jun 2012, 04:12 PM
  2. Name that Addon [member login form on front page]?
    By solarguy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Apr 2011, 10:36 PM
  3. Constant/function that returns absolute path for current Template
    By meckanism in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jan 2011, 06:05 PM
  4. Banners links just open new page that displays banner image!
    By teqmedia in forum Basic Configuration
    Replies: 1
    Last Post: 18 Mar 2009, 05:43 AM
  5. Page that displays all categories
    By sccr410 in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 2 Jan 2008, 07:07 AM

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