* Allow multiple tag settings to appear in a single page.

master
joey 2007-02-14 04:05:08 +00:00
parent 663a874427
commit 96125d8da5
9 changed files with 19 additions and 16 deletions

View File

@ -41,9 +41,8 @@ sub preprocess (@) { #{{{
delete $params{page};
delete $params{destpage};
$tags{$page} = [];
foreach my $tag (keys %params) {
push @{$tags{$page}}, $tag;
$tags{$page}{$tag}=1;
# hidden WikiLink
push @{$links{$page}}, tagpage($tag);
}
@ -60,13 +59,14 @@ sub pagetemplate (@) { #{{{
$template->param(tags => [
map {
link => htmllink($page, $destpage, tagpage($_))
}, @{$tags{$page}}
]) if exists $tags{$page} && @{$tags{$page}} && $template->query(name => "tags");
}, sort keys %{$tags{$page}}
]) if exists $tags{$page} && %{$tags{$page}} && $template->query(name => "tags");
if ($template->query(name => "categories")) {
# It's an rss/atom template. Add any categories.
if (exists $tags{$page} && @{$tags{$page}}) {
$template->param(categories => [map { category => $_ }, @{$tags{$page}}]);
if (exists $tags{$page} && %{$tags{$page}}) {
$template->param(categories => [map { category => $_ },
sort keys %{$tags{$page}}]);
}
}
} # }}}

3
debian/changelog vendored
View File

@ -15,8 +15,9 @@ ikiwiki (1.43) UNRELEASED; urgency=low
preprocessing it.
* Fix smiley plugin to support smileys at the very beginning or end of
the content.
* Allow multiple tag settings to appear in a single page.
-- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 18:40:36 -0500
-- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 22:40:56 -0500
ikiwiki (1.42) unstable; urgency=low

View File

@ -5,3 +5,6 @@ page that used `core=1` in the template (such as [[plugins/mdwn]]), the
`type/core` tag disappeared, and the template did not supply
it. --[[JoshTriplett]]
Problem was that setting a tag cleared all earlier tags. [[bugs/done]], and
I like the idea of the autotagging..
--[[Joey]]

View File

@ -1,5 +1,5 @@
[[template id=plugin name=htmlscrubber core=1 author="[[Joey]]"]]
[[tag type/html type/core]]
[[tag type/html]]
This plugin is enabled by default. It sanitizes the html on pages it renders
to avoid XSS attacks and the like.

View File

@ -1,5 +1,4 @@
[[template id=plugin name=inline core=1 author="[[Joey]]"]]
[[tag type/core]]
This is a [[PreProcessorDirective]] that allows including one wiki page
inside another. For example:

View File

@ -1,5 +1,5 @@
[[template id=plugin name=mdwn core=1 author="[[Joey]]"]]
[[tag type/format type/core]]
[[tag type/format]]
This plugin lets ikwiki convert files with names ending in ".mdwn" to html.
It uses the [[markdown]] minimal markup language.

View File

@ -1,6 +1,5 @@
[[template id=plugin name=passwordauth core=1 author="[[Joey]]"]]
[[tag type/auth]]
[[tag type/core]]
This plugin lets ikiwiki prompt for a user name and password when logging
into the wiki. It also handles registering users, mailing passwords, and

View File

@ -38,10 +38,6 @@ few things:
* To use one block of text if a variable is set and a second if it's not,
use `<TMPL_IF NAME="variable">text<TMPL_ELSE>other text</TMPL_IF>`
The filled out template will be formatted the same as the rest of the page
that contains it, so you can include WikiLinks and all other forms of wiki
markup in the template.
Here's a sample template:
<span class="infobox">
@ -57,3 +53,8 @@ Here's a sample template:
<TMPL_VAR notes>
</TMPL_IF>
</span>
The filled out template will be formatted the same as the rest of the page
that contains it, so you can include WikiLinks and all other forms of wiki
markup in the template. Note though that such WikiLinks will not show up as
backlinks to the page that uses the template.

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-02-13 19:10-0500\n"
"POT-Creation-Date: 2007-02-13 22:40-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"