Changeset 962


Ignore:
Timestamp:
Mar 22, 2007, 9:17:46 PM (15 years ago)
Author:
kake
Message:

Add config option to place content above navbar in HTML.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r953 r962  
    4242      moderation_requires_password enable_node_image enable_common_categories
    4343      enable_common_locales recent_changes_on_home_page
    44       show_gmap_in_node_display);
     44      content_above_navbar_in_html show_gmap_in_node_display);
    4545
    4646my $skip_config = Module::Build->y_n("Skip OpenGuides configuration?", "n");
     
    9696   custom_lib_path use_plucene indexing_directory enable_page_deletion
    9797   admin_pass stylesheet_url site_name navbar_on_home_page
    98    recent_changes_on_home_page home_name
     98   recent_changes_on_home_page content_above_navbar_in_html home_name
    9999   site_desc default_city default_country contact_email default_language
    100100   formatting_rules_node backlinks_in_title gmaps_api_key centre_long
  • trunk/Changes

    r961 r962  
    1919        Add a new div to wrap the entire body; also, use header.tt in
    2020          home_node.tt instead of copy/paste.
     21        Add config option to place content above navbar in HTML.
    2122        Add config option to suppress inline maps on geotagged nodes.
    2223        Fix preferences to take notice of users turning off inline Google maps.
  • trunk/INSTALL

    r953 r962  
    156156
    157157Answer "y" or "n".
     158
     159
     160  "Do you want the content to appear above the navbar in the HTML?"
     161
     162Answer "y" or "n".  The default is "n", for reasons of backwards
     163compatibility with existing stylesheets, but the recommended answer is
     164"y", as this will help search engines to find the most relevant parts
     165of your pages.
    158166
    159167
  • trunk/lib/OpenGuides/Config.pm

    r953 r962  
    1212   custom_lib_path use_plucene indexing_directory enable_page_deletion
    1313   admin_pass stylesheet_url site_name navbar_on_home_page
    14    recent_changes_on_home_page home_name
     14   recent_changes_on_home_page content_above_navbar_in_html home_name
    1515   site_desc default_city default_country contact_email
    1616   default_language http_charset ping_services
     
    8383                     navbar_on_home_page => 1,
    8484                     recent_changes_on_home_page => 1,
     85                     content_above_navbar_in_html => 0,
    8586                     home_name => "Home",
    8687                     site_desc => "A default configuration of OpenGuides",
     
    158159        navbar_on_home_page => "Do you want the navigation bar included on the home page?",
    159160        recent_changes_on_home_page => "Do you want the ten most recent changes included on the home page?",
     161        content_above_navbar_in_html => "Do you want the content to appear above the navbar in the HTML?",
    160162        home_name => "What should the home page of the wiki be called?",
    161163        site_desc => "How would you describe the site?",
     
    251253=item * recent_changes_on_home_page (default: true)
    252254
     255=item * content_above_navbar_in_html (default: false)
     256
    253257=item * home_name (default: C<Home>)
    254258
  • trunk/templates/home_node.tt

    r961 r962  
    55<div id="content">
    66
    7 [% IF navbar_on_home_page %]
     7[% IF navbar_on_home_page AND !config.content_above_navbar_in_html %]
    88  [% INCLUDE navbar.tt %]
    99[% END %]
     
    4949
    5050</div>
     51
     52[% IF navbar_on_home_page AND config.content_above_navbar_in_html %]
     53  [% INCLUDE navbar.tt %]
     54[% END %]
     55
    5156[% INCLUDE footer.tt %]
  • trunk/templates/node.tt

    r951 r962  
    33[% INCLUDE banner.tt %]
    44<div id="content">
    5 [% INCLUDE navbar.tt %]
     5[% IF !config.content_above_navbar_in_html %]
     6  [% INCLUDE navbar.tt %]
     7[% END %]
    68<div id="maincontent" class="hreview">
    79[% IF oldid %]
     
    144146</div>
    145147
     148[% IF config.content_above_navbar_in_html %]
     149  [% INCLUDE navbar.tt %]
     150[% END %]
     151
    146152[% INCLUDE footer.tt %]
Note: See TracChangeset for help on using the changeset viewer.