SID-01548: Search summary - links?
| Status: |
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
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.