On Jan 12, 2009, at 4:23 PM, Müge Yaranlı wrote:

> Hi,
>
> While submitting a document from the workspace to the section area,  
> in tree view sometimes one cannot be sure about the exact section  
> for submission. This is because area for the name of the section in  
> the tree view is sometimes short for long section names that are  
> alike. So is there a way to increase the length for the section  
> names in the submit window?
>
> Thanks a lot for any help...

Hi Müge,

What you're asking is not configurable by a simple property in ZMI,  
but you can override the content_submit_form.pt ZPT file. Extract  
(from current CPSDefault trunk)

            <td>
              <input type="checkbox" id="" name="" value=""  
class="noborder"
                     tal:attributes="value section/rpath;
                                     id section/rpath;
                                     name clone_wf_action;
                                     checked python:states_for_section  
and 'checked' or None" />
              <span tal:replace="structure  
python:'&nbsp;'*4*section['depth']">&nbsp;</span>
              <label tal:content="structure section/short_title"
                     tal:attributes="for section/rpath">Section id</ 
label>
              <em i18n:translate="label_requires_approval"
                  tal:condition="not:can_publish">(requires approval)</ 
em>
            </td>


If you change section/short_title, to section/title, then the whole  
title will appear. Beware that this can put a mess in your page layout.

Another option would be to widden the computed short_title' itself, by  
overriding getFolderInfo


Regards




>
>
>
> <image002.jpg>
> _______________________________________________
> cps-users mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/cps-users

--
Georges Racinet
Zope/CPS/Plone expertise & assistance





_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to