Quote from: ottogal at Jan 17, 2015, 02:04 AMNot sure to have fully understood your intention, but you could try a custom snippet, say "foo", with a property "section":
Code of snippet "foo":<!--?php
$output="<div-->Some content";
if ( ($section = "1") or (section == "1#home") ) {
$output = "";
};
return $output; Then call it this way:[[foo? §ion=`...whatever.... `]]
Thanks. I'm essentially unfamiliar with PHP beyond knowing that it exists so...
This would need to be an if else statement, and also needs to detect the section being displayed by the browser from the site template, and not the getResources chunk.
I have a singe-page site and want to hide its nav bar logo when the user is on the 'home' page, while showing it everywhere else. Using section for this feasibly works since each 'page' is wrapped within a section element that has a discreet #id.
This would be the statement, or something like it, but since this snippet would be placed in the site template and not the getResources chunk I assume it isn't enough to handle the detection.
$output="<div-->Some content";
if ($section = "home") {
$output = "";
} else {
echo $output;
};