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 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

Who's Online

295 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 295


more...

Donat-O-Meter

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

Latest GitHub Commits