Hi. First post so please bear with me.
We would like to set up a search result page in a table format.
Publications (all pdfs) would have the accompanying thumbnail in the left column and the title, blurb and size of file in the right.
I like the format used by Homesite.com.au on their search results page which is powered by MySource, so it must be able to be done.
Any assistance would be greatfully received.
The trick to getting a table to work properly is to switch all your bodycopies into Raw presentation and Raw HTML mode. Then you have total control over the HTML that gets output. The WYSIWYG Editor + HTML Tidy will always "fix" invalid HTML, which is required in each individual bodycopy. The resulting HTML is valid, though.
For example, in the Page Contents bodycopy for the Search Page, you'd have something like:
[html]<table class="search-results" summary="Search results">
<thead>
<tr><th>Type</th><th>Details</th></tr>
</thead>
<tbody>
%asset_listing%
</tbody>
</table>[/html]
Then, for a PDF File asset:
[html]<tr><td><img src="…pdf-icon…" alt="PDF Icon" /></td><td><a href="%asset_url%">%asset_name%</a> (PDF)</td></tr>[/html]
With each Custom Format bodycopy being slightly different. You can also add filesize keywords, even a published date into the individual result format.
Make sense?
Thanks for that. We will look into it. That was extremely useful. Much appreciated.