GetSimple Support Forum

Full Version: get_page_title('slug') ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was using
<?php getPageContent('slug'); ?>
for site content from a specific page when converting a Maintenance-template to GetSimple. But when I used
<?php get_page_title(); ?>
I got off course the site-title. But what I want is the title of that specific maintenance page. How do I do that?
<?php getPageField('slug','title'); ?>
(2014-01-16, 05:38:32)Carlos Wrote: [ -> ]
<?php getPageField('slug','title'); ?>


Are there more functions for php getPageField ? Then they can be added here:
(2014-01-16, 05:44:51)datiswous Wrote: [ -> ]Are there more functions for php getPageField ?
I'd rather like that these functions (getPageContent, getPageField, etc., available since GS 3.1) were not camelCase, but lowercase with underscores, to be consistent with the other template tags.

If it wasn't because get_page_content, etc. already have an optional parameter ($echo), I would suggest that they had it but for the slug of other page.

An alternative could be an equivalent, like get_other_page_content, get_a_page_content or something (that actually would be an alias for getPageContent)
(BTW ages ago, before caching functions were available, I started working on a plugin to add these, though I called them that_page_content, etc.)
Yes all the cache functions will get theme function aliases when I finish rewriting cache.

Please add your suggestions to the github case for refactor cache