meta tags for child page and routing

Post Reply
Jr. Bludit
Posts: 3
Joined: Fri Apr 05, 2019 12:00 am

Sat Aug 31, 2019 2:11 pm

Hi, I immediately apologize for my English, I have such a problem

As far as i know in bludit static pages cannot have children

i have parent page 'page' and she has several child pages 'child1', 'child2'

i check url and get the name of the current page 'child1' and output the data using js related to this page

on the 'child1' page, meta tags are not displayed, I can display them using the engine or I need to change them using js

and second question

How to use routing? now i do so

Code: Select all

$ link = explode ('/', $ url -> slug ());
if ($ link [0] == 'page') {
   include (THEME_DIR_PHP.'page.php ');
} else if else if else if else if...
Is this the right approach?
User avatar
Master Bludit
Posts: 69
Joined: Mon Feb 11, 2019 8:41 pm

Sat Aug 31, 2019 3:54 pm

Check the output of $WHERE_AM_I variable.
You should be able to load content depending on the page type.
You can also get familiar with $page methods.

As it goes to setting parent it just need a small modification in bludit's core to get this function for all types of pages. Look at github, there's a thread about this.
Post Reply