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

How do EZ-Pages work?

Views: 245,826

Results 101 to 120 of 570
27 Jan 2007, 01:33
#101
kuroi avatar

kuroi

Totally Zenned

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

How do EZ-Pages work?

DivaVocals:

Well I have searched the forum and can't find the answer to this.. I need to turn off the "Home" link on the EZ-Pages footer.. I've looked at the "tpl_ezpages_bar_footer.php" the file, and am not seeing anything that looks remotely like what I need to comment out. It's strange that by default this link does not appear in the EZ Pages header -- which is okay with me BTW.. I need to remove it from the footer.. I would rather use the EZ Pages function to create this link anyway...The Home link isn't in the EZ-Pages footer. It's hardcoded into the #navSupp wrapper in the common/tpl_footer.php file immediately before the EZ-Pages are included. So you would need to edit that file directly.

27 Jan 2007, 04:37
#102
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How do EZ-Pages work?

Thanks.. That worked.. (gotta get into the CSS and make a few adjustments.. all in all that did the trick) One last thing... How do I get rid of the separator that appears at the beginning of the links...

Here's my demo site if you need to see what I am referring to.. http://divawebdzine.com/clients/TreeLifePublishing/

You'll see the "~" separator appears before the rest of the links.. Here's the section of the code I modified.. Did I miss something???

<div id="navSupp">
<ul>
<!--<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> -->
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
<?php } ?>
</ul>
</div>
27 Jan 2007, 09:16
#103
kuroi avatar

kuroi

Totally Zenned

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

Re: How do EZ-Pages work?

Admin > Configuration > EZ-Pages Settings > EZ-Pages Footer Link Separator

27 Jan 2007, 16:18
#104
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How do EZ-Pages work?

kuroi:

Admin > Configuration > EZ-Pages Settings > EZ-Pages Footer Link Separator Thanks, but I already know how to add/remover the separator.. what I need to know is to how to NOT have it appear at the begginning of my footer (before the links begin).. The separator is showing up BEFORE my first link like it's separating the space where the Home page link used to be.. I have looked at the code for the header, and the home page link is commented out and yet the separator does not lead the links on the header.. Only does this on the footer..

So when I comment out the Home page link on the footer, this is what it looks like:
~ Contact Us ~ Shipping & Returns ~ Privacy Notice ~ Conditions of Use ~ Site Map ~ Newsletter Unsubscribe

Instead of
Contact Us ~ Shipping & Returns ~ Privacy Notice ~ Conditions of Use ~ Site Map ~ Newsletter Unsubscribe

How do I fix that???

27 Jan 2007, 18:12
#105
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How do EZ-Pages work?

I did some more digging and figured out what the problem is..

I had to modify the following file:
includes/templates/template_default/templates/tpl_ezpages_bar_footer.php
I compared it to the following file:
includes/templates/template_default/templates/tpl_ezpages_bar_footer.php

I made the changes as follows:

Old:

<?php if (sizeof($var_linksList) >= 1) { ?>
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {  ?>
<?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>
  <a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a>
<?php } // end FOR loop ?>
<?php } ?>

New:

<?php if (sizeof($var_linksList) >= 1) { ?>
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {  ?>
  <a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ([B]$i < $n ? [/B]EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>
<?php } // end FOR loop ?>
<?php } ?>

This solves the problem of the leading link separator.. However, the only remaining issue is that despite my CSS settings, the footer links do not align flush left.. This is somewhat frustrating..

27 Jan 2007, 19:18
#106
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: How do EZ-Pages work?

Could somebody please help me, I am trying to display a page with some php code on my site.

Where should I put the php file, then what code do I use in the Internal Link URL address to show it like the other pages.

Currently I am using the External Link URL

http://www.lionblade.com/rssfeedreader.php

But this opens a new page with just the code, not my site layout included, thanks.

27 Jan 2007, 20:45
#107
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi

I have taken a quick look and yes it certainly does just produce the code.

As far as I understand it if you want to link to an external page you need to complete the page fully. i.e. Your code needs a header and a body, links to style sheets in the header and all the usual gump, etc.

If you want to use the code within the site use one of the pages at:
tools - define pages editor - page 2, etc. Stick the code in that and then list it as you want.

I hope that helps.

Rich

27 Jan 2007, 21:25
#108
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: How do EZ-Pages work?

cregy:

Hi

I have taken a quick look and yes it certainly does just produce the code.

As far as I understand it if you want to link to an external page you need to complete the page fully. i.e. Your code needs a header and a body, links to style sheets in the header and all the usual gump, etc.

If you want to use the code within the site use one of the pages at:
tools - define pages editor - page 2, etc. Stick the code in that and then list it as you want.

I hope that helps.

Rich

Thanks Rich, it worked. I went to the Define Pages Editor, Page_2 and chose Source and stuck the code in there. Then linked to it internally and all nicely formatted now.

http://www.lionblade.com/page_2.html

:yes:

28 Jan 2007, 05:00
#109
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi

I am glad to help.

Rich

28 Jan 2007, 18:27
#110
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How do EZ-Pages work?

DivaVocals:

I did some more digging and figured out what the problem is..

I had to modify the following file:
includes/templates/template_default/templates/tpl_ezpages_bar_footer.php
I compared it to the following file:
includes/templates/template_default/templates/tpl_ezpages_bar_header.php oooops.. I meant to say I compared the footer file with the header file..

So now that I've fixed my problem with the leading separator issue on my EZ Pages footer.. Does anyone know why the EZ Pages footer seems to be calling for "something" where the Home link used to appear?? Whatever it is. it's interfering with my EZ Pages footer alignment style and as a result it will not align left or center properly...

01 Feb 2007, 18:47
#111
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How do EZ-Pages work?

bump

Anyone got any ides?? This is making center or left alignment of the EZ Pages footer impossible..

01 Feb 2007, 20:04
#112
kuroi avatar

kuroi

Totally Zenned

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

Re: How do EZ-Pages work?

Bumping for its own sake is frowned upon in this forum. It's a very active forum, so it you don't get an answer that usually means that it's too complex for a forum post, no body knows the answer, or nobody understands the question. In this case, I suspect that the latter is the problem. I recommend some clarification as to what you are asking, and a link to a site displaying the problem - I can't see anything wrong with the footer on site to which you linked previously.

01 Feb 2007, 20:45
#113
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi

I suspect that instead of removing the whole section. i.e. the div everything to sort out the 'home' link, he has just removed the php code. Leaving the div will probably interfere with your design.

Just to confirm what Kuroi has said, answers come very fast normally.

Rich

P.S. If this doesn't help we will need a link!

01 Feb 2007, 21:00
#114
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi

Just looking at a few further things:

  1. Validate your code:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fdivawebdzine.com%2Fclients%2FTreeLifePublishing%2F
    Repairing some of these errors might(?) sort things out.

  2. CSS can't even validate because of the html errors:
    http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fdivawebdzine.com%2Fclients%2FTreeLifePublishing%2F

  3. The graphics and images take a while to load and that is on a 8mb connection. Looking at around 10 seconds!

Hope this is a start.

Rich

02 Feb 2007, 02:27
#115
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

Re: How do EZ-Pages work?

Where can I turn of the display of page title as being the first line of the page? Right now it shows as:
Home:: About Us
About Us [I don't wnt to show this line]
And here goes my heading

02 Feb 2007, 08:44
#117
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How do EZ-Pages work?

It won't be in the header.
That "About Us" is after the breadcrumbs, and equivalent to the category name on a product page. I don't know the file offhand, but it will be a content/body tpl_ file, I suspect. It is possible that it could be removed by editing a define in a language file, such as ABOUT_US_HEADING or some such.
Look around and let us know what you find.

02 Feb 2007, 08:51
#118
kuroi avatar

kuroi

Totally Zenned

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

Re: How do EZ-Pages work?

Sunabac:

Where can I turn of the display of page title as being the first line of the page? Right now it shows as:
Home:: About Us
About Us [I don't wnt to show this line]
And here goes my headingThere's somthing slightly odd about this question :huh:

Are you sure that the apge you want to change is an EZ-Page? If so, the About Us title is the one that you gave it when you created the page. Rather than trying to turn it off and substitute another, it would be much better to simply correct the title in Admin > Tools > EZ-Pages.

If it is a custom page then if it is well-constructed there will be a language file in the includes/languages/english/YOUR_TEMPLATE_NAME folder that defines a constant such as HEADING_TITLE, and again it would be better to correct that rather than trying to circumvent how Zen Cart works to hard a title into the body of the page.

02 Feb 2007, 08:52
#119
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi

As described the link can only be the one in the tpl_header file. However, it is the words about us that might be the problem. Can you send a url so we can see exactly what you are talking about.

Thanks.

Rich

02 Feb 2007, 15:41
#120
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

Re: How do EZ-Pages work?

kuroi:

There's somthing slightly odd about this question :huh:

Are you sure that the apge you want to change is an EZ-Page? If so, the About Us title is the one that you gave it when you created the page. Rather than trying to turn it off and substitute another, it would be much better to simply correct the title in Admin > Tools > EZ-Pages.

If it is a custom page then if it is well-constructed there will be a language file in the includes/languages/english/YOUR_TEMPLATE_NAME folder that defines a constant such as HEADING_TITLE, and again it would be better to correct that rather than trying to circumvent how Zen Cart works to hard a title into the body of the page.

It is created with Ez Page, name give as About Us and the page displays like this:
Home :: About Us
About Us

   ******About Pride Pak Canada Ltd.******

Pride Pak Canada Ltd. (“Pride Pak”) was established in 1984 and currently operates from
My first line in EZ Page is like this:

<h1><b>About Pride Pak Canada Ltd.</b></h1> <p> Pride Pak Canada Ltd. (“Pride Pak”) was established in 1984\

I do not wish the text shown in red to be there... (It is not red in the display)

I would like these EZ pages to show as follows:

Home :: About Us
About Pride Pak Canada Ltd.

How can I do it??