HOW TO ADD A LINK IN THE "MORE INFORMATION" SIDEBOX
==========================================
This is ONLY to add a LINK.... this has nothing to do with creating a new page to link TO.
1. find the /includes/modules/sideboxes/more_information.php file
2. COPY that file to your /includes/modules/sideboxes/YOURTEMPLATE folder
(where YOURTEMPLATE is the name of your custom template you've been building ... it matches the name of your template folder in the /includes/templates area)
3. EDIT that new file: /includes/modules/sideboxes/YOURTEMPLATE/more_information.php
4. add a line that matches the following syntax, wherever you want it to appear:
PHP Code:
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
If your site is NOT using more than one language and never will use more than one, you can simply replace FILENAME_PAGE_X with 'page_x'
and BOX_INFORMATION_PAGE_X with "Click here for page X"
If you need to support more than one language, you'll need to KEEP the FILENAME_PAGE_X and BOX_INFORMATION_PAGE_X content (changing X appropriately),
and add new definitions for FILENAME_PAGE_X to a NEW file such as
/includes/extra_datafiles/my_filenames.php like this:
PHP Code:
<?php
define('FILENAME_PAGE_X', 'page_x');
?>
and BOX_INFORMATION_PAGE_X to a NEW file such as:
/includes/languages/english/extra_definitions/my_displayed_texts.php
PHP Code:
<?php
define('BOX_INFORMATION_PAGE_X', 'Click here for page x');
?>
5. Save the edited/created files to your server.
Done.
Bookmarks