2011-11-17, 18:43:55
Oleg06 Wrote:I18N Search very good plugin for creating news with categories, sorry that he can not display images in a short news
It is already possible with the advanced features:
- Install I18N Custom Fields
- add a custom image field, e.g. named picture
- when editing the news item page, add an image link in this field
- create a component like decribed here, modify it, if necessary, and add an img tag to it (whereever you want the image):
Code:
<img src="<?php echo htmlspecialchars($item->picture); ?>" />
- call the I18N Search plugin like described here with a component parameter pointing to the created component.
There is also a simple alternative:
- include the image in the first paragraph of the page
- call the search results with parameter numWords=1p (1 paragraph), which should output the HTML of the first paragraph including the picture.