Hello,
I have a TV using the @SELECT binding and wondered how I can use the current ID as the parent ID?
I have tried the following ways and it does not work, I wonder if someone can shed light on this. I did wrap the $_REQUEST[’id’] with ’. .’ as well.
@SELECT `pagetitle`,`id` FROM `[[+PREFIX]]site_content` WHERE `parent` = $_REQUEST['id'] AND `published` = 1
@SELECT `pagetitle`,`id` FROM `[[+PREFIX]]site_content` WHERE `parent` = [[+id]] AND `published` = 1
@SELECT `pagetitle`,`id` FROM `[[+PREFIX]]site_content` WHERE `parent` = [[*id]] AND `published` = 1
but using this works...
@SELECT `pagetitle`,`id` FROM `[[+PREFIX]]site_content` WHERE `parent` = 90 AND `published` = 1
If anyone could help that would be great.
Thanks!