Welcome to Squishdot How-To Websites Squishdot Newbies
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Modifying showSearchResults page
Newbies Posted by Fredrik Karlsson on Saturday November 12, 09:01PM, 2005
from the dept.
There is probably a really easy solution to my problem but since Im not a programer I really need some help.

Im looking for a diferent variable then <dtml-var summary>. It gives me unformated text, instead I would like to get summary in a more "normal" way. Like in the main page.


<dtml-in search_results>
<IMG SRC="&dtml-site_url;/<dtml-var icon >" BORDER="0">
<A HREF=".<dtml-var thread_path>/<dtml-var id>/index_html"><dtml-var title></A>
<br><dtml-var summary><br><dtml-var date><br><EM>av <dtml-var author></EM><br>
<BR>
</dtml-in search_results>

Above gives me the text formated in this way.

['T\xe4nkte bara fylla i att jag tankat ner Night Watch till Filmer p\xe5 Nemo.', '', 'S:\\Filmer\\Night Watch', '', 'Verkar vara en ruskigt bra film. Kommer fr\xe5n ryssland s\xe5 se till att ni k\xf6r med en spelare som tar VobSub. Annars har xboxen inget problem att spela den. Kolla IMDB f\xf6r med info.', '', 'http://www.imdb.com/title/tt0403358/', '']
2005/11/08 21:04:21 GMT+1
by Fredrik

Any help is much appreciated!


(Please excuse my bad spelling and grammar, english is not my native language.)

Date format | global name 'MessageDialog' is not defined  >

 

Related Links
  • Articles on Newbies
  • Also by Fredrik Karlsson
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    showSummary?
    by Chris Withers on Tuesday November 15, 10:29AM, 2005
    try using <dtml-var showSummary> instead of <dtml-var summary>...
    [ Reply to this ]
    • Re: showSummary?
      by Fredrik Karlsson on Tuesday November 15, 01:12PM, 2005
      Thank you Chris,

      But I have tride that to. It just gives me an error.

      It gives me this error message:
      ----------------------------------------------
      Zope has encountered an error while publishing this resource.

      Error Type: KeyError
      Error Value: 'showSummary'
      ----------------------------------------------

      I feel so dumb, medeling with things I dont know anything about...

      Still, any idea?
      [ Reply to this ]
      • Try this..
        by Chris Withers on Wednesday November 16, 08:07AM, 2005
        <dtml-in search_results>
        <IMG SRC="&dtml-site_url;/<dtml-var icon >" BORDER="0">
        <A HREF=".<dtml-var thread_path>/<dtml-var id>/index_html"><dtml-var title></A>
        <br>
        <dtml-with getObject>
        <dtml-var showSummary>
        </dtml-with>
        <br><dtml-var date><br><EM>av <dtml-var author></EM><br>
        <BR>
        </dtml-in search_results>
        [ Reply to this ]
        • Re: Try this..
          by Fredrik Karlsson on Wednesday November 16, 08:17AM, 2005
          It worked!

          Many thanks!

          I will do some research on what
          <dtml-with getObject>
          does when I get back home from work!

          Thank you for your time!

          Sincerely,
          Fredrik Karlsson
          [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.