SMF Development > Applied or Declined Requests

Modifications.template.php

(1/3) > >>

Doctor Deejay:
So, Yoshi and I were thinking. If there is a Modifications.language.php, why isn't there a template file for it? :) For medium mods, etc. I know it might sound dumb, that's why I would like to have your opinion on this. :)

Thanks!

Arantor:
What, exactly, would be the point? For small mods that use the Modification Settings page, it uses template_show_settings (which a lot of admin pages use) which is in Admin.template.php

If it's a true parallel to Modifications.language.php, you end up loading a file every single page load, that may or may not have anything in it - and in a time when there's a move *away* from editing files, it's dead weight.

Yoshi:
True, but why not use loadTemplate() where you want users to have custom templates?

You may think "Add your own file then" but it's pointless to add a single template function into a whole file.

Anthony`:
I brought up some points about this before, and I have to say Bloc made some good points opposing it. You can find them here starting from my message to page 2,
http://www.simplemachines.org/community/index.php?topic=462649.msg3234582#msg3234582

emanuele:
I think I have few mods with template files containing just one or two functions (one of which is a dummy for template_layers).

If you want to add a single function and don't feel add a new file you can always edit index.template.php or something similar, it doesn't change so much I think.
Honestly I don't particularly like even modifications.language.php.

Extending even further the parallel we should put also a Modifications.php in Sources then. No?

Navigation

[0] Message Index

[#] Next page

Go to full version