get_page_content(FALSE) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7) +--- Thread: get_page_content(FALSE) (/showthread.php?tid=11951) |
get_page_content(FALSE) - Alexander_ - 2019-10-23 I need a function which returns whether the page has content or not. So i modified the function get_page_content() in this way PHP Code: function get_page_content($echo = true) { Thx Alex RE: get_page_content(FALSE) - Felix - 2019-10-23 Hi Alexander, Thank you for showing your php code in this new use of the function get_page_content() I think it would be better not to change anything in the GS core for maximum GS portability. We can always write our own customized functions and put them inside /theme/your_theme/functions.php Grts, F. RE: get_page_content(FALSE) - Alexander_ - 2019-10-28 (2019-10-23, 23:15:15)Felix Wrote: I think it would be better not to change anything in the GS core for maximum GS portability. So do I - therefore i asked to include it in the GS core on next update :-) Alex RE: get_page_content(FALSE) - lesh - 2019-10-28 you can get page contents to put into a variable for testing and process without echoing it,using the function returnPageContent() PHP Code: $stuff=returnPageContent('page_slug'); lesh |