.somewhere i have seen this kind of implementaion without using design dialog and all how they are making global things
============================================================================================
I have queries how it is working:
1) In apps cretaed a component apps/.../siteconfigcomp and created dialog (like footer image footer title and header image and header title everything globally whichever i needed )and one .html file (which i m not sure wat they are doing in that )
made a siteconfig.html page inside etc/design/myproject/siteconfig.html and used slingresourcetype as apps/.../siteconfigcomp
now if we open etc/design/myproject/siteconfig.html we get all dailog field one by one like a page and save button like dialog only and author can fill the values and save it . and it will be saved etc/design/myproject/siteconfig/jcr:content.
Now if any page in /content wants top use that footer image header image header text or title (any global values ) we can use
because page inside /content/rootnode will have cq:design path like etc/design/myproject/siteconfig
note :slingResourceSupertype : wcm/core/components/designer is this ...for component..........-------->>> apps/.../siteconfigcomp
now question is :
How that etc/design/myproject/siteconfig.html is looking like a page rather a dialog which comes when we congfigure any component in desgin mode . here dialog is stable and coming like form or page . ?
And please explain if this is any standard approach for header and footer values .