As per this post, I want to build an extension that adds Textile as one of the Default Format options when creating new custom fields. Derek said publish_admin_edit_field_format would be the hook to use, but the thing is, I’m a PHP idiot and I need someone to give me a bit more direction. In other words, how would I use publish_admin_edit_field_format to somehow add Textile as one of the drop down options? I’d appreciate any help on this. Speak slowly. 😉
Greetings!
I would recommend starting out with the Developer Docs for Extension Development.
This will give you a solid foundation of what goes into an extension. Once you have a good understanding of what an extension is all about, check out the publish_admin_edit_field_format hook notes.
You could then reference other extensions on how to interface with the passed values from the hook, and get a better understanding of what to do with them.
If you have any questions, feel free to ask!
Try looking at another extension that does similar things. LG TinyMCE would be nearly identical to what you need as it converts text boxes to a different custom field type.
http://leevigraham.com/cms-customisation/expressionengine/lg-tinymce/
Well, I’m sticking to HTML/CSS – PHP is no friend of mine. It would also be great if the developer docs had examples for the benefit of noobs like me. [edit: I mean examples for the hooks.]
Anyone else care to take this on? Surely other people get tired of the create field → save field → edit field → edit list → add textile → update field workflow? I don’t expect anything for free – time is money (which is why I want the extension). PM me or reply here if interested.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.