Page 26 of 57 FirstFirst ... 16242526272836 ... LastLast
Results 251 to 260 of 570
  1. #251
    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)

  2. #252
    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

  3. #253
    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>

  4. #254
    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)

  5. #255
    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

  6. #256
    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)

  7. #257
    Join Date
    May 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do EZ-Pages work?

    kuroi

    That guidance is invaluable thankyou. I do not have the knowledge of the construction rules, so work by experiment and observation. I think I would have spent a long time on this item.

    Thank you again

    Centec2b http://www.zen-cart.com/forum/images/smilies/smile.gif

  8. #258
    Join Date
    Apr 2008
    Location
    Westmeath, Ireland
    Posts
    33
    Plugin Contributions
    0

    link problem Re: How do EZ-Pages work?

    I am just wondering about the ezpages setup also. I have created pages displaying whatever information i wanted and have put them into the correct chapters, in short, they are working perfectly, just one question though! In my ezpages i have displayed small images and i'm just wondering if there is a way to make them enlarge via a hyperlink? I have created external pages with the images i want to show as a larger image, and i have hyperlinked the image on the ezpage to correspond with the external file, i have also set the hyperlink to open in a new window, but when i click on the small image on my ezpage, nothing happens, but if i right click on the image and choose to open in a new window, the image loads as expected. How can i sort this out???

    here is a link to view what i am talking about
    http://darbleyfish.com/index.php?mai...id=4&chapter=1

    hope there is someone out there who can help

    regards
    darbleys

  9. #259
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: How do EZ-Pages work?

    In your hyperlink, you can add a target="_blank" so it will open in a new
    window.

    Like this:
    Code:
    <a href="http://mydomain/images/mypic.jpg" target="_blank"></a>
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  10. #260
    Join Date
    Apr 2008
    Location
    Westmeath, Ireland
    Posts
    33
    Plugin Contributions
    0

    link problem Re: How do EZ-Pages work?

    Yep, tried that but still not working. Is there a way that i can get an internal page to work as a hyperlink, but not show up as a link in my sidebar?? or is there another way for getting the link to work the way you suggested?

    Thanks for your help, i really appreciate it

    Darbleys

 

 
Page 26 of 57 FirstFirst ... 16242526272836 ... LastLast

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

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