Tags:
create new tag
view all tags

SID-01548: Search summary - links?

Status: Answered Answered TWiki version: 5.0.2 Perl version: 5.6.1
Category: CategorySearch Server OS: Ubuntu 8.04 Last update: 13 years ago

If i look at search summary, that is used for BlogPost, summary returns only pure tekst, without links. Is it possible to show also links, and where can i fix that?

-- BostjanTovornik - 2012-10-04

Discussion and Answer

The $summary() in a FormattedSearch format returns just plain text. You can add links as needed, assuming you have them available. For example, this Support forum application has a form with a field called "SupportCategory". With this you can create a SEARCH with a format that displays the fields with links. The table on can be formed that way, such as:

%SEARCH{ ... format="| ...|$n| Category: | $formfield(SupportCategory) | Server OS: | $formfield(Server OS) | ... |" }%

More at VarSEARCH, FormattedSearch.

-- PeterThoeny - 2012-10-24

I have for example some attachments, that are linked in article:

[ [% ATTACHURL %/test.txt][test.txt] ]

Can i tell summary to make that link?

-- BostjanTovornik - 2012-10-30

No, as documented, the $summary() in a FormattedSearch format returns just plain text. You could apply a RegularExpression $pattern(...) to pull out the first 140 characters, or the first two lines. Or you could use $text to show the whole text. Details in FormattedSearch.

-- PeterThoeny - 2012-10-30

      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 Search summary - links?
SupportCategory CategorySearch
TWiki version 5.0.2
Server OS Ubuntu 8.04
Web server Apache
Perl version 5.6.1
Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2012-10-30 - 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.