Hi Frank,
>the columns are not customizable anymore?
I mean that the names of the columns to be displayed is
hard-coded by detail_tab_columns in folder_contents.pt,
whereas before, some other process generated that variable
(I don't know where, but I didn't look too hard)
I think that variable should be customizable some way, but I
don't know if it's supported by the current CPS, or if it's
even possible without hacking lots of code. I haven't seen
anywhere one can do it at any rate
Regards,
Jonathan
-----Message d'origine-----
De : Frank Drews [mailto:frank.drews ditf-denkendorf.de]
Envoyé : mardi 22 mai 2007 17:04
À : Winterflood, Jonathan
Objet : Re: [CPS-users] How to edit the view of
document-metadata
Hi Jonathan,
great, you did nearly the same as me. I didnt added a new
field and if I
need a new one I will have a look at what you wrote here.
But I did
exactly the same regarding the content_lib_info_detail_tab
I am thinking about editing the byline, too.
I think the solution is quite nice, I can be done quite easy
and you
dont need to know python.
What do you mean, with "the columns are not
customizable anymore? Do you
mean the sort thing after editing the code? It is still
working with me.
What I want to do now, is to change the Version-text, I dont
like the
language there, I dont need it.
Regards
Frank
Winterflood, Jonathan schrieb:
> Hi,
>
> If I understand well what you are trying to do, I had
to do the same recently.
> The original view was in the workspaces:
> * The folder title.
> * The folder's byline.
> * A table showing the content of the folder with
Type/title/size/etc.
> * Select all/copy/paste/etc.
>
> I wanted to 1. remove the byline 2. change the columns:
remove some, plus add a custom 'comments' one
> To do this, I edited folder_contents.pt:
> - removed the byline line 15+
> - added a detail_tab_columns define at line 70
> Edited content_lib_info_detail_tab:
> - added a define line13: comments_in_tabs python:'comments'
in detail_tab_columns;
> - added a column header line55: <th
tal:condition="comments_in_tabs" etc.
> - added a column line99: <td align="center"
tal:condition="comments_in_tabs"
class="comment"
tal:content="python:here.getContentInfo(item,
level=3)['history'][0]['comments']">
> Comment Goes Here
> </td>
>
> This might not be the best way to do it (the columns
are not customizable any more if they were, the comment
retrieving may be quite reckless) but it works for me.
>
> Any comments highly appreciated
>
> Regards,
> Jonathan
>
> -----Message d'origine-----
> De : cps-users-bounces lists.nuxeo.com
[mailto:cps-users-bounces lists.nuxeo.com] De la part
de Frank Drews
> Envoyé : mardi 22 mai 2007 13:55
> À : Michael Schulz
> Cc : cps-users lists.nuxeo.com
> Objet : Re: [CPS-users] How to edit the view of
document-metadata
>
> Hi Michael,
>
> thank you very much. I know have the feeling that I am
very close.
> content_lib_byline does exist, but I think it is not
this one, its the
> footer for a document or folder. I checked some more
byline and
> content-files, but I didnt succeed. Perhaps I missed
the right one,
> because I am new to python and might miss something at
a first look.
> Still looking
>
> Frank
>
> Michael Schulz schrieb:
>
>> Hi Frank,
>>
>> these metadata information is named
"byline", if you search for it in
>> the skins folder, you can find the corresponding
places. For
>> document_view it is in widget_byline_render, for
folder_view ... I
>> think in content_lib_byline.
>>
>> HTH, Michael
>>
>> 2007/5/22, Frank Drews <frank.drews ditf-denkendorf.de>:
>>
>>> Hi,
>>>
>>> I searched the ZMI for quite a log time, but I
dont find what I am
>>> looking for:
>>> I want to edit the standard view of the folder
contents. I want that the
>>> status and the author isnt shown anymore. I
addition want to show some
>>> other metadate like last modified by, fi
available. I dont mean the
>>> metadata view of one document, I am talking
about the list of different
>>> documents inside a folder.
>>> At the moment it shows: Type, Title, Size,
Date, Author, Status, Version
>>> On top of this: Is it possible that the size of
a folder displayed
>>> equals the sum of its content-documents? At the
moment only the size of
>>> the folder-object itself it shown.
>>>
>>> Thanks a lot Frank
>>>
>>>
_______________________________________________
>>> cps-users mailing list
>>> cps-users lists.nuxeo.com
>>> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
>>>
>>>
>>
>
> _______________________________________________
> cps-users mailing list
> cps-users lists.nuxeo.com
> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
>
> This message contains information that may be
privileged or confidential and is the property of the
Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part
thereof. If you receive this message in error, please
notify the sender immediately and delete all copies of this
message.
>
>
This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It
is intended only for the person to whom it is addressed. If
you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or
use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and
delete all copies of this message.
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|