2015-05-23, 01:50:59
2015-05-23, 16:29:22
(2015-05-23, 01:50:59)Epitto Wrote: [ -> ]I'm using the plugin include page; return the content but not the title of the page, how do you do it?
Thanks.
I modify the function include_page_replace_match in
Code:
function include_page_replace_match($match) {
$slug = $match[1];
$file=GSDATAPAGESPATH.$slug.".xml";
if (!file_exists($file)){
redirect('pages.php?error='.urlencode(i18n_r('PAGE_NOTEXIST')));
}
$page = getXML($file);
$title= '<h3>'.strip_decode($page->title).'</h3>';
return $title.returnPageContent($slug);
}
Thanks