Ticket #1290 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Workspaces & Sections default view mode

Reported by: tsoulcie Assigned to: div
Priority: P1 Milestone: CPS 3.4.0
Component: CPS (global) Version: 3.3.8
Severity: normal Keywords:
Cc: tsoulcie

Description (Last modified by fguillaume)

Default view mode in Workspaces should be Folder_contents. "Sort by" and "Display" ("Affichage") selectors should be removed. Default display should be "Table". In table, Type column should come between Check and Title. "View" should not be proposed (documents view mode remains "view")

Default view mode in Sections should be view. Documents should be sorted by last published inverted. "Folder_contents" should be proposed only to users who have permission

The two view modes shouldn't appear as actions if only one is avaliable.

Attachments

Image 6.png (29.6 kB) - added by tsoulcie on 01/25/06 18:30:53.
Image 7.png (46.3 kB) - added by tsoulcie on 01/25/06 18:31:15.
urlview.png (24.5 kB) - added by tsoulcie on 01/25/06 18:52:28.
view.png (12.6 kB) - added by tsoulcie on 01/25/06 18:52:43.
view_layout_to_apply.zip (36.3 kB) - added by tsoulcie on 01/26/06 11:45:21.
folder_view_folder_contents.zip (43.4 kB) - added by tsoulcie on 01/26/06 11:45:49.
snapshot1.png (126.3 kB) - added by mturcu on 02/01/06 12:36:20.
Image 1.png (18.8 kB) - added by tsoulcie on 02/07/06 13:44:12.
view_anonym.png (18.8 kB) - added by tsoulcie on 02/07/06 14:29:23.

Change History

01/20/06 17:00:21 changed by tsoulcie

Folder_contents should display 50 items by page by default.

01/25/06 18:30:26 changed by tsoulcie

there is a difference between folder_view and folder_contents : with folder view something is empty but showed though, it makes a blank room. Could you remove it completely if empty ? see screenshots

01/25/06 18:30:53 changed by tsoulcie

  • attachment Image 6.png added.

01/25/06 18:31:15 changed by tsoulcie

  • attachment Image 7.png added.

01/25/06 18:50:15 changed by tsoulcie

Default view for every object (Folder, product,whatever is viewed) should follow the same model : currently the view of a folder and the view of a url are different (here a screenshot from the view of an url). Here the layout to follow, thanks.

01/25/06 18:52:28 changed by tsoulcie

  • attachment urlview.png added.

01/25/06 18:52:43 changed by tsoulcie

  • attachment view.png added.

01/25/06 18:56:31 changed by mturcu

Could you resubmit the attachments, pls? I get "not found" when I click on them. But if I understood correctly, you suggest that the "view" action corresponding to "folder_view" should not be displayed when the object has no content. This seems more complicated then a simple interface problem, like putting a Condition on the "view" action in portal_types->type_name->action_view , so that if object is "empty" (whatever that means), the action should not be displayed. I also expect other comments on this.

01/26/06 11:04:00 changed by tziade

in folder_view, After the sort is done, there's no way to get back to the ordered folder real order. Thus the ajax features are disabled

01/26/06 11:44:50 changed by tsoulcie

Could you resubmit the attachments, pls? I get "not found" when I click on them.


here you are

But if I understood correctly, you suggest that the "view" action corresponding to


"folder_view" should not be displayed when the object has no content. This seems more


complicated then a simple interface problem, like putting a Condition on the "view"


action in portal_types->type_name->action_view , so that if object is "empty"


(whatever that means), the action should not be displayed.

No I did not say anything like that. Let me summary :
* concerning the attachment "view layout to apply" : view of urls (for instance) and view of folder are different. The layout I gave you is for all views.
* concerning the attachment "folder_view / folder_contents" : what to modify in those views layouts to make them match previous attachment.
* concerning the showing of view/contents in actions : if only one is avaliable it should not appear in actions (but we talked about that on jabber so I guess that's not the point)

01/26/06 11:45:21 changed by tsoulcie

  • attachment view_layout_to_apply.zip added.

01/26/06 11:45:49 changed by tsoulcie

  • attachment folder_view_folder_contents.zip added.

01/26/06 17:32:32 changed by mturcu

Regarding the introduction of byline between Title and Description... As I have also said in a comment to #1272 , it's easy to do this for folder_contents (move around code in a template), but it's not the same thing for the folder_view of a Section, for example. In the second place "Title" and "Description" are two widgets, as defined in the "common" layout, and to introduce byline between them would mean to create a special widget for it, as I see it. This is not as trivial as in the case of folder_contents, that's why I asked for someone more experienced to tell me what the correct approach would be in this case.

01/30/06 17:45:37 changed by fguillaume

  • description changed.

Yes content_byline should probably be a widget, appearing only in view mode.

02/01/06 12:13:15 changed by ebarroca

What's the status on this ? I still see a default view that is not the right one in workspaces.

02/01/06 12:36:20 changed by mturcu

  • attachment snapshot1.png added.

02/01/06 12:45:36 changed by mturcu

I've attached a snapshot of /workspaces, taken from a local instance (code updated from trunk). "Default view mode in Workspaces should be Folder_contents" - checked. You can also go to ZMI->portal_types>Workspaces->Aliases , (Default) is set to "folder_contents". "Initial view name" is also set to "folder_contents", in portal_types>Workspaces->Properties. "Sort by" and "Display" ("Affichage") selectors should be removed. - checked, as you can see from the screenshot "Default display should be "Table"." - checked. "View" should not be proposed" - checked Dragos is working on the byline widget. And it's also this to do, "Documents should be sorted by last published inverted" in "sections/view".

02/01/06 12:52:48 changed by div

  • owner changed from mturcu to div.

02/02/06 11:45:18 changed by div

Sections view is updated to have the new byline. This also applies to some of the documents (all that have a Title). We have to decide what to do with the rest of the documents (those that don't have a Title, for instance: URL): where will be the byline situated?

02/02/06 15:00:20 changed by tsoulcie

I think URL NAME should be considered as title (with no link on it) and URL as content. So the layout for URL should be : icon + Url Name byline Description URL

02/03/06 12:16:27 changed by div

The two view modes shouldn't appear as actions if only one is available. 

If we don't have any action for the View (because the folder_contents doesn't have the rights to be displayed, for instance), the only way to return to the document view would be to use the breadcrumbs. Are we sure we want that?

02/07/06 13:44:00 changed by tsoulcie

now that you say it, i'm not so sure... :-) Alright we keep it as it is, even if it still bothers me when anonymous (see screenshot attached) but I guess actions are usefull in specific products. Let's close this ticket if everything else is ok.

02/07/06 13:44:12 changed by tsoulcie

  • attachment Image 1.png added.

02/07/06 14:25:42 changed by div

Last attachment doesn't work. Maybe the space in the name of the file is the problem... There is one more thing remaining before closing the ticket: the unwanted space in Sections view.

02/07/06 14:29:23 changed by tsoulcie

  • attachment view_anonym.png added.

02/07/06 14:30:14 changed by tsoulcie

I have renamed+reattached the screeshot.

02/07/06 16:39:31 changed by div

  • status changed from new to closed.
  • resolution set to fixed.

02/17/06 18:48:06 changed by fguillaume

Cool! Thanks.