Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED [Include Page] Return Content but not Title page
#1
I'm using the plugin include page; return the content but not the title of the page, how do you do it?

Thanks.
Reply
#2
(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
Reply




Users browsing this thread: 1 Guest(s)