Tags:
create new tag
, view all tags

Question

Hi. We would like to be able to specify what shows up in the index page under each heading. Is this possible?

  • TWiki version: TWiki20010901.zip
  • Web server: Apache
  • Server OS:
  • Web browser:
  • Client OS:

-- DavidHay - 04 Nov 2002

Answer

To the best of my knowledge there is not yet a ready made solution for this. There is some discussion of how it could be implemented at AllowDesignationOfSummary.

I personally just add a short paragraph (~160 characters) at the top of each page which summarizes the topic contents.

-- MattWilkie - 04 Nov 2002

You can also use a regular expression pattern to extract arbitrary content out of a topic. This example extracts the first 60 characters out of the answer of the last five AnsweredQuestions:

Topic: Answer:
PasswordsNotWorking
ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
...
OopsTemplatesNotShowingAnymore
ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
...
DeletingUsers To remove a user:...
RevisionSectionsBlankInHistory
ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
...
UserActivationError
ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
...

The pattern in format is $pattern(.*?\-+\++\s*Answer[\s\n\r]*([^\n\r]{1,60}[^\n\r\s]*).*), see details in FormattedSearch.

-- PeterThoeny - 06 Nov 2002

Topic revision: r3 - 2002-11-06 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.