Zen Cart Logo
Forums / General Questions / Changing URL link for EZ Page

Changing URL link for EZ Page

Views: 945

Results 1 to 6 of 6
1 Mar 2011, 3:06 PM
#1
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Changing URL link for EZ Page

Hello,

I have an existing Ez Page (page_4) and while i've learnt how to change the navbar_title and heading_title, i haven't been able to find where to change the actual name of the page, so when a user enters a button i've created that links to it, in the URL it will say

http://qnecomputing.com.au/index.php?main_page=Help

instead of the current

http://qnecomputing.com.au/index.php?main_page=page_4

zen cart version: 1.3.9h

1 Mar 2011, 3:20 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: Changing URL link for EZ Page

Ad,
This is one nice feature of Zen Cart to understand and learn:

https://www.zen-cart.com/tutorials/index.php?article=39

  1. search for:
  2. page_4
  3. you should see a file here called:
  4. includes/languages/english.php
  5. remember the override system if you are using one:
  6. so you will place this file in: includes/languages/your_template/ english.php
  7. remember to leave the single quotes
  8. define('BOX_INFORMATION_PAGE_4', 'Help');
1 Mar 2011, 3:35 PM
#3
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Re: Changing URL link for EZ Page

Thanks for referring me to the developers tool kit.

I followed the steps you outlined, found the includes/languages/english.php
then changed

define('BOX_INFORMATION_PAGE_4', 'Page 4');

to

define('BOX_INFORMATION_PAGE_4', 'Help');

but wasn't able to locate a folder that was to suggest 'your_template'. I only have one more folder in includes/languages and that is english

so i just have includes/languages/english and the file english.php in that folder
[IMG]http://img220.imageshack.us/img220/3618/uploadtoimage.jpg[/IMG]

1 Mar 2011, 4:13 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Changing URL link for EZ Page

If there is not a /your_template/ folder where you are supposed to have one, just create it. There should be a /classic/ folder in there; if there is not, someone has deleted it, which is a bad thing to do.
/classic/ folders are located in every place where an override is possible, and serve as a guide for you to create your own template folders.

2 Mar 2011, 8:15 AM
#5
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Re: Changing URL link for EZ Page

I had installed version 1.3.9g via the host iPage, then manually upgraded to 1.3.9h. Even if i create a /your_template/ folder and just place english.php in there, it won't actually show page_4 as 'Help' in the URL?

I had changed

define('BOX_INFORMATION_PAGE_4', 'Page 4');

to

define('BOX_INFORMATION_PAGE_4', 'Help');

in the english.php file in the screen shot above, but i still had the same issue :/

2 Mar 2011, 11:15 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Changing URL link for EZ Page

No, the URL shows the actual internal name of the page. You need to edit about a half dozen PHP files and rename some of them to change that. See the About Us mod from Free Addons for more information.