Re: New features proposed II
sbalbous <[email protected]>
| Newsgroups | gmane.comp.cms.infoglue.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
This features looks really interresting to me, as long as the created folder
has the contentType=Folder, it's very useful for binding.
Regards,
-sb
Sito wrote:
>
> **********************************************************************************************
> SECOND NEW FEATURE
> **********************************************************************************************
> When creating a folder, the user has to choose the content/type, which
> is useless choice as the type
> is obviously a folder, and then when creating a content, the user has
> the option to select the content
> type folder, which is unnecesary as creating a folder is done through a
> different option.
> The fix: When creating a folder, user is not presented with the choice
> of content type and when creating
> a content, folder is not in the content type list the user can choose
> from.
> That improves usability as it is les confusing for user.
> **********************************************************************************************
> File: webapp/cms/contenttool/createContent.vm
>
> FULL CODE CONTENT:
> *****************************************************************************************************
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> #if($isBranch)
> #beginContentTool("tool.contenttool.createFolderHeader" "New folder"
> "" "0" "0" "0")
> #else
> #beginContentTool("tool.contenttool.createContentHeader" "New
> content" "" "0" "0" "0")
> #end
>
> <div class="fullymarginalized">
> <form name="editForm" method="post" action="CreateContent.action">
> <table>
> <tr>
> <td colspan="3">#editTextField("Content.name" "name" $!name "30"
> "normaltextfield" "")</td>
> </tr>
>
> #if($enableDateTimeDirectEditing == "true")
> #set($dateReadonly = "")
> #else
> #set($dateReadonly = "readonly")
> #end
> <tr>
> <td colspan="3">#editDateField("Content.publishDateTime"
> "publishDateTime" $!publishDateTime "30" "date"
> "ViewCalendar.action?date=$!publishDateTimeAsLong&formPath=document.editForm.publishDateTime"
> "$dateReadonly")</td>
> </tr>
> <tr>
> <td colspan="3">#editDateField("Content.expireDateTime"
> "expireDateTime" $!expireDateTime "30" "date"
> "ViewCalendar.action?date=$!expireDateTimeAsLong&formPath=document.editForm.expireDateTime"
> "$dateReadonly")</td>
> </tr>
> #if($!isBranch)
> <tr>
> <td colspan="3">
> #foreach ($contentTypeDefinitionVO in $contentTypeDefinitions)
> #if('Folder'== $contentTypeDefinitionVO.getName())
> <input type="hidden" name="contentTypeDefinitionId"
> value="$contentTypeDefinitionVO.getContentTypeDefinitionId()" />
> #end
> #end
> </td>
> </tr>
> #else
> <tr>
> <td colspan="3">
> ##allowedContentTypeNames: $allowedContentTypeNames<br/>
> ##defaultContentTypeName: $defaultContentTypeName<br/>
> $ui.getString("tool.contenttool.newContent.contentType")<br/>
> <select class="contenttypes" name="contentTypeDefinitionId">
> #foreach ($contentTypeDefinitionVO in $contentTypeDefinitions)
> #if('Folder'!=$contentTypeDefinitionVO.getName())
> #if($isBranch && $defaultFolderContentTypeName ==
> $contentTypeDefinitionVO.getName())
> <option
> value="$contentTypeDefinitionVO.getContentTypeDefinitionId()"
> selected="1">$contentTypeDefinitionVO.getName()</option>
> #else
> #if($defaultContentTypeName ==
> $contentTypeDefinitionVO.getName())
> <option
> value="$contentTypeDefinitionVO.getContentTypeDefinitionId()"
> selected="1">$contentTypeDefinitionVO.getName()</option>
> #elseif(!$allowedContentTypeNames ||
> $allowedContentTypeNames.indexOf("$contentTypeDefinitionVO.getName(),")
> > -1)
> <option
> value="$contentTypeDefinitionVO.getContentTypeDefinitionId()">$contentTypeDefinitionVO.getName()</option>
> #end
> #end
> #end
> #end
> </select>
> </td>
> </tr>
> #end
> <tr>
> <td colspan="3"> </td>
> </tr>
> <tr>
> <input type="hidden" name="isBranch" value="$!isBranch" />
> <input type="hidden" name="parentContentId"
> value="$!parentContentId" />
> <input type="hidden" name="repositoryId" value="$!repositoryId" />
> <input type="hidden" name="unrefreshedContentId"
> value="$!parentContentId" />
> <input type="hidden" name="changeTypeId" value="2" />
> <td>
> <input type="image"
> src="$ui.getString("images.contenttool.buttons.save")" width="50"
> height="25" border="0" />
> ViewContent.action?contentId=$!parentContentId
> $ui.getString(
> </td>
> </tr>
>
> </table>
> </form>
> </div>
>
> <script language="JavaScript" type="text/javascript">
> <!--
> document.editForm.name.focus();
> //-->
> </script>
>
> #endContentTool()
>
> ****************************************************************************
> another feature in next email..
>
> --
> --------------======ooOO000OOoo======---------------
> Vicente Javier Rosselló Ferrer
> E-mail: vrossello [arroba] uib.es
> Tel: 971 17 2884
> Centre de Tecnologies de la Informació a la UIB
> CTI - http://www.cti.uib.es
> Edifici Anselm Turmeda
> Ctra. Valldemossa 7.5km
> Universitat de les Illes Balears - http://www.uib.es
> ====================================================
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Infoglue-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/infoglue-developer
>
>
--
View this message in context: http://www.nabble.com/New-features-proposed-II-tp22095719p22106854.html
Sent from the Infoglue - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Infoglue-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/infoglue-developer