Quote:
Originally Posted by Digital Jedi
Have you tried just wrapping the content of the template in an if conditional? Maybe do the same for links to the page?
|
I've really tried with all of the replies made on this topic here. I've read every single page here and tried everything, but replies only seem to provide snippets. Do the conditionals go on the php file or the template? I tried everything on the php files. It seems extraordinarily simple for some here, but nothing works for me when I do it. I was entering the conditionals below the global statement. Can you put it in this code, so I can see exactly where it has to go and how it has to be edited? Thanks for your help.
This is one of the pages I got all the info to do the conditional. But everybody seems to have their own ideas and nothing worked for me.
https://vborg.vbsupport.ru/showthrea...=62164&page=37
Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'test'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'TEST',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Test Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('TEST') . '");');
?>