summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-09-15 14:27:39 +0000
committerwjames5 <will@tekimaki.com>2009-09-15 14:27:39 +0000
commit4193b069748f4da94cbb16721fb9a280a29d7c36 (patch)
tree2ffc8feb292367ae59c4a1be3e481ecabc83be3a
parent1193c888d08ac3b5fe1880b63cf18cb758fd24f7 (diff)
downloadliberty-4193b069748f4da94cbb16721fb9a280a29d7c36.tar.gz
liberty-4193b069748f4da94cbb16721fb9a280a29d7c36.tar.bz2
liberty-4193b069748f4da94cbb16721fb9a280a29d7c36.zip
if we have a single format in the liberty hash use it - this lets us get the meta data so we can let user know the format type in effect, otherwise use default.
-rw-r--r--templates/edit_format.tpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/edit_format.tpl b/templates/edit_format.tpl
index f10cb4e..8e9d705 100644
--- a/templates/edit_format.tpl
+++ b/templates/edit_format.tpl
@@ -87,7 +87,13 @@
{/if}
</div>
{else}
- <input type="hidden" name="{$format_guid_variable|default:"format_guid"}" value="{$gBitSystem->getConfig('default_format','tikiwiki')}" />
+ {* if there was one format in the liberty plugins hash then use it and display a label so user knows what format is being used, otherwise use default and hide it*}
+ {if $numformat eq 1}
+ <div class="row">
+ {formlabel label="Content Format: `$plugin.edit_label`"}
+ </div>
+ {/if}
+ <input type="hidden" name="{$format_guid_variable|default:"format_guid"}" value="{if $numformat eq 1}{$plugin.edit_field}{else}{$gBitSystem->getConfig('default_format','tikiwiki')}{/if}" />
{/if}
{/strip}