Results 1 to 10 of 570

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    Thanks Kuroi, that confirms what I was thinking.
    Only I don't understand why add an id to the template if you are not going to use it.
    I am planning on creating a separate stylesheet for EZ pages and overriding the template, then I would use those ids (at least some), don't know if many people would though.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How do EZ-Pages work?

    The classic template is just one possible design. Just because that doesn't use a particular ID or class, doesn't mean that other designs won't - that's why they're there.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do EZ-Pages work?

    Good Evening Folks

    I have reached the stage of staring at the screen, so I guess its time to ask if some kind soul can put me on the right track

    I have researched this query but I cant seem to find a thread with an answer which is daft considering how simple it is

    I have created content in the define_main_page.php with the editor. In that content there is a link to another internal page.

    I have created the internal page using the E-Z facility and it displays fine.

    So I have looked through the forum and found the following code to create a link
    Code:
    ....Please click<b>    <a href="php echo zen_href_link(FILENAME MY FILE , '5,,,,') ">here</a>.......
    However all I get is an error message saying I either dont have permission or the server cant find the file

    If you can see what I am doing wrong I would be grateful if you could put me right

    Thank you

    Centec2b

  4. #4
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: How do EZ-Pages work?

    That's an easy one.
    To create a link to an EZ page, you just proceed as if it were any ol' page.
    Go to that page and look at the address bar in your browser:
    http://www.example.com/index.php?mai...=1&zenid=bogus
    You leave out everything before index.php? and the zenid, so your link looks like this:
    <a href="index.php?main_page=page&id=2&chapter=1">blah</a>

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How do EZ-Pages work?

    @ckosloff

    It would be better to use the proper Zen Cart function for inserting an EZ-Page as explained in the FAQ.

    @Centec2b

    Pay close attention to the form of the opening and closing PHP tags. In the example you gave the opening tag was broken and the closing tag was missing. This is guaranteed to wreck your page. There's an example of them used properly in the FAQ link immediately above.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    May 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do EZ-Pages work?

    ckoslof & kuroi - respect and thanks for your help

    ckoslof - I should have thought about looking at the address bar. The implementation works and interestingly I see you can get two variations by dropping the chapter ID

    kuroi - I have see what you mean about the tags - I have seen the FAQ and tried implementing it but I am embarrased to say all attempts were abject failures.

    What is frustrating is that I cant seem to find a solution by experiment

    I took as my base code this

    Quote Originally Posted by MacKinnon View Post
    Yay,

    I found out how to do this .... <a class="yourClassName" href="<?php echo zen_href_link(FILENAME_EZPAGES, 'id=nnn&chapter=mmm') ?>">Your link text in here</a>

    It looks so simple now Thank you GrandmaJ
    which seems to be a variation of the FAQ guide eg "zen_ez_pages_link" as opposed to the "zen_href_link" above. Also the use of the "FILENAME_EZPAGES" above.

    I have tried implementing both variations without success. EG

    Code:
    <a href= <?php echo zen_href_link(FILENAME_EZPAGES, 'id=5&chapter=5') ?>"> Your link  text in here</a>
    
    <a href= <php echo zen_ez_pages_link(ID=5, chapter=5, , , ); ?> Your link  text in here </a>
    I suspect it is due to incorrect use of " and '.

    Any observations would be welcome

    Sorry to be so lengthy

    Centec2b

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How do EZ-Pages work?

    Quote Originally Posted by Centec2b View Post
    I suspect it is due to incorrect use of " and '.
    That's largely right. The correct versions would be:
    <a href="<?php echo zen_href_link(FILENAME_EZPAGES, 'id=5&chapter=5') ?>">Your link text in here</a>
    and
    <a href="<php echo zen_ez_pages_link(5,5); ?>">Your link text in here </a>
    (Note my additions in red)
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v154 Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade
    By anduril3019 in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 19 May 2015, 09:12 AM
  2. how do i get javascript to work in the ez pages?
    By warroyo90 in forum General Questions
    Replies: 2
    Last Post: 28 Mar 2012, 05:14 AM
  3. How can I get my CSS navigation tabs to work for groups of similar pages?
    By sifuhall in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Nov 2009, 07:57 PM
  4. Replies: 3
    Last Post: 22 Jul 2008, 12:01 AM
  5. Bwahahaha How do I get ez-pages to work?
    By hodgejr in forum General Questions
    Replies: 7
    Last Post: 8 Oct 2007, 09:10 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