Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choosing a template BEFORE a resource is created #54

Closed
mindeffects opened this issue Feb 5, 2015 · 7 comments
Closed

Choosing a template BEFORE a resource is created #54

mindeffects opened this issue Feb 5, 2015 · 7 comments
Assignees

Comments

@mindeffects
Copy link
Contributor

Normally you create a resource and the first thing you do is set a correct template, because it is often the correct one. This change always takes some time.
Before a resource is created, the user should be ask which template should be used – also when duplicating a resource.
I help myself be using defaultTemplateByParentTv.plugin but this is not exactly what I want. MODX shall ask what kind of page should be created. A default is nice, but it cannot be changed to another template before the resource is created.

@DESIGNfromWITHIN
Copy link

+1 this would make creating pages for non-technical clients more intuitive.

@bequadrat
Copy link

Done and working!
See: https://github.com/bequadrat/modx-template-select

This certainly needs some polish (especially internationalisation is a bit "hacky"). Maybe someone more experienced can show me how to make a package out of this? :-)

@bequadrat bequadrat self-assigned this Feb 7, 2015
@bartholomej
Copy link
Member

It works! GJ 👍

@bequadrat
Copy link

I cleaned a few things up, made a package with PackMan and submitted it to the MODX package provider.

@pepimpepa
Copy link

Great! It can help a lot! Is there some option i.e. if the parent is template ID (5) then user can choose from template ID 3,6,7?

@JensWolff
Copy link

👍

@bequadrat
Copy link

@pepimpepa There are currently no options. But it uses the same MODExt control that is used by the resource editor. So there is a good chance that TemplateSelect will respect the same rules. Go, give it a try! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants