summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2006-02-10 21:11:41 +0000
committerLester Caine <lester@lsces.co.uk>2006-02-10 21:11:41 +0000
commit125231ffb6d208648ab8cdff0ad0b6ddecee543e (patch)
tree539273c34023fbb724f7b153748895c4e2be02a3
parentb0df73c83d6ca643c1d6cc6154675a71c0889031 (diff)
downloadpigeonholes-125231ffb6d208648ab8cdff0ad0b6ddecee543e.tar.gz
pigeonholes-125231ffb6d208648ab8cdff0ad0b6ddecee543e.tar.bz2
pigeonholes-125231ffb6d208648ab8cdff0ad0b6ddecee543e.zip
Use the content_type Description for drop down list
-rw-r--r--edit_pigeonholes.php5
-rw-r--r--templates/edit_pigeonholes.tpl2
2 files changed, 4 insertions, 3 deletions
diff --git a/edit_pigeonholes.php b/edit_pigeonholes.php
index 0e5a347..41780d6 100644
--- a/edit_pigeonholes.php
+++ b/edit_pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.15 2006/02/08 13:17:41 lsces Exp $
+ * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.16 2006/02/10 21:11:41 lsces Exp $
*
* Copyright ( c ) 2004 bitweaver.org
* Copyright ( c ) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: edit_pigeonholes.php,v 1.15 2006/02/08 13:17:41 lsces Exp $
+ * $Id: edit_pigeonholes.php,v 1.16 2006/02/10 21:11:41 lsces Exp $
* @package pigeonholes
* @subpackage functions
*/
@@ -156,6 +156,7 @@ foreach( $contentList['data'] as $cItem ) {
$gBitSmarty->assign( 'contentList', $cList );
$gBitSmarty->assign( 'contentSelect', $contentSelect );
$gBitSmarty->assign( 'contentTypes', $contentTypes );
+$gBitSmarty->assign( 'contentDescs', $contentDescs );
$listHash['root_structure_id'] = !empty( $gContent->mInfo['root_structure_id'] ) ? $gContent->mInfo['root_structure_id'] : NULL;
$listHash['force_extras'] = TRUE;
diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl
index f788d61..e753ddc 100644
--- a/templates/edit_pigeonholes.tpl
+++ b/templates/edit_pigeonholes.tpl
@@ -75,7 +75,7 @@
<div class="row">
{formlabel label="Content" for="pigeonhole-content"}
{forminput}
- {html_options values=$contentTypes options=$contentTypes name=content_type_guid selected=$contentSelect}
+ {html_options values=$contentTypes options=$contentDescs name=content_type_guid selected=$contentSelect}
{/forminput}
{forminput}