Zen Cart Logo
Forums / General Questions / Menu in footer needs repair?

Menu in footer needs repair?

Locked

Views: 3,654

Results 21 to 40 of 57
This thread is locked. New replies are disabled.
9 Mar 2010, 8:21 PM
#21
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Menu in footer needs repair?

clydejones:

ez pages are stored in the database and not in files.
OH , a classic "CATCH 22" . So, I should just reconstruct the ez-pages from analyzing the ones in the EasyPHP database.

I've noticed that whenever something has "easy" in its name, it ain't easy:no: any easier and it would be impossible...

9 Mar 2010, 8:55 PM
#22
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Menu in footer needs repair?

rdcast:

OH , a classic "CATCH 22" . So, I should just reconstruct the ez-pages from analyzing the ones in the EasyPHP database.

I've noticed that whenever something has "easy" in its name, it ain't easy:no: any easier and it would be impossible...

you could always export that particular table from the database on your local PC and import it into the database on your main site.

9 Mar 2010, 10:41 PM
#23
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

clydejones:

look in the browser address bar when you navigate to the pages in question.

Yea, like the fly on my big nose. Thanks. And thank you for helping me to understand ez-pages.

I would like to change the title on the "Privacy Notice" page. There isn't an option to do that in the "Define Pages Editor". What file can the titles be changed?

10 Mar 2010, 6:38 AM
#24
gjh42 avatar

gjh42

Black Belt

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

Re: Menu in footer needs repair?

Use Tools > Developers Toolkit to search for privacy or privacy notice. This will show the file and line number where the text is defined; you can edit that file and change the define as you wish.

10 Mar 2010, 1:35 PM
#25
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

gjh42:

Use Tools > Developers Toolkit to search for privacy or privacy notice. This will show the file and line number where the text is defined; you can edit that file and change the define as you wish.
**/home/astringo/public_html/includes/languages/english/html_includes/define_privacy.php

the above is the address to the "Define Pages" file. I find no identifies in number form or otherwise or any area where one might change the main title of that page. What do you mean by "line number"? When define pages are rendered, they each have a main title that can't be edited, unless you know something I've yet to discover.
**

10 Mar 2010, 2:16 PM
#26
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Menu in footer needs repair?

rdcast:

**/home/astringo/public_html/includes/languages/english/html_includes/define_privacy.php

the above is the address to the "Define Pages" file. I find no identifies in number form or otherwise or any area where one might change the main title of that page. What do you mean by "line number"? When define pages are rendered, they each have a main title that can't be edited, unless you know something I've yet to discover.
**

have you looked in:

includes/languages/english.php

includes/languages/english/privacy.php

10 Mar 2010, 2:20 PM
#27
gjh42 avatar

gjh42

Black Belt

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

Re: Menu in footer needs repair?

OK, you meant the website structural page title, not the text in the page heading. That is an involved process, requiring changing several filenames and corresponding references in several other files. There should be a description somewhere in the forum, or the tutorials or wiki.
The About Us mod in Free Addons would give an example of the additions/changes required.

10 Mar 2010, 2:52 PM
#28
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

gjh42:

OK, you meant the website structural page title, not the text in the page heading. That is an involved process, requiring changing several filenames and corresponding references in several other files. There should be a description somewhere in the forum, or the tutorials or wiki.
The About Us mod in Free Addons would give an example of the additions/changes required.
lol, I'm going to skip that for now.

Ya'll have helped me to understand how to link to pages that already exist in ZC. How do I determine the internal address to a page/file, newly created by me?

10 Mar 2010, 3:39 PM
#29
gjh42 avatar

gjh42

Black Belt

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

Re: Menu in footer needs repair?

Navigate to that page, and copy the URL in the address bar at the top.

The internal address is everything beginning with
index.php?main_page=...
It might be different if you have a flat HTML page inside the ZC folders.

10 Mar 2010, 4:29 PM
#30
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

gjh42:

Navigate to that page, and copy the URL in the address bar at the top.

The internal address is everything beginning with
index.php?main_page=...
It might be different if you have a flat HTML page inside the ZC folders.
:blush:
I created a file, now I wish to put it in a newly created ez-page. To create that new ez-page, it asks for an address to locate it, yet there cannot be an address before the ez-page is created. What am I missing?

10 Mar 2010, 5:40 PM
#31
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Menu in footer needs repair?

rdcast:

:blush:
I created a file, now I wish to put it in a newly created ez-page. To create that new ez-page, it asks for an address to locate it, yet there cannot be an address before the ez-page is created. What am I missing?

When you say "new FILE", what exactly do you mean? What did you create, or, what is this "file" for? What file extension did you give it? .htm or .txt or .php ?

Describe what this file is and what you want it to do...

10 Mar 2010, 5:53 PM
#32
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

schoolboy:

When you say "new FILE", what exactly do you mean? What did you create, or, what is this "file" for? What file extension did you give it? .htm or .txt or .php ?

Describe what this file is and what you want it to do...
The file is html and I want to put it in its own dedicated ez-page.

10 Mar 2010, 6:01 PM
#33
gjh42 avatar

gjh42

Black Belt

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

Re: Menu in footer needs repair?

If you want the file's HTML content in an ez-page, just copy & paste the HTML code into the ez-page editing textarea. You will need the ez-page to be in plaintext editing mode, not using HTMLArea, to do this.

Note - do not include the <html> <head> <body> tags when you paste the content, as those are already part of the Zen Cart page structure and duplicating them may kill your page.

10 Mar 2010, 6:05 PM
#34
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

rdcast:

:blush:
I created a file, now I wish to put it in a newly created ez-page. To create that new ez-page, it asks for an address to locate it, yet there cannot be an address before the ez-page is created. What am I missing?
Let me reiterate the question.
It isn't the file I'm asking about, but rather the creation of the ez-page itself. In defining its parameters, at the bottom, it asks for its internal address, but it has to be created before it can have an address doesn't it?

10 Mar 2010, 6:10 PM
#35
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Menu in footer needs repair?

If you created the page using a wysiwyg editor (Dreamweaver, FrontPage) then you have 2 choices:

  1. Put the page onto the server somewhere - even the root of your zencart site is OK (but I usually put it into a sub-folder.)

Then, create an EZ page with an appropriate TITLE.

Specify where you want the link to that page to go (EZPages Header, EZPages Footer, EZPages Sidebox. Make sure you give it a Sort Order greater than ZERO.

DO NOT put any content into the text window. Skip over that input box.

Put the URL to that html page in the EXTERNAL LINK input field: (http://www.yourwebsite.com/htmlpages/your_html_page.html)

Then SAVE the EZPage.
*
(If you have not yet made the EZPage locations ACTIVE, you need to do so in admin >>> configuration >>> EZPages. ... Here you will determine whether header, footer and sidebox for EZPages are active or not).*

  1. Put the HTML CONTENT into the EZPage itself.

From the program you used to create the HTML page, toggle to SOURCE CODE VIEW - so you can see the underlying html.

You need to COPY the relevant HTML code to your computer clipboard and you will now copy ONLY the html that is BETWEEN the <body> and </body> tags. You must not copy anything else - because the header and closing </html> tags are already in the page generated by zencart.

So... copy the stuff between <body> and </body>.

Then, go to the EZPAges editor screen in zencart, and if you are using the inbuilt html editor (HTMLArea), toggle to PLAIN TEXT mode.

Then <ctrl+v> ("Paste") that code into to the content input box.

SAVE the file - making sure of course that at the top you have given the page a NAME and told ZC whether the link to the page must be in header, footer, sidebox, and that a SORTv ORDER has been specified.

*NOTE:
Creating html content in an external editor is usually OK, but remember that any specific styling (css) that you have applied via the external editor needs to be embedded inline into the html itself.

Zencart will not know these styles as they will not (by default) be in the general stylesheets.*

10 Mar 2010, 6:14 PM
#36
gjh42 avatar

gjh42

Black Belt

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

Re: Menu in footer needs repair?

The internal link address is for using the ez-pages system to show a link to a separate (non-ez-page) Zen Cart page in a menu.
You ignore that if you are creating an ez-page with content entered into the textarea.

10 Mar 2010, 6:19 PM
#37
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Menu in footer needs repair?

Yes I should have mentioned what Glen says.

An "EZPage" can be EITHER a link, or a PAGE in its own right - but cannot be BOTH.

If you have stuff in the page content input field AND a link in either of the link input fields, ZC will alert you to the error and won't save the EZPage until you remove one or the other content types...

10 Mar 2010, 6:37 PM
#38
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

After following your directions to the best of my ability, here is the error message returned:

Not Found

The requested URL /public_html/includes/templates/ocean_front/custom_pages/chat.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

10 Mar 2010, 6:43 PM
#39
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: Menu in footer needs repair?

gjh42:

The internal link address is for using the ez-pages system to show a link to a separate (non-ez-page) Zen Cart page in a menu.
You ignore that if you are creating an ez-page with content entered into the textarea.
Essential distinction. The ez-page creation editor generates the internal address? How do I discover what that address is so I can make use of it?

10 Mar 2010, 6:45 PM
#40
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Menu in footer needs repair?

rdcast:

After following your directions to the best of my ability, here is the error message returned:

Not Found

The requested URL /public_html/includes/templates/ocean_front/custom_pages/chat.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

... because:
/public_html/includes/templates/ocean_front/custom_pages/chat.html

... is not a valid web URL.

Try:

http://www.your_website.com/includes/templates/ocean_front/custom_pages/chat.html