Search found 4 matches

by Andrei
Sun Sep 29, 2019 5:32 am
Forum: Themes
Topic: Using the template keyword
Replies: 4
Views: 3634

Re: Using the template keyword

...even simpler after all:
Just checked if dealing with an actual "page":

Code: Select all

if ($page->type() == "static")
and include the page.php partial, otherwise just load something like article.php for a more specific layout. :)
by Andrei
Thu Sep 26, 2019 7:53 pm
Forum: General
Topic: meta tags for child page and routing
Replies: 4
Views: 2463

Re: meta tags for child page and routing

Hi :)
i've done it that way:

viewtopic.php?f=14&t=1522&p=7328#p7328

and it works indeed.
by Andrei
Sat Sep 21, 2019 10:05 am
Forum: Themes
Topic: Using the template keyword
Replies: 4
Views: 3634

Re: Using the template keyword

Hi, I made it to work my way using a Custom Field called "template", and checking the value inside index.php with two basic "if" statements. <?php if ($page->custom('template')) { // If a custom template is specified if ($WHERE_AM_I=='page') { include(THEME_DIR_PHP.$page->custom(...
by Andrei
Sat Sep 21, 2019 7:50 am
Forum: General
Topic: meta tags for child page and routing
Replies: 4
Views: 2463

Re: meta tags for child page and routing

Hi, i'm precisely looking for the "$page methods" list but can't find them. Could it be possible to create a custom field "template", or "contentType" and load the specific template.php if needed or a generic one if the custom field is empty? That would be just a tempor...