1
ralf57
Turning notification options' table into a drop-down?
  • 2004/5/5 20:53

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


I don't really like the table that
shows the Notification Options below
the module's content.
I'd rather replace this table with
a more elegant drop-down menu.
Is it possible?
Which files i have to edit?
Thanks in advance,ralf.

2
Dave_L
Re: Turning notification options' table into a drop-down?
  • 2004/5/5 21:09

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


modules/system/templates/system_notification_select.html

That might be the only file that needs to be modified.

Rather than editing the file directly, it would probably be better to do it through the Control Panel >> Template Set Manager.

3
ralf57
Re: Turning notification options' table into a drop-down?
  • 2004/5/5 21:30

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


Thank you Dave,
i think it wouldn't be so difficult
to do.

4
Brad
Re: Turning notification options' table into a drop-down?
  • 2004/5/6 0:20

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


Why would you want to turn the table into a combobox (i.e. "drop-down")? The reason that it's a table in the first place is because the user can select multiple notifications at a single time. The user can't do that if it's a combobox.

5
Dave_L
Re: Turning notification options' table into a drop-down?
  • 2004/5/6 0:38

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I suppose the advantage is that it uses less space. And a menu can be configured to allow multiple selections, like the "Selectable themes" menu in the control panel general settings.

6
DonXoop
Re: Turning notification options' table into a drop-down?

Although it might be more difficult for a user to pick multiple choices (less intuitive) it is possible to make a drop down.

I peeked at the template and it looks fairly simple to change. The template cycles through the choices and builds the form in a table. Easy enough to build a drop down instead. It is dynamic based on the usual things (admin config, user privs etc) so you'll want to maintain the smarts.

7
ralf57
Re: Turning notification options' table into a drop-down?
  • 2004/5/6 9:31

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


@DonXoop
I still haven't found a way to
allow multiple choices within the
dropdown.
Can you give me some pointer?
Links,examples,etc...
Thank you.

8
Mithrandir
Re: Turning notification options' table into a drop-down?

look at the code for the theme selection box - it is just a property in the <select> tag

If you change the form, you should also keep in mind that the form data is picked up on the receiving side (notification_update, I think) and that it should fit the sending data

9
Dave_L
Re: Turning notification options' table into a drop-down?
  • 2004/5/6 12:33

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


To allow multiple selections, the <select ...> tag must contain the attribute multiple='multiple', and the size= attribute must be set to a value larger than 1.

10
Brad
Re: Turning notification options' table into a drop-down?
  • 2004/5/6 15:25

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


Quote:
Dave_L wrote:
To allow multiple selections, the <select ...> tag must contain the attribute multiple='multiple', and the size= attribute must be set to a value larger than 1.

Which then turns it into a listbox, by my definition, and not a combobox (i.e. dropdown).

Quote:
DonXoop wrote:
Although it might be more difficult for a user to pick multiple choices (less intuitive) it is possible to make a drop down.

I agree that it'd be less intuitive. I'd suggest that there should be a compelling reason to make it more complex for the user.

I'd also like to suggest another alternative to having the notification options in a listbox... Keep them in the table but hide the table in a "drop-down"-like deal.

Fo' instance... "fo' instance web site"
Click the "Calendar" link near the top, and on the right, of the screen. Notice how the calendar pops down without reloading the page? I'm thinking the same thing could be done for the notification options.

Login

Who's Online

236 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits