From: Reini U. <ru...@x-...> - 2006-02-13 07:43:44
|
2006/2/12, Stefan <son...@ba...>: > I tried it but it did'nt wok > > <?plugin IncludePages pages=3D<!plugin RandomPage numpages=3D5 !> lines= =3D10 ?> > > we do also need a feature to add sections from Pages where as example > the word "picture" is part of the title > > Mybe the pagename is like that > > aaa/bbb/picture > cccc/oooo/picture > > And every of these pages do have a section called "Photo" > > Would be very very helpful to can merge this sections on one page with a > plugin like > > <?plugin IncludePage page=3D<?!plugin TitleSearch s=3D'Picture' > noheader=3Dtrue !> quiet=3D1 section=3D"Photo" sectionhead=3D0?> > > Can we make it possible? Whould be really really helpfull for us This should already work: <?plugin IncludePages pages=3D<?!plugin TitleSearch s=3D'Picture' noheader=3Dtrue !> quiet=3D1 section=3D"Photo" sectionhead=3D0?> Note the plural: [Pp]ages not [Pp]age Section by name is implemented, just section and/or paragraph by numeric order not. > Reini Urban schrieb: > > >2006/2/3, Comit <sa...@us...>: > > > > > >>Hi everyone. First time poster, long time pmwiki user. > >> > >>I wanted to set up a 'Did you know' to the front page of the wiki. I t= ried > >>using the randomquote mods but that only lets you do one per page. I'd= like > >>to have about 4-6, similar to what mediawiki pages do. Any idea how to = go > >>about setting this up? > >> > >> > > > >Sorry for the delay. > > > >I'll try to reword the question in phpwiki terms. > > > >We have RandomPage plugin which lists a list of up to random 10 pagename= s. > >You want to present the content of the the first paragraph of 4-6 random= pages? > > > >That would be possible with the <!plugin RandomPage numpages=3D5 !> > >syntax as page argument to IncludePages. > > > >Untested: > ><?plugin IncludePages pages=3D<!plugin RandomPage numpages=3D5 !> lines= =3D10 ?> > > > >Including the first paragraph is only possible if you know the exact > >name of the heading. > > > >I'll probably add support to use the x-th paragraph (textblock) or > >section (all blocks in this heading). -- Reini Urban http://phpwiki.org/ http://spacemovie.mur.at/ http://helsinki.at/ |