I was just curious on getting some feedback on how some of you organize your document types and templates (including partials). I am currently running 7.4.3 and I was thinking of putting all document types associated with the home page in a Home Folder or another approach would be to put them in folders by type? The same applies to templates.
I quess this is different for every developer how they like it.
For my Document Types I like to have all my Widgets in one folder called Widgets, then i like to have a folder called Compositions, where i keep all my DocumentTypes that are only used as Compositions for other DocumentTypes. And lastly i keep one folder for all my base DocumentTypes, like Home, Page and so on, in a folder called Base Document Types.
I dont think you can have folders for Templates, maybe you mean Partial Views? The structure of my Templates are based on the inheritance, so there is not much organizing there.
For Partial Views I usally just keep one folder for the Widgets and one folder for Sections (which I keep globlal partials like the Header-section, Footer-section and so on.) and then all the other Partials at Root level.
But it would be interesting to see how others keep their back-office structured.
Exactly, you are correct Saied. I'm glad you raised the question since it's always interesting to see how others do and it's easy to get "stuck in your own ways".
Hopefully more people will join this thread and share their back office setup!
Like Dennis has mentioned above, I have Doctypes separated by type rather than purpose. So I would have a "page" folder then all pages below that rather than a homepage folder with homepage Doctypes. Similarly for a "Widget" folder, etc.
You can have a base Doctype that the others sit under. This allows for property inheritance so if there are properties you want on all Doctypes below "page" then add them to it then the child Doctypes have them too.
Not sure if there is a correct way to do it but this is how I tend to structure things.
Organizing document types and templates?
Hi,
I was just curious on getting some feedback on how some of you organize your document types and templates (including partials). I am currently running 7.4.3 and I was thinking of putting all document types associated with the home page in a Home Folder or another approach would be to put them in folders by type? The same applies to templates.
Suggestions?
Thanks, Saied
Hi Saied.
I quess this is different for every developer how they like it.
For my Document Types I like to have all my Widgets in one folder called Widgets, then i like to have a folder called Compositions, where i keep all my DocumentTypes that are only used as Compositions for other DocumentTypes. And lastly i keep one folder for all my base DocumentTypes, like Home, Page and so on, in a folder called Base Document Types.
I dont think you can have folders for Templates, maybe you mean Partial Views? The structure of my Templates are based on the inheritance, so there is not much organizing there.
For Partial Views I usally just keep one folder for the Widgets and one folder for Sections (which I keep globlal partials like the Header-section, Footer-section and so on.) and then all the other Partials at Root level.
But it would be interesting to see how others keep their back-office structured.
Dennis thanks for the input. This question is subjective, so hard to accept one answer. You are right, no folders for templates.
Thanks again, Saied
Exactly, you are correct Saied. I'm glad you raised the question since it's always interesting to see how others do and it's easy to get "stuck in your own ways".
Hopefully more people will join this thread and share their back office setup!
Take care Saied!
Hi,
Like Dennis has mentioned above, I have Doctypes separated by type rather than purpose. So I would have a "page" folder then all pages below that rather than a homepage folder with homepage Doctypes. Similarly for a "Widget" folder, etc.
You can have a base Doctype that the others sit under. This allows for property inheritance so if there are properties you want on all Doctypes below "page" then add them to it then the child Doctypes have them too.
Not sure if there is a correct way to do it but this is how I tend to structure things.
Hope this helps :)
Thanks, Carole
Thanks for the input Carole
is working on a reply...