Hi, thank you very very much! Now it works fine!
I'll report back in this thread when I find out how to set up correctly grandchildren templates and grand-grand children templates.
-
☆ A M B ☆
- 53 Posts
Thanks for this useful solution
this functionality can be archieved without any plugins - it is already in place in Revolution itself
go to form customisation, create set of rules for your parent template, and inside, set default template id to child template
from now, when you use right click on document and select 'create new document here' it will have desired template set
cascade of templates is also possible this way - you simply need more rules
note:
there is a bug (probably, maybe I am missing something)
just setting template from dropdown does not work always as desired, I had whole array of strange events happeninng
to omit that, you need 2 'create' rules for each parent template:
'resource/create' action one with template chosen from dropdown
'resource/create' action without template (emty template) but constrainst set as follows:
modResource.template = 11
where 11 is id of your template
I have designed product catalogue with that and custom forms for entering products in backend. Works fantastic!
[ed. note: rygar last edited this post 12 years, 8 months ago.]
@rygar— thank you so much, it took a minute or two for that to make sense, but what a simple solution!
Thanks for your solution rygar, I didn't get this to work with form customization and now I know why. This will save me a lot of hassle with in working with the plugin!
@rygar: I tried your solution but it is not working for me in 2.2.4.
Not when just applying a fc w/ constraint modResource.template=parenttemplate, nor w/ parent template choosen from drop down, nor w/ both.
Unfortunately the plugin from #p15 does not work as well (testedw fc deactivated).
It looks as if the fc sets do not work or produce just weird strange behavior. Right now I'm trying to find out if it is a caching issue in the manager because what actually happens is that I get the same template on every parent where I create a new resource even w/ different templates on different parents. As if the value for template is chached when fc sets are activated. When all fc sets are deactivated, I get at least the parent template as the choosen template on resource create.
[ed. note: chris@crnm last edited this post 12 years, 6 months ago.]