Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Easy way to add more pages?

Easy way to add more pages?

Locked

Views: 2,146

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Jan 2010, 2:26 PM
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Easy way to add more pages?

Hi, I have a custom template thats heavily modified.

I can handle all the HTML and css editing myself, so Id like to look at a 'barebones' method of adding extra custom static pages.

Basically, I want to code the links to these extra pages into my template, but I need to know whats required to call this page into the index.php

For example; index.php?main_page=another_new_page

Can anyone help? Im just wanting to know whats files need to be created at a minimum

I dont need the page to be editable in the; admin/define pages for example, or to show up in sidebox menus, or 'information' etc.

Thanks,

Scott.

19 Jan 2010, 2:38 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Easy way to add more pages?

Wouldn't the EZ pages be the best (and easiest) way to do this?

You can create an EZ page and then copy its URL right from the browser address box.

19 Jan 2010, 2:42 PM
#3
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Easy way to add more pages?

Hi Steve, possibly, to be honest i havent used the ez pages at all.

But it sounds like the way to go!

I promise to read up on them. :cool:

(thank you)

20 Jan 2010, 12:38 AM
#4
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Easy way to add more pages?

I must be missing something obvious, but I cant seem to add content to my EZ page.

I create a new EZ page and it has;

HTML Content:

Internal Link URL:

External Link URL:

I thought I would put my custom content in the 'HTML Content' area and name my page something like; index.php?main_page=test

But I get an error message saying;

Error: you have defined multiple settings when only one may be defined per Link ...
Only define either: HTML Content -or- Internal Link URL -or- External Link URL

Im not seeing where I can add the wording for the newly created EZ page.

Thanks,

Scott.

20 Jan 2010, 1:55 AM
#5
megamanx avatar

megamanx

New Zenner

Join Date:
Jan 2010
Posts:
41
Plugin Contributions:
0

Re: Easy way to add more pages?

Scott_C:

I must be missing something obvious, but I cant seem to add content to my EZ page.

I create a new EZ page and it has;

HTML Content:

Internal Link URL:

External Link URL:

I thought I would put my custom content in the 'HTML Content' area and name my page something like; index.php?main_page=test

But I get an error message saying;

Error: you have defined multiple settings when only one may be defined per Link ...
Only define either: HTML Content -or- Internal Link URL -or- External Link URL

Im not seeing where I can add the wording for the newly created EZ page.

Thanks,

Scott.

Heres what you need to do to use EZ pages:
In the admin go to Tools->EZ pages
Click on "New file"
1.Type in any name in the Name field
2.Add your content to the HTML area
3.In the Chapter field type any number you want your EZ page to be.
4.In the Order field, again, any number.

Leave the rest fields empty and checkboxes by their default.

Now... to access your page use this link as an example:

http://your_site/index.php?main_page=page&id=15&chapter=1

where .... id=15.....(this is your pages id you can find it right after you created your page in EZ pages section on the left side of the screen) (pages ID gets assigned automatically)
....chapter=1.....this the chapter of your page.(see also in the in EZ pages section)

Its done)

20 Jan 2010, 1:57 AM
#6
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Easy way to add more pages?

You cannot name you page and create html content. That is what your error message is telling you.

remove the link and it works. And enable the EZpage in the footer or header and you will see the name of the link. You cannot give you own name.

20 Jan 2010, 2:04 AM
#7
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Easy way to add more pages?

Thanks Guys, that makes sense.

I thought I got to define my custom content and a url of my choosing, but I can by what you're telling me thats not the case.

Cheers,

Scott.

20 Jan 2010, 2:57 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Easy way to add more pages?

You do define your custom content, and the name you want the page links to be identified by.
What you do not do is define the URL - that must be index.php?main_page=page&id=##

And the TOC/chapter is optional, only to be used if you want two or more ez-pages to be tied together. If you want separate pages that just link from the sidebox or header/footer menus, just add a sort order and activate the one(s) you want.

20 Jan 2010, 2:59 AM
#9
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Easy way to add more pages?

gjh42:

And the TOC/chapter is optional, only to be used if you want two or more ez-pages to be tied together. If you want separate pages that just link from the sidebox or header/footer menus, just add a sort order and activate the one(s) you want.

Thanks Glenn, I figured that. Im actually just adding a few more static pages and ran out of define_pages.

Cheers,

Scott.

15 Feb 2010, 7:45 PM
#10
jarus323 avatar

jarus323

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: Easy way to add more pages?

Ok guys, I'm trying to created a custom page.
I go to Tools>EZ-Pages>New File.
Page title is given as stores
open new window:no
page is ssl:no
header:no, blank
sidebox:no, blank
footer:yes, order 10
chapter:blank
toc:no, blank

I've inserted some content.
I've specified internal link url: index.php?main_page=stores
I click insert and BAM, no problems. Page is created b/c i see it under "EZ-Pages select a page" section.....Right?

I open my browser go to http://mytestdomainname.com/store/index.php?main_page=stores and nada.
"Page not found", right in my face.......
"A custom 404 error page with site map sample text...".....

What am i doing wrong?
I've tried to go to Tools>define pages but I don't see the stores page there. I'm not sure If I'm suppose to though.

I went back to ez-pages, i edited my stores page, i click update just to see if it's going to create it, but then it displays:
"Error: you have defined multiple settings when only one may be defined per Link ...
Only define either: HTML Content -or- Internal Link URL -or- External Link URL"
When I erase the Internal Link URL:index.php?main_page=stores
then click update, the error msg goes away, but then the URL to my stores page does not exist....

What the heck?

15 Feb 2010, 8:32 PM
#11
jarus323 avatar

jarus323

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: Easy way to add more pages?

Did some more troubleshooting........

  1. created my own stores php file in
    /includes/languages/english/stores.php
    /includes/modules/pages/stores/header_php.php
    /includes/languages/english/html_includes/define_stores.php
    /includes/templates/template_default/templates/tpl_stores_default.php
    /includes/languages/english/html_includes/classic/define_stores.php

I've inserted some content in to both define_stores.php, the link works now but no content displays, even when I input content through define pages...

I don't get the 404 error, All I get is my title and a back button.

What the heck.....

16 Feb 2010, 11:04 AM
#12
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Easy way to add more pages?

I apologize if I don't understand what you're trying to do, but it sounds like you're making this a lot more difficult than it really is.

If you want to create an EZ page with content you've added, you wouldn't do anything with the URL boxes. As it says,
If specified, the page content will be ignored and this INTERNAL alternate URL will be used to make the link

Just specify the name of the page, and select where you want the link to appear (you did all that stuff right). A link to the page will appear where you specified and the URL of the EZ page is automatically created.

Define pages and EZ pages are two different things, so EZ pages won't show up in the define pages list.

16 Feb 2010, 5:51 PM
#13
sjmills93 avatar

sjmills93

New Zenner

Join Date:
Jan 2010
Location:
St. Joseph, Ontario, Canada
Posts:
37
Plugin Contributions:
0

Re: Easy way to add more pages?

My custom template overrode the original tpl_contact_us_default.php template and so I have downloaded it from default_templates and placed it into my custom folder of templates.

However, now I'm trying to figure out how to get it to display. Under the Tools > EZ Pages - I've deleted out HTML contact in the HTML editor area and placed the internal link where required, but I'm still getting error message:

Error: you have defined multiple settings when only one may be defined per Link ...
Only define either: HTML Content -or- Internal Link URL -or- External Link URL

How do I resolve this so that the default contact us form displays when someone clicks on the Contact Us link?

16 Feb 2010, 5:58 PM
#14
sjmills93 avatar

sjmills93

New Zenner

Join Date:
Jan 2010
Location:
St. Joseph, Ontario, Canada
Posts:
37
Plugin Contributions:
0

Re: Easy way to add more pages?

Hmm...for some reason although I was deleting out the HTML entered contents in favour of the internal link, the Admin area was not immediately recognizing this.

I had to do it several times - manually deleting out HTML content, re-entering internal URL before the change actually took.

It's now working!!!:smile: