Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Getting equivalent of CPath for EZ Pages

    I am sure that it is possible however I cannot seem to work with the right code

    so echo zen_ez_pages_link(44); that works - shows me a link of the pages in question

    However I am using a smart banners type module which basically shows a different banner depending on what pages its on - so previously I have been using get['cPath'] to determine which page I am needing - but with ezpages I don't know what to use instead of cPath

    I almost what to do [ez_page_id] but that doesn't work

    Does anyone know?

    Thank you
    Sarah

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Getting equivalent of CPath for EZ Pages

    You can use links like "index.php?main_page=page&id=2". Where id is the ez page id.

  3. #3
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Getting equivalent of CPath for EZ Pages

    thank you that worked - I was just sure there was a ez_page_id value that was more foolproof

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Getting equivalent of CPath for EZ Pages

    Quote Originally Posted by SarahL View Post
    thank you that worked - I was just sure there was a ez_page_id value that was more foolproof
    Well, you can be a little more "generic" in that the order of parameters on the uri wouldn't matter if say you checked for $current_page = FILENAME_EZPAGES and then checked for the presence/value of the id parameter and then what it's value is as compared to what you want to do when at that "page". Similar checks can be done for the other parameters on the url.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Getting interesting cPath URL's lately
    By frank18 in forum General Questions
    Replies: 4
    Last Post: 5 Sep 2010, 06:46 AM
  2. Replies: 7
    Last Post: 2 Sep 2010, 07:38 AM
  3. Many URLS getting ?cpath=0 added to end after adding CEON URI Mapping
    By stehodges in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Jul 2009, 11:40 PM
  4. width:auto equivalent in IE6?
    By OK Computer in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Aug 2008, 05:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR