Hi Nick,
I agree about improving the way the templateDetails.xml <name> field is handled. In 1.5, we could use "Test Template" in templateDetails.xml, and the template name would be displayed as "Test Template" in the template manager, but it would be converted to lower case and the space parsed (I don't recall if it was changed to a dash or simple removed) for the name of the directory created for the template.
I'd personally like to see the name field run through the same logic as the article title field is when creating the alias as the alias that is created is a valid system path, which is a major implication of the template name.
As template styles can be named whatever you want, and since the name of template itself represents the directory of the template, I'd be opposed to introducing the <displayName> field and allowing language keys. I think this would likely cause quit a bit of confusion as the name of the template should really match the directory. I'd personally rather see how the <name> field is handled to resolve the issue rather than introducing another field in templateDetails.xml.
Thanks for bringing this up!
Best,
Matt
Sent from my phone that uses an open source operating system.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/xfSecO453FgJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
Pay Your s-go Services Invoices - Click Here!
![]() | Chad Windnagle s-go Consulting 607-330-2574 x103 607-229-6260 (Cell) Website Design - SEO - Video |
Chad,
How would you use this field? Would it introduce the possibility of naming the template, not style, something other than the template's directory name?
Best,
Matt
Sent from my phone that uses an open source operating system.
--
I assume that you would use <alias> as the name of the template directory and <name> as the name displayed in the the template manager? If so, and with wanting to maintain a relationship to the template directory, why not just run <name> through JApplication::stringURLSafe (http://docs.joomla.org/JApplication::stringURLSafe/1.6) for the directory name when installing and call it a day?
For example, a templates using <name>My Template's Super Cool Name!</name> would be installed at /templates/my-template-s-super-cool-name Would that make sense and satisfy your goal?