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.
Printable View
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.
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
However all I get is an error message saying I either dont have permission or the server cant find the fileCode:....Please click<b> <a href="php echo zen_href_link(FILENAME MY FILE , '5,,,,') ">here</a>.......
If you can see what I am doing wrong I would be grateful if you could put me right
Thank you
Centec2b
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>
@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.
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
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
I suspect it is due to incorrect use of " and '.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>
Any observations would be welcome
Sorry to be so lengthy
Centec2b
That's largely right. The correct versions would be:
andQuote:
<a href="<?php echo zen_href_link(FILENAME_EZPAGES, 'id=5&chapter=5') ?>">Your link text in here</a>
(Note my additions in red)Quote:
<a href="<php echo zen_ez_pages_link(5,5); ?>">Your link text in here </a>
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
:smile:
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
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>
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:frusty: