Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publications: review detail page #504

Closed
stefanorosanelli opened this issue Jun 12, 2014 · 11 comments
Closed

Publications: review detail page #504

stefanorosanelli opened this issue Jun 12, 2014 · 11 comments

Comments

@stefanorosanelli
Copy link
Member

We should be able to see contents, sections and properties of a section at the same time like in other objects detail views.

@qwerg
Copy link
Member

qwerg commented Apr 2, 2015

@stefanorosanelli take a look!

@stefanorosanelli
Copy link
Member Author

Seems ok.
Is there a pagination? In case of many contents/sections...
@xho have a look.. (branch: issue/504-publications-review-detail-page)

qwerg added a commit that referenced this issue Apr 2, 2015
@qwerg
Copy link
Member

qwerg commented Apr 2, 2015

Only "contents" are paginated.

@stefanorosanelli
Copy link
Member Author

Seems good!
A useful additional filter could be: see only sections or only publications
As label above filter, instead of areas we should have publications, sections

@batopa what do you think?

@batopa
Copy link
Member

batopa commented Apr 17, 2015

It is much better then before. Some consideration:

  • controller and some views need refactoring. Now AreasController::index() redirect to AreasController::results() if no id was passed otherwise it calls AreasController::view($id). Moreover AreasController::results() filter only sections so the list you see entering in Publications is a list of sections. Is it wanted? I suppose that module index should show a list of all publications and sections.

  • To add filter for publications or sections is very simple, it's already used for example in Multimedia module. All you need to do is:

    • activate the filter 'type'
    {$view->element('filters', [
           'options' => ['type' => true]
    ])}
    
    • assure to have set $objectTypeIds as array of object type ids to show

@qwerg
Copy link
Member

qwerg commented Apr 17, 2015

Refactor of controller is needed, but I have preferred to release quickly a stable version and proceed with a deep refactor later. (this involves also tree, different behaviour of index/id, etc).
For the same reason I'have preferred to handle in list (and in bulk operations!) only sections and not publications.

qwerg added a commit that referenced this issue Apr 18, 2015
Results page now manage areas and sections. Added filter for object types. Small refactor of bulk view, to avoid 'delete all' when needed
@qwerg
Copy link
Member

qwerg commented Apr 18, 2015

Results page now manage both areas and sections, but without bulk delete button

@stefanorosanelli
Copy link
Member Author

branch issue/504-publications-review-detail-page merged to 3-corylus and removed

@batopa do we keep this issue or open a new one for refactoring ?

@batopa
Copy link
Member

batopa commented Apr 20, 2015

Keep open. I'll give a look at soon as possible.

@xho
Copy link
Member

xho commented Apr 23, 2015

@qwerg
This insertion in list_objects_bulk causes problems to all custom list_objects that include it
{if isset($bulk_delete) && $bulk_delete==true}

For example now in module Addressbook the “delete selected” button is not available.
This way we have to change also all the plugins deployed that have a custom list_objects template.

It should have been the opposite, a condition like:
{if !isset($hide_bulk_delete) || $hide_bulk_delete==false}

and where required to hide set
hide_bulk_delete = true

xho added a commit that referenced this issue Apr 23, 2015
Now it is always visible if $bulk_hide_delete is not set or is false.
batopa added a commit that referenced this issue May 29, 2015
@qwerg
Copy link
Member

qwerg commented May 29, 2015

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants