Wiki source code of User Macro: me-filecontent
Last modified by Normann P. Nielsen on 2013/08/23 19:39
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | This requires the [[User Macro: include-lightbox - OrangeBox>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.user-macro-include-lightbox-orangebox]] macro on the page also. or in Custom HTML |
| 2 | |||
| 3 | |= Name| me-filecontent | ||
| 4 | |= Macro Body Processing| No macro body | ||
| 5 | |= Output format| HTML | ||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | Macro Code | ||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | {{code}} | ||
| 15 | ## @param path:title=Status|type=string|required=true|desc=File Path | ||
| 16 | ## @param file:title=Status|type=string|required=true|desc=File Name | ||
| 17 | ## @param openmethod:title=Open Method|type=string|required=false|desc=How to Lauch content | ||
| 18 | |||
| 19 | #if (${paramopenmethod}=="lightbox") | ||
| 20 | <a href="/filecontent/${parampath}/${paramfile}" class="floatbox" data-fb-options="width:80% height:61.8%w `"><b>${paramfile}</b></a> | ||
| 21 | #elseif (${paramopenmethod}=="new") | ||
| 22 | <a href="/filecontent/${parampath}/${paramfile}" target="_blank"><b>${paramfile}</b> (Åbner i nyt vindue)</a> | ||
| 23 | #else | ||
| 24 | <a href="/filecontent/${parampath}/${paramfile}"><b>${paramfile}</b></a> | ||
| 25 | #end | ||
| 26 | <br> | ||
| 27 | {{/code}} |