2011-11-02, 17:34:45
mvlcek Wrote:If News Manager offers a function to get the content of the news item as string, you can use the attached I18N Gallery plugin together with the following code in the template in the HTML head:
As I don't use the News Manager, I don't know which functions to call.Code:<?php
if (return_page_slug() == ...) { # check, if we are on the news page and a single news item is displayed
$newscontent = ...; # get news content as string
get_i18n_gallery_header_from_content($newscontent);
}
?>
(I'm creating normal pages for news items and tagging them with _news - for the display I use the I18N Search plugin)
Got me slightly baffled, I'm no good in php... can someone who is familiar with News Manager functions help with this, please?