So maybe there is a better way to do this? but currently I created a new “Field” in content blocks called “Billboard”
my billboard essentially consists of a Large Div with a title subtitle some social media icons and a background image.
I used a chunk to do this and all of my code is in the chunk. I used some “settings” to go with the chunk like
[[+billboard_title]]
[[+billboard_subtitle]]
then i made 5 or 6 social media icons and linked them up with the Site Config addon you created. (youtube, fb, twitter, etc).
and i have some input filters that say ifnotempty
and i display the social for each one.
i also made a social media setting in the Contentblocks Field settings and made it a dropdown for yes or no.
where I get stuck is trying to do a background image. I want them to be able to invoke the MoDX Image selector and pick an image at which I am going to use phpthumb and just size it up correctly.
something like
<div class="mybg"></div>
and then a inline style
<style> .mybg { background: url('[[+billboard_image:phpthumb..etc..]]');} </style>
but i don’t see any way to get a image input as a option for settings in a chunk.
Do you have any ideas what I should do to accomplish this type of component?
Thanks!