Picture of Ulrich Kerzel
Accordion with image attribution?
by Ulrich Kerzel - Wednesday, 2 September 2015, 12:43 PM
 

Dear all,

is there a way to display image attributions with the accodion component ?

I've tried:

{
"title": "Neural Networks",
"body": "This is display text 3.",
"_graphic": {
"src": "course/en/images/FeedForward_NN.jpg",
"alt": "A 3 layer Feed-Forward Neural Network.",
"attribution": "fdecomite via Flick, CC BY 2.0"
}

using v2.0 of the framework. The code compiles without errors, albeit without any attribution visible either...

 

Many thanks

Ulrich

Picture of Matt Leathes
Re: Accordion with image attribution?
by Matt Leathes - Wednesday, 2 September 2015, 1:33 PM
 

No, the attribution feature was only added to the contrib-graphic component. It's pretty straightforward though, if you look in the graphic.hbs and graphic.less files in contrib-graphic you should find everything you need if you wanted to add it to accordion.