Recent Changes - Search:

PmWiki

pmwiki.org

PageListTemplates-Talk

I've added a PITS entry for a proposed addition to the (:template ...:) markup. More specifically, I think we should be able to say (:template ! first {=$Group}:) in order to eg. add markup before each item except for the first. Currently to achieve this you need to use (:if equal {=$Group} {<$Group}:), which seems a bit clumsy as most other similar markup has been deprecated. The PITS entry also includes the required changes to scripts/pagelist.php. —Eemeli Aro July 29, 2009, at 08:19 AM

Questions

How can I achieve adding a table column only when pagelist outputs something?

There is now a wrap option to (:pagelist:) to allow it to return the markup to the enclosing page, as opposed to rendering it standalone.

Can I use page variables, or even PTVs, in the (:template defaults:) section?

They seem not to work as of 2.2.6. I'd like to do (:template defaults group={*$Group}:) or similar. Maxim? October 11, 2009, at 08:24 AM

Please see, and vote for PITS.00986

Is it possible to transport a link to a uploaded PDF file via PageListTemplate to a pagelist?

I need to manage a lot of standards / codes in a table. To avoid working in a big advanced table I like create a topic for each standard. This topic will have the standard in PDF as an attachment. On this topic I add a few page variables (Name: description: file: etc.)
All these topics I want to collect in a pagelist build from a PageListTemplate.

The user of the wiki shall open the standard direct out of this list and not need to run over the topic.

My try of a template:

[[#standardlist]]
(:if equal {<$Group}:)
(:table:)
(:cellnr:) Topic
(:cell:) standard
(:cell:) issue date
(:cell:) retired
(:cell:)(:if:)
(:cellnr:)[[{=$FullName}]]
(:cell:)[[(attach:){{=$FullName}$:file}]]
(:cell:){{=$FullName}$:year}-{{=$FullName}$:month}
(:cell:){{=$FullName}$:issuredate}
(:cell:){{=$FullName}$:description}
(:if equal {>$Group}:)
(:tableend:)
[[#standardlistend]]

{=$FullName}? {{=$FullName}$:file}? {{=$FullName}$:year}-{{=$FullName}$:month} {{=$FullName}$:issuredate} {{=$FullName}$:description}

Looks fine but don't work....... Is it possible on a different way?

Thanks

Andreas 29.01.2010

[[(attach:)]] in template and [[(attach:)]] in PTV isn't suspect ? What is the code of target $:file ? What is the trouble (no link? no working link?) ?
In my case, I can grab the value (this is not in a page list template) of the file uploaded on PageA EnLigne: [[Attach:Group.MyFile]] using {Group/PageA$:EnLigne} ; did you try {{=$FullName}$:file} (just in case it would work ; I will delete if it doesn't.) (gb January 29, 2010, at 09:54 AM)

Hi Gb,
in my topic I have the pagevariable file: DIN EN 349 - 200809.pdf. With {{=$FullName}$:file} in the template I get this text shown in the pagelist. But as text, not as a link to the file.
With (attach:){{=$FullName}$:file} and I get this text shown in the pagelist as a link to create a new topic named "AttachDINEN349-200809.Pdf" but not to attach a file.

But if I delete the attach: command out of the template and put it into the page variable file: [[(attach:)DIN EN 349 - 200809.pdf]] I get a link to the file in the pagelist. Thank you very much!

Andreas Feb. 1, 2010


This is a talk page for improving PmWiki.PageListTemplates.

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:08 AM