Tags:
create new tag
view all tags

Question

The content of the 'format' parameter from the SEARCH variable can be very complex and large. Is it possible to use linebreaks for easy to read the content?
For example:

*without linebreaks:*

%SEARCH{
...
format="<table><tr><td>any data...</td><td>any data...</td></tr><tr><td>any data...</td><td>any data...</td><tr></table>"
}

*with linebreaks:*

%SEARCH{
...
format="
   <table>
      <tr>
         <td>any data...</td>
         <td>any data...</td>
      </tr>
      <tr>
         <td>any data...</td>
         <td>any data...</td>
      <tr>
   </table>"
}

(The usage of the 'table' HTML tag instead of wiki tables (|...|...|) is only a sample.)

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Search, Missing functionality, Add-Ons

-- DetlefSturm - 21 Nov 2005

Answer

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.

-- DetlefSturm - 21 Nov 2005

Use $n() in the format of the FormattedSearch.

-- PeterThoeny - 21 Nov 2005

Don't think Detlef meant the output of his search. I guess he meant the input line formatting. There has been a long discussion and a brief solution about that for Dakar. See AddGluePluginToCore for the very interesting discussion and Bugs:Item260 for the solution in Dakar and you could use GluePlugin on Cairo of course.

-- FranzJosefSilli - 21 Nov 2005

Oh, I misread the question. Thanks Franz for the clarification.

-- PeterThoeny - 21 Nov 2005

Thanks a lot for the help. The GluePlugin is the right solution for my problem. After the installation of it, I can write a SEARCH commando as following:

%~~   %SEARCH{
~~~   ...
~~~   format="
*~~      <table>
*~~         <tr>
*~~            <td>any data...</td>
*~~            <td>any data...</td>
*~~         </tr>
*~~         <tr>
*~~            <td>any data...</td>
*~~            <td>any data...</td>
*~~         <tr>
*~~      </table>"
~~~   }

But for me it is a little bit confuse:

  • The GluePlugin uses the syntax with '%~~', '~~~' and '*~~'
  • But Bugs:Item260 describes the syntax with '++', '+-' and '+*'
What is the final version?

-- DetlefSturm - 24 Nov 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-11-24 - DetlefSturm
 
  • 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.