
Originally Posted by
gernot
Many thanks for the additional information. I haven't edited the template files yet, although I did check them to see which "id"s were available to reference in some pages.
After some reading of the code, I could figure out how to link to other pages as well, with or without referencing a fragment in that page. Really great!
Code:
<a href="<?php echo zen_href_link($page='contact_us', zen_get_all_get_params(array('main_page')), $request_type, false); ?>">Contact</a>
Unless there is a need to assign/create the variable $page in the content of the page where that code is located, then it could be removed to look like this:
Code:
<a href="<?php echo zen_href_link('contact_us', zen_get_all_get_params(array('main_page')), $request_type, false); ?>">Contact</a>
That said though, there is a constant that already defines the main_page value for you, again allowing the code to remain "generic". FILENAME_CONTACT_US
So this could be written:
Code:
<a href="<?php echo zen_href_link(FILENAME_CONTACT_US, zen_get_all_get_params(array('main_page')), $request_type, false); ?>">Contact</a>
Which should look relatively familiar if you review template files where the contact us link is offered.
Bookmarks