The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Get page title - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Get page title (/showthread.php?tid=3156) |
Get page title - ijorn - 2012-05-04 Hi Developing my first GetSimple site and enjoying it =) On my frontpage I have three columns in which i get content via <?php getPageContent('pizzeria'); ?>, and from two other pages made in the admin area, and it's working fine, but when I'm trying tor use <?php get_page_slug('pizzeria'); ?> or <?php get_page_title('pizzeria'); ?> it only gets the title of the front page. I want to get the title that I made in admin panel for the pizzeria-page and the two others. How do I do that? Thanks in advance Get page title - Carlos - 2012-05-04 get_page_slug and get_page_title are for the current page only. Use: Code: <?php getPageField('pizzeria','title'); ?> Get page title - ijorn - 2012-05-04 Yes, that worked! Thanks, Carlos |