GetSimple Support Forum
SOLVED [Include Page] Return Content but not Title page - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: SOLVED [Include Page] Return Content but not Title page (/showthread.php?tid=7303)



[Include Page] Return Content but not Title page - Epitto - 2015-05-23

I'm using the plugin include page; return the content but not the title of the page, how do you do it?

Thanks.


RE: [SOLVED] [Include Page] Return Content but not Title page - Epitto - 2015-05-23

(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