SID-00501: Create a table with short infos of topics
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
Perl 5.8.8 |
| Category: |
CategorySearch |
Server OS: |
SLES 10.2 |
Last update: |
16 years ago |
hi, i created a list of all childtopics. Now i need a short description which is written in each childtopic as output in a list like:
any ideas to implement that? Greeting daniel
--
DanielPerabo - 2009-08-24
Discussion and Answer
If you're OK with using the starting text of the topics, you could use the summary options of a
FormattedSearch:
$summary |
Topic summary, just the plain text, all formatting and line breaks removed; up to 162 characters |
$summary(50) |
Topic summary, up to 50 characters shown |
$summary(showvarnames) |
Topic summary, with %<nop>ALLTWIKI{...}% variables shown as ALLTWIKI{...} |
$summary(noheader) |
Topic summary, with leading ---+ headers removed Note: The tokens can be combined, for example $summary(100, showvarnames, noheader) |
Instead you could create a description formfield for the topic, but then you're relying on user's to maintain that.
Finally, if your topics have a known structure (i.e., created from a template) that includes a Description section, you could include that section, or (more complicated) try to extract the text between the description header and the header following it.
--
SeanCMorgan - 2009-08-24
Good summary, Sean.
Related:
VarSEARCH,
FormattedSearch,
TWikiTemplates,
QuerySearch,
RegularExpression.
--
PeterThoeny - 2009-08-25
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.