vinta9e Wrote:However I'm trying to make it able to work with mvlcek's DynPages - e.g. I would like to be able to use (% placeholders %) within posts in order to embed galleries into news. I guess the plugin could use the same filter as what GS uses to display regular pages but I just don't really know how to make it work.
Replacing news_manager/inc/site.php, function nm_show_post, lines 104/105
Code:
$content = strip_decode($data->content);
if ($excerpt) $content = nm_create_excerpt($content);
Code:
$content = strip_decode($data->content);
if ($excerpt) $content = nm_create_excerpt($content); else $content = exec_filter('content',$content);
Correction:
This will only work with dynamic content that does not need to add anything to the header.
For I18N Gallery you would have to include the js files (e.g. jquery, fancybox) and css files or styles in your template and patch i18n_gallery.php by removing
Code:
if (!$i18n_gallery_on_page) return $content;
(I did not test this)