Zen Cart Logo
Forums / General Questions / How do EZ-Pages work?

How do EZ-Pages work?

Views: 245,873

Results 241 to 260 of 570
23 Jun 2008, 2:58 PM
#241
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

How do EZ-Pages work?

I'd rather not have to download the whole program for that itty bitty file. I truly appreciate the suggestion, but do we have another?

Short answer? Nope. You should have a copy of all the files on your desktop, just for such problems.

24 Jun 2008, 1:00 AM
#242
ivorytklr avatar

ivorytklr

New Zenner

Join Date:
Jun 2008
Posts:
3
Plugin Contributions:
0

Re: How do EZ-Pages work?

OK. Downloaded the whole shebang, uploaded the file and the title problem is solved which leaves problem #2. (And I really do feel better having those files on my desktop.)

The link opens up a blank page. The EZ Page file was created, named Test, and the words Testing 1-2-3 are in the html area. The page opens, but is totally blank. Just a big, white, nothing. No internal or external links were specified. This one really has me baffled.

http://www.shopjustvintage.com

Thanks,

Wanda

13 Jul 2008, 5:20 PM
#243
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hello,

When I type a description for my EZ page it wraps around the TOC.
I would like to have it neatly display below it.
I suppose that I need a br.clearBoth somewhere.
The question is: where?
Is there a template that governs the display of the description?
The template for the sidebox dosn't help for this.
Thanks.

14 Jul 2008, 5:29 AM
#244
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How do EZ-Pages work?

Not sure if this would help, but there is an add-on sidebox for the TOC to show only when on the EZ-Pages with TOCs ...

14 Jul 2008, 7:50 PM
#245
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

Thanks for quick answer.
I suppose you refer to the EZ-Pages TOC Sidebox authored by you, right?
I will test it later, although I don't think this is what I meant.
I'll try to answer my own question: there is no template for EZ pages because they are stored in database, they can however be manipulated via CSS, is that correct?
I am getting by putting several <p> </p> in the beginning of the EZ pages in order to prevent the wrap-around, just thought it would be better to re-arrange a template to my liking, but apparently this is impossible at present.
One more question: I am using FCK in EZ pages, but this thing has a very weird behavior: it asks me to upload images to the server (I develop on a local XAMPP), and then stores them in /myfiles/image/example.jpg.
This folder is at the same level as the root of the store, in other words when I upload the store the images won't be there, so I will have to change the path.
Now, here's the question: since EZ pages reside in the database, I don't see the folder structure and don't know the path.
For example, suppose an image is in store_root/images/accessories/example.jpg, what would be the relative path to that image in the EZ page?
Thanks.

15 Jul 2008, 4:23 PM
#246
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

I tested Ajeh's contrib. without a glitch.
However, I confirm that this is not what I meant.
The contrib moves the TOC to a sidebox, I just wanted more control of the way the content displays in the pages, guess I'll have to settle for HTML and CSS.
Still waiting for an answer to my other question...

15 Jul 2008, 6:39 PM
#247
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: How do EZ-Pages work?

Yes, there is a template to edit for EZ-Pages it is called tpl_page_default.php

15 Jul 2008, 7:19 PM
#248
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: How do EZ-Pages work?

Thanks Kim, found the template includes/templates/template_default/templates/
I see that I could eventually use the override system too, sweet.
Now, this raises another question: I see some ids there like id="ezPagesHeading", or id="ezPageDefault"
I can't find those ids in the main stylesheet.
Where are they?
Thanks.

15 Jul 2008, 7:21 PM
#249
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

They're probably not there. If every possible ID and class was included in the stylesheet, even when they weren't in use, it would cause pages to load more slowly in visitor's browsers.

Therefore items are generally (though not always) included only when in use. If you want to use one that isn't needed for the classic template design, then just add it yourself and you're good to go.

15 Jul 2008, 7:41 PM
#250
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

15 Jul 2008, 7:46 PM
#251
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.

1 Aug 2008, 11:58 PM
#252
centec2b avatar

centec2b

New Zenner

Join Date:
May 2008
Posts:
52
Plugin Contributions:
0

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

....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

2 Aug 2008, 12:34 AM
#253
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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?main_page=page&id=2&chapter=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>

2 Aug 2008, 7:09 AM
#254
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.

2 Aug 2008, 10:50 AM
#255
centec2b avatar

centec2b

New Zenner

Join Date:
May 2008
Posts:
52
Plugin Contributions:
0

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

MacKinnon:

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:D 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

<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

2 Aug 2008, 11:14 AM
#256
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do EZ-Pages work?

Centec2b:

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)

2 Aug 2008, 11:09 PM
#257
centec2b avatar

centec2b

New Zenner

Join Date:
May 2008
Posts:
52
Plugin Contributions:
0

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
:smile:

4 Aug 2008, 1:22 AM
#258
dableys avatar

dableys

New Zenner

Join Date:
Apr 2008
Location:
Westmeath, Ireland
Posts:
30
Plugin Contributions:
0

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?main_page=page&id=4&chapter=1

hope there is someone out there who can help

regards
darbleys

4 Aug 2008, 1:28 PM
#259
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

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: ```
<a href="http://mydomain/images/mypic.jpg" target="_blank"></a>

4 Aug 2008, 3:15 PM
#260
dableys avatar

dableys

New Zenner

Join Date:
Apr 2008
Location:
Westmeath, Ireland
Posts:
30
Plugin Contributions:
0

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:frusty: