I have a view with several 'Global: Custom text' fields. These are actually just serving as place-holders, and I'd like to create a field template file for each, that essentially places some custom html/php when it encounters these fields in a view.
Almost everything is in place and working... except, I notice that Drupal automatically gives the id of 'nothing', 'nothing_1' etc to its global custom text fields. So, if I have more than one of these global text fields and would like to create a separate field template for each, I'm presented with a problem.
I'd have to name my template files views-views-field-nothing.tpl.php etc. This is undesirable, because I want to reuse these field templates throughout my site. I shouldn't have to worry about ordering these global fields just so in my views, so that the one I expect to be nothing is 1st and gets that id and the one that I expect to be nothing_1 or nothing_2 gets that id...
Has anyone run into this issue before? Any ideas whether I can set my own field-ids for global custom text fields in views, so they don't all have those generated id's? Is there a module that does this out there? My searching hasn't found anything yet.
Thanks for any guidance!
p.s. The reason I'm doing this is because I'm trying to put some html in my view (like <fieldset>) that is getting stripped from the views fields, so I need to do it in a template file.