cmshaw (cmshaw) wrote in suggestions,

Provide a function in S2 to print LJ navigation

Provide a function in S2 to print LJ navigation

Short, concise description of the idea
The navigation bars along the top of the Xcolibur/along the top and sides of Dystopia should be available for developers of S2 styles.

Full description of the idea
When developing an S2 style, currently the choices are: write a new comments layout (EntryPage and ReplyPage) OR use the site default layout, which contains handy navigation bars which are specific to the person logged in (not specific to the page viewed). Custom S2 layers can't recreate these navigation bars because they depend on information about the logged-in viewer which is not available to the style and because Xcolibur, for example, uses javascript, which is disallowed in custom layers. If a way of simply calling for the viewer's navigation bars were provided in the S2 core, pages could be customized "inside" the skin for the best of both worlds.

An ordered list of benefits

  • Comments pages could be customized without losing the functionality viewers expect from non-customized pages.
  • Changes to the site navigation (and new site skins, as they may be developed) would be available immediately in built styles.
  • An ordered list of problems/issues involved

  • The Xcolibur skin's navigation is in two pieces (top and bottom bars).
  • Some style developers will design their comments pages for a specific site skin, forgetting that viewers might be using a different skin.
  • Some people may start demanding site skins to match their layouts, especially color-wise.
  • An organized list, or a few short paragraphs detailing suggestions for implementation

  • A function could be added to the core layer(s). Then style developers could simply print this function from within their own layers.
  • Alternatively, a parameter on Page::print_body() could be provided, which would "wrap" the body in the site's navigation bars when true.
  • Tags: s2, ~ historical
    • Post a new comment


      Anonymous comments are disabled in this journal

      default userpic

      Your reply will be screened

      Your IP address will be recorded