rootpage is not a pagespec
So ./posts won't be interpreted right. Just "posts" should do, I think.master
parent
1e4c9e6733
commit
ee94407891
|
@ -263,8 +263,14 @@ sub preprocess_inline (@) { #{{{
|
||||||
# Add a blog post form, with feed buttons.
|
# Add a blog post form, with feed buttons.
|
||||||
my $formtemplate=template("blogpost.tmpl", blind_cache => 1);
|
my $formtemplate=template("blogpost.tmpl", blind_cache => 1);
|
||||||
$formtemplate->param(cgiurl => $config{cgiurl});
|
$formtemplate->param(cgiurl => $config{cgiurl});
|
||||||
$formtemplate->param(rootpage =>
|
my $rootpage;
|
||||||
exists $params{rootpage} ? $params{rootpage} : $params{page});
|
if (exists $params{rootpage}) {
|
||||||
|
$rootpage=bestlink($params{page}, $params{rootpage});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$rootpage=$params{page};
|
||||||
|
}
|
||||||
|
$formtemplate->param(rootpage => $rootpage);
|
||||||
$formtemplate->param(rssurl => $rssurl) if $feeds && $rss;
|
$formtemplate->param(rssurl => $rssurl) if $feeds && $rss;
|
||||||
$formtemplate->param(atomurl => $atomurl) if $feeds && $atom;
|
$formtemplate->param(atomurl => $atomurl) if $feeds && $atom;
|
||||||
if (exists $params{postformtext}) {
|
if (exists $params{postformtext}) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ browse the tag cloud on the right. An archive of all [[posts]] is also
|
||||||
available.
|
available.
|
||||||
|
|
||||||
[[!inline pages="./posts/* and !*/Discussion" show="10"
|
[[!inline pages="./posts/* and !*/Discussion" show="10"
|
||||||
actions=yes rootpage="./posts"]]
|
actions=yes rootpage="posts"]]
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue