[pmwiki-users] Feature I want, multi-select PTVs l like page includes

StefCT stefct4 at gmail.com
Thu Oct 2 13:59:11 CDT 2014


On 10/02/2014 07:18 PM, ccox at endlessnow.com wrote:
> With the include directive you can do things like:
> 
> (:include SomeGroup/Name OtherGroup/Name:)
> 
> Where the first available is included.
> 
> I'd love to see a standard markup for PTV inclusion with something
> similar, either based on existence of the PTV for a page (where multiple
> pages could be specified) and optional maybe if the PTV has a value (but I
> can live without that since empty value is a value).
> 
> for example
> {SomeGroup/Name OtherGroup/Name$:Summary}
> 
> And you'd get back first found like the include directive.

Of course you can already use

(:if ! equal "{SomeGroup/Name$:Summary}"
"":){SomeGroup/Name$:Summary}(:else:){OtherGroup/Name$:Summary}(:ifend:)

Which is more complicated of course. Plus, this whould yield
{OtherGroup/Name$:Summary} if {SomeGroup/Name$:Summary} existed, but was
empty.

--StefCT



More information about the pmwiki-users mailing list