I'm doing a simple CQ include which includes my component.
<cq:include path="banner" resourceType="generic/components/content/banner" />
But instead of using a content dialog I am using a design dialog. I understand the design dialog properties are all stored under /etc/designs/default. So if I try to access the current node object I.E. use:
<%= currentNode.getName() %>
I get a null pointer exception. Why would this be? Isn't there still a node for the design dialogs. Ideally I'm trying to use:
<%= currentNode.getIdentifier() %>
But found out I can't even access the currentNode it just throws a null pointer. Any tips on getting around this, is there another route I need to go to get the currentNode via design dialogs? Any help is greatly appreciated!