2013-10-07, 02:16:27
(2013-10-06, 20:00:27)belotte Wrote: The question I have now is how are you handling the images? I put in a field for image upload in my special page. I went looking at the support pages for the plug in and tried various versions of what I could find, but I cant get the image to sow in the results.
You must set custom code in the configuration for your Special Page, in the 'Search' section (Plugins->Configure I18N Special Pages->select special page type->Search).
In my case I have this code in HTML/PHP code for the display of a search result:
Code:
<div class="catsearch">
<img class="alignright" src="<?php get_special_field('cat-picture'); ?>" width="100" />
<h2>
<a href="<?php get_special_field('simplelink','',false); ?>">
<?php get_special_field('title','',false); ?>
</a>
</h2>
<?php get_special_field_excerpt('content', '1p'); ?>
<a href="<?php get_special_field('simplelink','',false); ?>">full details ยป</a>
<div class="cleardiv"> </div>
</div>
You can see how the image is shown ('cat-picture' is the name of the image field in the Special Page, of course).
I apply custom search result styles using div.catsearch ... in the css selectors.
--
Nick.
Nick.