[interchange-cvs] interchange - edl modified dist/lib/UI/pages/admin/help.html
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Mon Oct 8 16:58:01 2001
User: edl
Date: 2001-10-08 20:57:09 GMT
Modified: dist/lib/UI/pages/admin help.html
Log:
Added [more] paging to UI help topics list.
Revision Changes Path
2.4 +12 -5 interchange/dist/lib/UI/pages/admin/help.html
rev 2.4, prev_rev 2.3
Index: help.html
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/admin/help.html,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -r2.3 -r2.4
--- help.html 2001/09/18 22:16:37 2.3
+++ help.html 2001/10/08 20:57:09 2.4
@@ -52,18 +52,25 @@
if ($Scratch->{help_text} =~ /~~HELP_TOPICS~~/) {
my $help_index = <<EOF;
<ul>
-[loop search="
+[search-region more=1
+ form="topic=[scratch help_key]"
+ search="
fi=@_UI_HELP_TABLE_@
ra=yes
rf=code,title
tf=title
- ml=10000
+ ml=20
+ sp=@@MV_PAGE@@
"]
-[if type=explicit compare="q{[loop-code]} !~ m{^(?:faq|home|404|\Q[scratch help_key]\E)$}"]
- <li>[page href="@@MV_PAGE@@" form="topic=[loop-code]"][loop-pos 1]</a>
+[search-list]
+[if type=explicit compare="q{[item-code]} !~ m{^(?:faq|home|404|\Q[scratch help_key]\E)$}"]
+ <li>[page href="@@MV_PAGE@@" form="topic=[item-code]"][item-pos 1]</a>
[/if]
-[/loop]
+[/search-list]
</ul>
+[more-list]More help topics: [more][/more-list]
+[/search-region]
+
EOF
$Scratch->{help_text} =~ s/~~HELP_TOPICS~~/$help_index/g;
}