Workaround to chose a different template for a specific page?

Post Reply
Sergelie
Sr. Bludit
Posts: 32
Joined: Sun Feb 14, 2021 3:19 pm
Has thanked: 6 times
Been thanked: 4 times
Contact:

I read somewhere on this forum that it was not implemented yet (Options > Advanced > TEMPLATE) Write a template name to filter the page in the theme and change the style of the page.

So I am looking for a workaround if possible? Or maybe is it implemented in the latest version? So could I get the peace of code so I can adapt my version?

I need to change the php code for specific pages so I can only give access to registered users - I already wrote the code, organized the registering and login system (Using Sessions), I just need now to be able to chose the proper page.php to control or not with login.

BTW, I had trouble having SESSION work, one line of code in the root directory index.php solved it - Line at the very top:

Code: Select all

<?php session_start(); ?>
<?php

/*
 * Bludit
 * https://www.bludit.com
 * Author Diego Najar
 * Bludit is opensource software licensed under the MIT license.
*/

Thanks!
Post Reply