Create a list of documents attached to the article currently defined in the template environment. If the article was not set the list is empty. The code between {{ list_article_attachments }} and {{ /list_article_attachments }} is repeated for every attachment in the list.
{{ list_article_attachments [length="<integer_value>"] [columns="<integer_value>"] [language="current"] }} <list_of_instructions> {{ /list_article_attachments }}
Inside list_article_attachments the following statements are forbidden:
Inside the list, the current article attachment is set to the current element of the list. The environment context is restored after the list processing.
{{ list_article_attachments }} {{ if $gimme->current_list->at_beginning }} <h4>Downloads:</h4> {{ /if }} <a href="/attachment/{{ $gimme->attachment->identifier }}"> {{ $gimme->attachment->file_name }}</a> ({{ $gimme->attachment->size_kb }}kb)<br/> {{ /list_article_attachments }}
Here is an example of how to use the attachment list to play a number of MP3 files:
{{ list_article_attachments }} {{ if $gimme->attachment->extension == "mp3" }} <object type="application/x-shockwave-flash" data="/templates/radioactive/apps/player_mp3_maxi.swf" width="200" height="20"> <param name="movie" value="/templates/radioactive/apps/player_mp3_maxi.swf" /> <param name="bgcolor" value="#444444"/> <param name="FlashVars" value="mp3={{ uri options="articleattachment" }}" /> <!-- player home: http://flash-mp3-player.net/ --> </object> {{ /if }} {{ /list_article_attachments }}
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.