Forums / Templates, Stylesheets, Page Layout / New page, language file not being included ... I think

New page, language file not being included ... I think

Locked

Views: 1,255

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Jun 2016, 3:22 PM
#1
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

New page, language file not being included ... I think

Hi
I'v follwed this zen wiki on creating new pages :
https://www.zen-cart.com/wiki/index.php/Creating_new_pages

All ok, except the language is not getting included... so, no title, or breadcrumb.
I've recheck the file names, are they have the same name.
I'll paste it here:

in modules/pages/ -> special_promos

template -> tpl_special_promos_default

Extra data file -> special_promos
( with define(FILENAME_SPECIAL_PROMOS, 'special_promos'); )

in includes/languages/LANGUAGE/ -> special_promos
( with
define('NAVBAR_TITLE', 'Special Promos');
define('HEADING_TITLE','Special Promos');
)

I guess this should be enough....
Any step that I missing, or not being mentioned in the wiki ?
I think I could get around this, using some other constant... but I would like to do it in the right way.

Thanks

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

2 Jun 2016, 3:27 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: New page, language file not being included ... I think

You could use the "About Us" plugin as a good example of adding a new page. It's got all the various files that are needed, you'd just need to rename the about_us to your_new_page.

2 Jun 2016, 4:02 PM
#3
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New page, language file not being included ... I think

ok, thanks, I'll check that !

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

2 Jun 2016, 4:05 PM
#4
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New page, language file not being included ... I think

ok, now it's ok.
I've check with that plugin, and copy and paste the language file to languages/extra_definitions too.
Now it's getting picked up.

thkans

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison