I've created a custom markup.php file for my template, based on the default ("_markup.php"). What I would like to do is create a new option in the drop-down on the backend that I can reference in my markup.php to change the markup of the field. At the moment there is just two options None and Default (see screen shoot) on "3".
Judging by what code of _markup.php says you can only overrride default option, but you can't create new one
// The markup around each field (label+value/form) can be Overridden. // Remove the underscore [_] from the Filename. (filename = markup.php) // Edit the function name: // - fields/markup.php => cckMarkup_[template] // - fields/[contenttype]/markup.php => cckMarkup_[template]_[contenttype] // - fields/[searchtype]/markup.php => cckMarkup_[template]_[searchtype] // Write your Custom Markup code. (see default markup below)
OK, I understand. So basically the option for mark up are "None" or Default, and you can only override the default.
It's a shame that for example you couldn't create a new markup file in the same directory called whatever you wanted your custom markup to be and you would then get that option in the drop down. Pretty much how variations work.