Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A GOOD and versatile news manager needed
#31
mvlcek Wrote:
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
    I have created this component but where in the template do I call it?
    And the News Manager doesn't even allow access to the custom_field while creating/editing a blog post, so how do I add it?
  • 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.
Reply


Messages In This Thread
A GOOD and versatile news manager needed - by andyash - 2011-11-19, 21:47:46



Users browsing this thread: 1 Guest(s)