Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: How to define anchors (fragment identifiers) in define pages?

    While not *EVERYTHING* is so intuitive as the following, the thing about filenames, is that they are defined in a file with a similar name: includes/filenames.php.

    Now, that said, if you get squirrely and start developing your own software, you don't need to add your filenames to that file. There are other directories that can be used to load your self defined filenames. A reason you wouldn't want to modify that file is that when you do the next upgrade, you would have to make sure that those changes would carry over and the file would again need to be edited. If you keep your changes separate from the base/core files (as much as possible) then it becomes easier to just insert your files again in the future rather than modifying/merging.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: How to define anchors (fragment identifiers) in define pages?

    Quote Originally Posted by gernot View Post
    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>
    I am sure my point 3 in post #7 does much the same thing universally.

    3. In your \includes\templates\YourTemplate\common\tpl_header.php, add the following immediately after <div id="headerWrapper"> (or whatever div contains your header file)

    Code:

    <!-- bof Back to top - see tpl_YourPage_default.php -->
    <a name="top"></a>
    <!-- eof Back to top -->
    And I suppose for added universality, my point 2 in same post could be placed in

    \includes\templates\yourTemplate\common\tpl_main_page.php

    between the last banner (mine template says bannerFour) and the </div> closing the centre column (mine is centerColumn).

    However, one does need to remember/document these particular code additions.

    cheers

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Using HTML named anchors in define pages
    By lat9 in forum General Questions
    Replies: 3
    Last Post: 4 Jun 2012, 02:02 AM
  2. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  3. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR