Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A GOOD and versatile news manager needed
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):
<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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Messages In This Thread
A GOOD and versatile news manager needed - by mvlcek - 2011-11-17, 18:43:55

Users browsing this thread: 1 Guest(s)