Changeset 191
- Timestamp:
- 07/10/03 20:25:31 (6 years ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
Build.PL (modified) (2 diffs)
-
Changes (modified) (1 diff)
-
INSTALL (modified) (2 diffs)
-
lib/OpenGuides/Template.pm (modified) (2 diffs)
-
templates/home_node.tt (modified) (1 diff)
-
templates/navbar.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Build.PL
r190 r191 52 52 variable => "site_name", 53 53 default => "OpenGuides Wiki" 54 }, 55 { question => "do you want the navigation bar included on the home page?", 56 variable => "navbar_on_home_page", 57 default => "y", 58 type => "y_n" 54 59 }, 55 60 { question => "what should the home page of the wiki be called?", … … 122 127 foreach my $qset (@questions) { 123 128 my $qu = $qset->{question}; 129 my $type = $qset->{type} || ""; 124 130 my $var = $qset->{variable}; 125 131 my $def = $existing_config{$var} || $qset->{default}; 126 132 my $val = $def; 127 133 unless ( $skip_config ) { 128 $val = Module::Build->prompt("\n$qu ", $def); 134 if ( $type eq "y_n" ) { 135 $val = Module::Build->y_n("\n$qu ", $def); 136 } else { 137 $val = Module::Build->prompt("\n$qu ", $def); 138 } 129 139 } 130 140 -
trunk/Changes
r190 r191 8 8 rules link in navbar. Enable this by setting text_formatting_node 9 9 in your config file. 10 Added config option for including the navbar on the home page. 10 11 11 12 0.18 16 June 2003 -
trunk/INSTALL
r175 r191 101 101 102 102 103 "Do you want the navigation bar included on the home page?" 104 105 Answer "y" or "n". 106 107 103 108 "What should the home page of the wiki be called?" 104 109 "How would you describe the wiki?" … … 109 114 Self explanatory. 110 115 116 117 "What's the name of the node to use for the text formatting rules link?" 118 119 From 0.19, OpenGuides allows users to choose whether or not to have a 120 permanent link to the text formatting rules node in their navbar. You 121 need to put the name of that node in here for it to work, though. You 122 might want to call the node "Text Formatting Examples", "Text 123 Formatting Rules", "House Style" or whatever. -
trunk/lib/OpenGuides/Template.pm
r190 r191 78 78 =item * C<formatting_rules_link> (unless C<omit_formatting_link> is set in user cookie) 79 79 80 =item * C<navbar_on_home_page> 81 80 82 =item * C<home_name> 81 83 … … 125 127 home_link => $script_url . $script_name, 126 128 home_name => $config->{_}->{home_name}, 129 navbar_on_home_page => $config->{_}->{navbar_on_home_page}, 127 130 formatting_rules_link => $formatting_rules_link, 128 131 formatting_rules_node => $formatting_rules_node, -
trunk/templates/home_node.tt
r181 r191 22 22 23 23 [% USE CGI %] 24 25 [% IF navbar_on_home_page %] 26 [% INCLUDE navbar.tt %] 27 [% END %] 24 28 25 29 <div id="header"> -
trunk/templates/navbar.tt
r190 r191 1 <div id="toolbar">1 <div class="toolbar"> 2 2 <ul> 3 3 <li><a href="[% home_link %]">[% home_name %]</a></li>
