rors / campus-medius

Campus Medius, UI and Backend API.
campusmedius.net
0 stars 1 forks source link

make media object <span> example in the "Aspern Airfield" Event #21

Closed rors closed 10 years ago

rors commented 10 years ago

something like:

<span class="media-object media-object-video" data-media="42">bunch of text here</span>
rors commented 10 years ago

maybe consider making a TinyMCE plugin to make this easier, or some other javascript thing to do it http://www.tinymce.com/wiki.php/TinyMCE3x:Creating_a_plugin

radius commented 10 years ago

@simgan The 3 possible media types are: Video: media-object-video Image: media-object-image Document: media-object-document

Here is an example usage for each:

<span class="media-object media-object-video" data-media="42">bunch of text here</span>
<span class="media-object media-object-image" data-media="42">bunch of text here</span>
<span class="media-object media-object-document" data-media="42">bunch of text here</span>

The data-media attribute should reference the media object's index (which will be the same as the order field).

simgan commented 10 years ago

@simgan Use number of order field in event entry in data-media="number"

rors commented 10 years ago

closing this. followup with issue #61