If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / define page additor... can i add a file?

define page additor... can i add a file?

Locked

Started by kitcorsa on 29 Jul 2010, 11:13 AM · Views: 661

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
29 Jul 2010, 11:13 AM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

define page additor... can i add a file?

i want to add a file to the define page editor so i can edit it direct from the admin section.

at the moment i have a piece of text on the bottom of my product pages which changes regually but is the same on all items. At the moment change this on the template file via FTP and notepad...

thinking it would be quicker and easier (as i can give someone else the job) if i could edit a txt file (or simular) from the define page editor and then this file could just be included onto the template file.

then when i change the file in the define page it changes all the pages.


29 Jul 2010, 12:07 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: define page additor... can i add a file?

I don't think you can add a text file to the editor, but the About Us mod adds a define page to the list. You could rename that.

29 Jul 2010, 2:38 PM
#3
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: define page additor... can i add a file?

ill have a look at the mod.. see how it works and see if i can modify it


29 Jul 2010, 3:06 PM
#4
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: define page additor... can i add a file?

looking throught the file there defeine page editor edits a php files (which is pritty much the same as a txt file) so all i need to figger out it how to add the page into the editor on the admin side drop down then i can simple include the file into my template files.


29 Jul 2010, 3:15 PM
#5
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: define page additor... can i add a file?

easy to do actually... simple create a php file... ie define_seo_text.php and upload to store/includes/languages/english/html_includes and hay prest its in the dewfine pages editor and can be defined.

then on mt template files i just add the code ```

<?php include(/includes/languages/english/html_includes/define_seo_text.php); ?>


29 Jul 2010, 3:25 PM
#6
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: define page additor... can i add a file?

sorry correct code is

<?php include("includes/languages/english/html_includes/define_seo_text.php"); ?>