
Originally Posted by
Kim
Have you added the code for the new links to your sidebox?
Hi, Kim. Thanks for your reply.
Yes, I do have that added to my sidebox info files. Here are some examples of my code:
extra_pages_filenames.php
Code:
// define the extra page filenames
define('FILENAME_DEFINE_RETURNS', 'define_returns');
define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
define('FILENAME_DEFINE_NEWS', 'define_news');
define('FILENAME_DEFINE_WANTED', 'define_wanted');
define('FILENAME_DEFINE_PAGE_10', 'define_page_10');
?>
filenames.php
Code:
// define page editor files
define('FILENAME_DEFINE_RETURNS', 'define_returns');
define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
define('FILENAME_DEFINE_NEWS', 'define_news');
define('FILENAME_DEFINE_WANTED', 'define_wanted');
define('FILENAME_DEFINE_PAGE_10', 'define_page_10');
-----------------------------------------------------------
**What about this area?**
define('FILENAME_POPUP_IMAGE', 'popup_image');
define('FILENAME_PAGE_2', 'page_2');
define('FILENAME_PAGE_3', 'page_3');
define('FILENAME_PAGE_4', 'page_4');
define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten');
------------------------------------------------------------
includes/languages/english.php
Code:
define('BOX_INFORMATION_RETURNS', 'Returns');
define('BOX_INFORMATION_ABOUT_US', 'About Us');
define('BOX_INFORMATION_F.A.Q.', 'F.A.Q.');
define('BOX_INFORMATION_NEWS', 'News');
define('BOX_INFORMATION_WANTED', 'Wanted');
define('BOX_INFORMATION_PAGE_10', 'page 10');
includes/modules/pages/...
Code:
**Example for the "about us" file**
// include template specific file name defines
$define_about_us = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/',
FILENAME_DEFINE_ABOUT_US, 'false');
?>
includes/modules/sideboxes/...
more_information.php
Code:
$more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . BOX_INFORMATION_HOME . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_RETURNS) . '">' . BOX_INFORMATION_RETURNS . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_F.A.Q.) . '">' . BOX_INFORMATION_F.A.Q. . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_NEWS) . '">' . BOX_INFORMATION_NEWS . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_WANTED) . '">' . BOX_INFORMATION_WANTED . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_page_10) . '">' . BOX_INFORMATION_PAGE_10 . '</a>';
information.php
Code:
unset($information);
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_SHIPPING) .
'">' . BOX_INFORMATION_SHIPPING . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_RETURNS) .
'">' . BOX_INFORMATION_RETURNS . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PRIVACY) .
'">' . BOX_INFORMATION_PRIVACY . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONDITIONS) .
'">' . BOX_INFORMATION_CONDITIONS . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_ABOUT_US) .
'">' . BOX_INFORMATION_ABOUT_US . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONTACT_US) .
'">' . BOX_INFORMATION_CONTACT . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_F.A.Q.) .
'">' . BOX_INFORMATION_F.A.Q. . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_NEWS) .
'">' . BOX_INFORMATION_NEWS . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_WANTED) .
'">' . BOX_INFORMATION_WANTED . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_2) .
'">' . BOX_INFORMATION_PAGE_2 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_3) .
'">' . BOX_INFORMATION_PAGE_3 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_4) .
'">' . BOX_INFORMATION_PAGE_4 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_10) .
'">' . BOX_INFORMATION_PAGE_10 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_DEFAULT) .
'">' . BOX_INFORMATION_PAGE_1 . '</a></div>';
In some define areas I have "about us" and in others, "about_us". Basically, I just followed the format of the previously-named pages (e.g. 'page_2' or 'page 2'), so I'm assuming this is correct (or irrelevant).
Do extra_pages_filenames.php & filenames.php coexist, or is extra_pages unnecessary if defines are added to filenames.php? I've tried one, the other & both together, and found no difference. I also have a question inserted in the above filenames.php code box, in case it was missed.
Any input on this matter will be GREATLY appreciated!!! Like I said, this is driving me nuts...