MyBB Community Forums

Full Version: Fewer template bits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For 2.0, can we not have a-million-and-one template bits. It makes editing the templates quite annoying.
Most people would rather have more as it makes the theme more customisable. Surely what would actually improve it would be better documentation?
Really? Having 6 templates just for the navigation breadcrumb makes things easier?

I understand that with 1.8, there's no template syntax for repeating elements, making having so many template bits necessary; but if you're going to be utilizing Twig, this shouldn't be an issue.

If you're not going to combine template bits, perhaps have an easier way of navigating between templates, like while editing a template, clicking on a template reference takes you to that template.
We are using iterators and conditionals in the new templates, but we still don't want to have massive templates containing lots of logic. Separate components will be split into separate templates. So the breadcrumb will be a template, the navigation will be a template, each post will be a template, etc. It won't be as crazy as it is now, but we're also not going to drop to having something like 20 templates.
The many templates is what makes MyBB so customisable, it might be crazy right now but it is flexible.
(2015-06-13, 09:18 AM)Euan T Wrote: [ -> ]We are using iterators and conditionals in the new templates, but we still don't want to have massive templates containing lots of logic. Separate components will be split into separate templates. So the breadcrumb will be a template, the navigation will be a template, each post will be a template, etc. It won't be as crazy as it is now, but we're also not going to drop to having something like 20 templates.

This makes logical sense. As long as there's one template for each element and not something like 6 templates for just the navigation breadcrumb alone, I'll be happy.