How I (finally) got captions to display.
Posted by Dave R. on January 16, 2011 at 1:35pm
This is how I added captions, or cutlines, to the Articles content type in Openpublish. I hope that it is helpful to anyone who, like me, spent untold hours trying to figure it out.
First, add a field to the Article content type (../admin/content/node-type/article/fields). I labelled mine Caption and gave it the name field_main_image_caption. I chose Text for the field type and gave it a textfield size of 200.
Next, add something like: $vars['main_image_caption'] = $vars['field_main_image_caption'][0]['view'];
Subscribe with RSS Syndicate content