how to check content in rendercondition
Hi people,
I like to create a custom rendercondition for a component dialog, that looks into the content of the actuall instance of the dialog (so what is put into /content inside the DAM) and check for a certain constellation.
Problem so far: the rendercondition is not aware of the resource I am working on. It looks like the condition only sees itself and has no information about the component I actually editing.
Some technical information:
The rendercondition is somewhere here: /apps/myApp/renderconditions/myRendercondition/myRendercondition.jsp
It is referenced in a component here: /apps/myApp/myComponents/myFancyComponent/cq:dialog/myItem/granite:rendercondition/myRendercondition
And this is basically working. So if I return true or false, myItem is shown or not.
But the rendercondition need to check data that is here: /content/mySite/myFancyComponent_1/data
I tried a lot of things but I don't found a way, the rendercondition finds out where the content is that is actually edited.
Anyone any idea? Is this even possible?
Best, Maik

