Re: Define Pages Generator - Support
Quote:
Originally Posted by
Oakwood
Pages will not show up in CONFIG>DPS.
Thanks for replying Oakwood.
Actually the PAGES do show up in the DPS, it's how you turn them on and off, add/remove the links/text. I'm not trying to change the HEADER of the sideboxes, that I know how to do. It's turning the new created pages on so they'll show up IN the sidebox, and renaming the existing pages in there (and the DPS) that I'm trying to accomplish. Any more thoughts?
Re: Define Pages Generator - Support
I was reffering to the header bar (maybe its called nav bar?) at the top (home, log in, etc). I am no pro but I would assume if you found the php file for the sideboxes that you were looking for and implemented that code it would work. I dont know where to tell you to look for the php file because I dont use sideboxes.
Hope that helps.
Re: Define Pages Generator - Support
hi,
I have been reading this topic as good as possible, but i still have a question i would like to ask:
i am using the define pages generator (it's great!) to make pages i want to add to the information sidebox. I have put the files in the correct directories and i can see the files in de editor.
I have read a lot of adding pages to a header but how to add the pages to the information box?
what file to change? and what's the code? Can someone give the answer to my questions? That would be great.
e.a. i have a file bedrijven.php what's the line to add to the file(s) i have to change?
Re: Define Pages Generator - Support
Quote:
Originally Posted by
khopek
This generator is amazing. I was sitting here forever individually changing names. Only problem is the new pages aren't showing up in Configuration-->Define Page Status and they also aren't showing up in my Information Sidebox. I did alter the information.php file to include my new pages.
hello Khopek and Anno,
i'm new comer in zen-cart. To add the new define page to Define Page Status, you must execute this SQL command in your database (you can use phpmyadmin) :
INSERT INTO configuration( configuration_title, configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES (
'Name of your Form', 'DEFINE_NAME_OF_YOUR_FORM_STATUS', '1', 'Enable Name of Your Form Link/Text?<br />0= Link ON,
Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF,
Define Text OFF', '25', '84', now( ) , now( ) , NULL , 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');
notes :
- change name_of_your_form with the name of your form
- if you use prefix for the table, i.e : 'zen_', then change the table configuration with zen_configuration in SQL command above
To add your new define page in sidebox, you must edit the sidebox file. For example, open your includes/modules/sideboxes/information.php. Add these lines to your information.php under unset($information); :
if (DEFINE_NAME_OF_YOUR_FORM_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_NAME_OF_YOUR_FORM) . '">' . BOX_INFORMATION_NAME_OF_YOUR_FORM . '</a>';
}
note :
- also change name_of_your_form with the name of your form
save the file and refresh your Online Catalog.
regards,
siyam junianto
Re: Define Pages Generator - Support
banswidthjunkie I just think this app is better then sliced bread it saves so much time.
As a small give back I am posting this snippet of code I use for custom define page meta tags.
I was in need of real meta tags for my Define Pages so I have
come up with this small snippet of code to allow custom meta tags for
all of my define pages. I am using it with v1.3.8
How to setup:
If you are NOT using an overwrite meta_tags file then
copy /includes/modules/meta_tags.php to your /includes/modules/YOUR_TEMPLET/meta_tags.php if you are
then just open /includes/modules/YOUR_TEMPLET/meta_tags.php to edit.
Find: Around Line 336
PHP Code:
// NO "break" here. Allow defaults if not overridden at the per-page level
default:
define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE . TAGLINE);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) . SECONDARY_SECTION . KEYWORDS);
define('META_TAG_KEYWORDS', KEYWORDS . METATAGS_DIVIDER . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) );
}
Replace with:
PHP Code:
// NO "break" here. Allow defaults if not overridden at the per-page level
default:
/********************************************************************
*
* Define Pages Meta Tags SkipWater 08.08.08
* Due to unknown page names we look for DESCRIPTION_DEFINE_PAGE
* To setup add your meta tag values to:
* /includes/languages/english/YOUR_TEMPLET/define_page_file_name.php
* define('TITLE_DEFINE_PAGE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE); // use as default or change
* define('DESCRIPTION_DEFINE_PAGE','Your Description Here');
* define('KEYWORDS_DEFINE_PAGE','Your Keywords Here');
* If you do not want to use Define Page Custom Meta Tags
* do not declare them in your /includes/languages/english/YOUR_TEMPLET/define_page_file_name.php file.
*
********************************************************************/
if (defined('DESCRIPTION_DEFINE_PAGE')){
define('META_TAG_TITLE', TITLE_DEFINE_PAGE);
define('META_TAG_DESCRIPTION', DESCRIPTION_DEFINE_PAGE);
define('META_TAG_KEYWORDS', KEYWORDS_DEFINE_PAGE);
} else {
define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE . TAGLINE);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) . SECONDARY_SECTION . KEYWORDS);
define('META_TAG_KEYWORDS', KEYWORDS . METATAGS_DIVIDER . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) );
}
}
Now to add meta tags to your define page open
/includes/languages/english/YOUR_TEMPLET/define_page_file_name.php
Find:
PHP Code:
// This is used to display the heading and the navigation bar
define('NAVBAR_TITLE', 'title');
define('HEADING_TITLE', 'heading title');
add below it:
PHP Code:
// This is used for custom define page meta tags
define('TITLE_DEFINE_PAGE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE); // use as default or change
define('DESCRIPTION_DEFINE_PAGE','Your Description Here');
define('KEYWORDS_DEFINE_PAGE','Your Keywords Here');
Thanks Again:clap:
Skip
Re: Define Pages Generator - Support
Hello
I downloaded this mod and Iam trying to use to generate links in my items description for extra information regarding these items for example sample Installed item or Available options, Now My problem is locating the Directory, Iam not sure I understand what you mean by Directory in this File. I tried to use the browse button and was able to create files on my desktop, but when i type in the link of where I want these files to be create i get a message Directory does not exist. Iam typing in www.coolcarpartsonline.com/dev/info/pages which is where I want to create these pages. Please can you explain more about the "directory".
Would this work for my application????
"Creating pages to have link to into my product description."
Re: Define Pages Generator - Support
I'm wondering if there is any update necessary for version 1.3.8 for this "meta-module"?
This is an excellent tool. I'm almost afraid I might get carried away and add too many pages to my site, lol.
Thanks for this.
Re: Define Pages Generator - Support
Quote:
Originally Posted by
mafiasam
I'm wondering if there is any update necessary for version 1.3.8 for this "meta-module"?
This is an excellent tool. I'm almost afraid I might get carried away and add too many pages to my site, lol.
Thanks for this.
If you are asking about the code I posted No this code should work in all 1.3x versions.
Skip
Re: Define Pages Generator - Support
Using 1.3.8
I used the generator to build a SPONSORS page.
I have uploaded the files and checked them a half dozen times. The page actually shows up in the define pages editor and I am able to make changes to it there but the page is completely blank except for the Title.
http://oldwestpokersupplies.com/inde..._page=sponsors
or
http://oldwestpokersupplies.com/sponsors.html
All the files and folders have the correct file attributes. I've done this before but since I upgraded to 1.3.8 I think this is my first time adding a page. I'm just wondering what I am missing.
Does anyone have any ideas?
Salvatore
Re: Define Pages Generator - Support
just checked your site but looks like you've got it working now... :clap: