PITS /
01093: Enhance conditional markup to 'if attachments PAGENAME'
Summary: Enhance conditional markup to 'if attachments PAGENAME'
Created: 2009-04-29 05:30
Status: Open
Category: Feature
From: simon
Assigned:
Priority: 5
Version: 2.2.1
OS: n/a
- Description
- Using the if Conditional Markup in a Page List Template with attachlist.
See also PITS.01087 Extend Conditional Markup (:if attachments:)
to specify file names
>>comment<< [[#attachments]] (:template defaults if='attachments {=$FullName}':) (:template first:) !! Pages with attachments (:template first {=$Group}:) !!! [[{=$Groupspaced}/]] (:template each:) !!!! [[{=$FullName}]] (:attachlist {=$FullName} :) [[#attachmentsend]] >>font-size:smaller<< [@(:pagelist fmt=#attachments count=4 :)@] |
|
>>comment<< [[#attachments2]] (:template defaults:) (:template first:) !! Pages with attachments (:template first {=$Group}:) !!! [[{=$Groupspaced}/]] (:template each:) !!!! [[{=$FullName}]] (:attachlist {=$FullName} :) [[#attachments2end]] >>font-size:smaller<< [@(:pagelist fmt=#attachments2 count=4 if='attachments {=$FullName}':)@] |
|
>>comment<< [[#attachments3]] (:template defaults:) (:template first:) !! Pages with attachments (:template first {=$Group}:) !!! [[{=$Groupspaced}/]] (:template each:) (:if attachments {=$FullName}:) !!!! [[{=$FullName}]] (:attachlist {=$FullName} :) (:ifend:) [[#attachments3end]] >>font-size:smaller<< [@(:pagelist fmt=#attachments3 count=4:)@] |
|
Actually, the problem is that you can't say
(:if attachments PAGENAME:)