I'm wondering how to add captions to an asset that will be rendered in a module, Articles, as in the tutorial.
Currently the text editor seems to allow for the user to insert any asset that is under the asset tab in the CMS, but it just inserts the image and that's it. I want a user to easily be able to add a caption to an image and have that image be wrapped in a div along with the caption underneath it.
Is this functionality built in to Fuel? I was thinking about building something where I have an Image module that will have an attribute "caption", and then the user would put in some sort of placeholder like "" that my controller would replace with a function call to the image model returning the image and caption to be rendered. Seems like a hack, though, and probably less than user-friendly.
Anyone experienced this need before and have any suggestions? Thanks for the assistance.
Michael
Comments
I think you are on the right track. You could create a module that has an image and caption field (and any other field for that matter), that would allow you to make those associations.