TemplateHelper Action

Hi Walter,

recognized, that the only valid character for name-spacing a partial is the underscore (page_partial.php e.g.). Would a dash be a real problem to use - so something like page-partial.php?

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think you could use a dash if you like, but it’s traditional to snake-case file names in PHP (and most other programming languages). As I wrote in my other reply to you, TH always prefixes the partial filename (no matter what else you do in the name you enter manually) with an underscore, so if you entered my-page in the partial name, it would come out as _my-page.html or _my-page.php or whatever. I don’t have the code open at the moment, but I may have restricted what you are allowed to enter in the partial name field to only accept a-z and the _ character. That’s definitely something I might do.

Walter

On Mar 20, 2014, at 5:26 AM, Thomas Kimmich wrote:

Hi Walter,

recognized, that the only valid character for name-spacing a partial is the underscore (page_partial.php e.g.). Would a dash be a real problem to use - so something like page-partial.php?

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just a “You eat with your eyes (first)!” thing, so nothing extremely urgent. And even if you have concerns - leave it as it is.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options