modules control in admin pageedit multichoice

Reported by A_Bach on 2009-03-28
2
Affects Status Importance Assigned to Milestone
Pluck CMS
Status tracked in 4.7
4.6
Won't Fix
Undecided
Unassigned
4.7
Invalid
Undecided
Unassigned

Bug Description

In admin pageedit - I can multichoice one option in modules control part.

"Choose if you want modules displayed on this page, and in which order."

Album: 1
Blog: 1
Contact: 1

Find in 4.6, 4.7dev and 4.7seo-dev

Any idea how we can avoid this?

Changed in pluck-cms:
importance: Undecided → Medium
milestone: none → 4.7
status: New → Confirmed
A_Bach (ekyo-serwis) wrote :

mabey sth like this if (isset($_POST['submit'])) ? this should be the simplest way i think.

I hope you'll hear me out, as I have some thoughts I hope will help:

JavaScript comes to mind as a solution - when any module is set to display in a specific position, remove the position from the other boxes. (In reality, it would be more reliable to just reconstruct the menus for each one after each change).

I would also suggest changing from drop-down menus to radio buttons, or a custom system (perhaps somewhat similar to the system used for rearranging the menu) to help prevent confusion - it's very disconcerting to see items in a drop-down menu disappear. This would still require JavaScript to implement.

If client-side scripting is to be avoided, there's certainly the option of validating the choices server-side.

Time permitting, I would be willing to write the JS to ensure that this won't happen in 4.7.

Sander (sanderth) wrote :

Since rev. 332 in the dev-branch, this bug is invalid for 4.7, because modules are included in pages in a totally different way now.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers