With the new navigation strip code thingie, I figured it would be worth explaining how to add a nav strip to custom styles. (Presumably system styles will support it, so in S2 we mainly have to worry about custom layout layers, not theme/user, unless they have stuff in the theme layer controlling the Page::print() thingum
(
Read more... )
Comments 15
Otherwise, go ahead and add 'em, and I'll make sure they get linked from the FAQ :)
Reply
so. i'd like to see consistency before it has a chance to get inconsistent.
i vote that all code references use the correct names (otherwise it'd break, right) and all spoken language references use "Navigation Strip."
thoughts?
Reply
(The comment has been removed)
Reply
Also, "Page_print()" should be "Page::print()".
Reply
Reply
Reply
Reply
Reply
And it's not a "create a layout" situation. It's "edit your layout layer, or your theme layer if you're using that instead". Because a lot of the times the style will need changing, it'll be a custom layout layer already. (Not always, of course, but.)
Reply
LiveJournal provides the Navigation Strip for easy access to common site features. All system styles automatically support it, however, if you have a custom layer, you may need to include the built-in function for printing the Navigation Strip in your layer in order for it to display. This function will need to be added immediately after the tag of the HTML structure.
In your custom layout or theme layer (depending on which you are using) locate the function Page::print(). Within it, you will find a tag, which may look similar to the following:
Reply
LiveJournal provides the Navigation Strip for easy access to common site features. All system styles automatically support it, however, if you have a custom style, you will need to include the system property for printing the Navigation Strip in your style in order for it to display. This property will need to be added immediately after the tag of the HTML structure.
The rest of S1 seems okay. S2 terminology was bad - styles instead of layers, property, when it was really a built-in function...
Reply
Leave a comment