Tags:
create new tag
view all tags

SID-00501: Create a table with short infos of topics

Status: Answered 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:

CarTopic List of all Cars
PhoneTopic here you can see all phone numbers
CoffeeTopic dark coffee ist the best way to keep alive
... ...

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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Create a table with short infos of topics
SupportCategory CategorySearch
TWiki version 4.2.0
Server OS SLES 10.2
Web server Apache 2.2.3
Perl version Perl 5.8.8
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-08-25 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.