Forums / Addon Language Packs / Cannot find "define_page_2.php etc..."

Cannot find "define_page_2.php etc..."

Locked

Views: 5,379

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
15 Jul 2008, 2:27 PM
#1
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Cannot find "define_page_2.php etc..."

...in the Define Pages Editor. I'm using zc 1.3.8a with a French language pack. Because the other day, Pages 2, 3 and 4 were showing up in the site map, I manually deleted them (mistake) before discovering that all you have to do is disable them in the admin. Oh well, you live and learn. The problem now is that with the files recopied into the appropriate folders and enabled in admin, they still don't show up in the Define Pages Editor whereas their English-language cousins do show up in the English-language section of the admin. What have I missed ?

Pete
zc 1.3.9h
www.gardenserre.fr

15 Jul 2008, 4:42 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cannot find "define_page_2.php etc..."

Do you have (or replace) these files in the french side?

Zen-Venom Get Bitten

16 Jul 2008, 6:18 AM
#3
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

Yes, I copied the French version of define_page_2.php into my custom folder and uploaded it to the server but I can't see it in the define pages editor. There's something quite simple here I think that I can't put my finger on.

Pete
zc 1.3.9h
www.gardenserre.fr

16 Jul 2008, 11:02 PM
#4
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
399
Plugin Contributions:
6

Re: Cannot find "define_page_2.php etc..."

They should be in "includes/languages/french/htlm_includes" for the original version and in "includes/languages/french/htlm_includes/CUSTOM/" for you modified version.
Is it where you put them?

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 Jul 2008, 6:00 AM
#5
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

pilou2:

They should be in "includes/languages/french/htlm_includes" for the original version and in "includes/languages/french/htlm_includes/CUSTOM/" for you modified version.
Is it where you put them?

Yep, that's where they are (well actually, that's where define_page_2.php is) !

Pete
zc 1.3.9h
www.gardenserre.fr

17 Jul 2008, 8:03 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cannot find "define_page_2.php etc..."

They'll need to exist in both places:

/includes/languages/french/html_includes/define_page_2.php
and
/includes/languages/french/html_includes/YOUR_CUSTOM_TEMPLATE/define_page_2.php

Right or wrong, the first one tells the editor that a file by that name should be listed.
The second one, in the custom folder, is the one that is actually loaded by the editor.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Jul 2008, 8:53 AM
#7
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

Of course. I knew it had to be something simple ! Thanks.

Pete
zc 1.3.9h
www.gardenserre.fr

17 Jul 2008, 4:43 PM
#8
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

I spoke too fast. I can now see the pages in the define text editor and also in the define page status section of Admin and can see, when enabled, the pages in the site map but they don't show up the side box with the other define pages, contact_us.php etc. The corresponding page_2.php etc. pages are all uploaded in the language and custom folders so what else is there to do ?

Pete
zc 1.3.9h
www.gardenserre.fr

17 Jul 2008, 7:54 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cannot find "define_page_2.php etc..."

they don't show up the side box with the other define pages
These pages by default exist in the sideboxes/more_information.php sidebox

Turn it on from the admin > tools > layout boxes controller > sideboxes/more_information.php

If brave, can move them from /includes/modules/sideboxes/more_information.php to your template copy of information.php

The following can be copied and pasted into the information.php file in the desired display order

  if (DEFINE_PAGE_2_STATUS <= 1) {

    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';

  }

Also read the note in more_information.php:

// insert additional links below to add to the more_information box

// Example:

//    $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';

Zen-Venom Get Bitten

18 Jul 2008, 5:57 AM
#10
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

Thanks. OK, we're getting there. I may move the link to information.php as you suggest as that would be neater. However, although I've changed the page title in page_2.php to "FAQ" (or rather the French translation), it still shows up as "Page 2". Is there somethiong else I have to change ?

Pete
zc 1.3.9h
www.gardenserre.fr

18 Jul 2008, 7:50 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cannot find "define_page_2.php etc..."

However, although I've changed the page title in page_2.php to "FAQ" (or rather the French translation), it still shows up as "Page 2". Is there somethiong else I have to change ?
This one is not so easy as for starts in filenames.php this is what it is titled and there are a total of 8 places - files or file edits that contribute to this.

If this is important for you the easiest way is for you yo look over a module that creates another new page and 8 files/edits required to affect this - then you can create one or many following the same outline.

Get the about us module from the downloads area and look over the instructions.

Zen-Venom Get Bitten

18 Jul 2008, 9:45 AM
#12
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Cannot find "define_page_2.php etc..."

Thanks. Zen Cart can be a little frustrating at times. I found this thread (you're in it !) which may be of help. I'll give it a try.

Pete
zc 1.3.9h
www.gardenserre.fr