GetSimple Support Forum

Full Version: [Include Page] Return Content but not Title page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using the plugin include page; return the content but not the title of the page, how do you do it?

Thanks.
(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