Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    San Francisco Bay Area, USA
    Posts
    9
    Plugin Contributions
    0

    Default Correct means, and best practice, for linking from an EZ Page to a Define Pages?

    I'm new to zen-cart: this is my first store, and my first posting. I would appreciate help/advice.

    What is the correct means, and best practice, of linking from an EZ Page to a Define Pages? I am linking from an EZ Page to /modules/pages/page_3.

    In the EZ Pages Editor, entering the following link in the URL creates the correctly linked hyperlink.
    /zen-cart/index.php?main_page=page_3

    From the perspective of zen-cart functionality, ‘best practice’ and security, is this the best means?

    I found the function zen_ez_pages_link() for linking to an EZ Page. Is there a function for linking to Define Pages, or other functions for linking?

    Zen Cart 1.3.8a
    Database Patch Level: 1.3.8
    v1.3.8 [2009-05-07 16:49:37] (Fresh Installation)
    Server OS: FreeBSD 6.3-RELEASE
    Database: MySQL 5.0.75
    HTTP Server: Apache/2.2.11 (Unix)
    PHP/5.2.9 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.7m mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.7
    PHP Version: 5.2.9 (Zend: 2.2.0)
    Add-ons: None

  2. #2
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Correct means, and best practice, for linking from an EZ Page to a Define Pages?

    In the EZ Pages Editor, entering the following link in the URL creates the correctly linked hyperlink.
    /zen-cart/index.php?main_page=page_3
    This should help
    Code:
    echo '<a href="' . zen_href_link('page_3') . '">Click for Page 3</a>';
    Skip
    • 446F63746F722057686F •

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Correct means, and best practice, for linking from an EZ Page to a Define Pages?

    You almost got it right the first time.

    When you use EZPages to create an internal link, it's simply a case of pasting:

    index.php?main_page=page_3

    Into the Internal URL field of the EZPage edit screen.

    No need to put the sub-folder /zencart/ as this is in your <base href> header...
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2009
    Location
    San Francisco Bay Area, USA
    Posts
    9
    Plugin Contributions
    0

    Default Re: Correct means, and best practice, for linking from an EZ Page to a Define Pages?

    • Schoolboy: index.php?main_page=page_3 works perfectly.


    • Skipwater: When I added "echo '<a href="' . zen_href_link('page_3') . '">Click for Page 3</a>';" into the html, the Ez Pages HTMLarea editor made substitutions that defeated the syntax. However, I will note this syntax for possible use elsewhere.


    Thank you both, Skipwater and Schoolboy, for your help!

 

 

Similar Threads

  1. v139b What is the best practice to clear old session files from cache?
    By one tall man in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2012, 07:04 PM
  2. Linking define page from footer
    By Johnnyh in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 19 Jan 2012, 01:24 PM
  3. Best practice for running PHP ?
    By PatF in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 10 Feb 2011, 01:23 AM
  4. remove <meta description> from ez pages and define pages : help
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Oct 2010, 12:13 AM
  5. linking from pages to the "Define Page Editor"
    By windwoman in forum General Questions
    Replies: 1
    Last Post: 1 May 2007, 12:44 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