I need help creating two conditional tags or output modifier to use in my templates.
(1). Basically I have a TV in one template (will call it "thisTV") and (thisTV) consists of 2 checkboxes
(box A ==[[this]]||box B== [[that]])
.
The checkboxes (box A & box B) are options for 2 pre-templated chunks.
Option B (box B) requires extra js & css inside the
element, so i need a function like this:
-Parse {thisChunk} here if (box B) in on my template variable is checked. (I will use this inside the <code><head></head></code> element of my template kinda like this.
[[if checkbox (box B):in (thisTV) =is checked: then parse {thischunk} here]]
(2). The Other conditional TV is for another template the function is like this:
-Parse {thisChunk} here on every page that is child of this ID; and Parse {thisOTHERChunk} here on every page that is child of this other ID
[[*parent:is=`4`:then=`[[$this-chunk]]; if-[[*parent:(is-not-4-but-8)]]:then=`[[$another-chunk]]` ]]
I spent a considerable amount of time on the web looking for this before comming here, so I do apologize in advance if my explanation does not make sence or if this is not possible, I also looked through the documentation but did see any examples that were good enough or relevant enough to enable my understanding.. Your insight is much appreciated. Thanks