[default] Adding Navigation Links

Jun 06, 2002 00:02


To add one or more links to the system's Default style, simply piggyback the website link override. Note that these links will be added to the bottom of the page, as that is where the website link is located. There is no way to add navigation links to the top of the page through overrides.
LASTN_WEBSITE<=

http://www.example.com/yourpage.html"> name of link

http://www.example.com/yourpage.html"> name of link

%%name%%

<=LASTN_WEBSITE

This override will be operational only if the livejournalist actually specifies a personal website under the user profile settings. In the sample code given above, display of the website link is retained. The segment that retains the website link can be deleted from the override if so desired, as long as a website is still specified within the user's profile.
Note that although the website link code here can use LiveJournal variables that automatically pick up the right values (%%--%% and %%--%%), no variables can be used in any tag-along links. Thus, to add links to items that you would normally be able to use those variables for, you will need to use the full url.
You can use as many sections for tag along links as you would like, just be aware that a large number of them might cause unexpected results. If you would only like to add one extra link then you would remove the second set of tag along link code.
Variable Reference:LASTN_WEBSITE Additional References:
  • Merging Your GLOBAL_HEAD Note the techniques described can be used to merge any variable, including LASTN_WEBSITE.
  • What are overrides? How do they work?

  • Only one override is permitted for each specific override block.
    If you are currently using a LASTN_WEBSITE override, then that override would need to be revised to reflect changes presented here or otherwise merged.
    contributed by macheide

    - default, adding navigation links

    Previous post Next post
    Up