How to add a listbox to a page

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
drewdb
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 27, 2021 6:12 pm

How to add a listbox to a page

Post by drewdb » Wed Oct 27, 2021 8:28 pm

new to joomla and managed to modify the demo template.
i'm trying to add a simple listbox that i can populate externally but can't seem to find how to add a listbox.
searching for listbox in modules doesn't show anything other than articles category and such which doesn't sound like a standard listbox
Last edited by imanickam on Fri Oct 29, 2021 9:17 am, edited 1 time in total.
Reason: Moved topic » from Joomla! 4.x Coding to General Questions/New to Joomla! 4.x

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9744
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: How to add a listbox to a page

Post by AMurray » Wed Oct 27, 2021 9:27 pm

Try custom fields. https://docs.joomla.org/J3.x:Adding_custom_fields (the doc is J3, but I'm thinking that it could also apply to J4.).

Or else, just use the HTML code to place the list box on your page....? Add your own PHP or whatever, to populate it? https://www.w3schools.com/tags/tag_select.asp. In HTML it's known as <select> element and manually add the options with the <option> .... </option> element.

Not sure if I'm on track with what you're trying to do.

More information could be helpful, in the context of your website.
Regards - A Murray
General Support Moderator

drewdb
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 27, 2021 6:12 pm

Re: How to add a listbox to a page

Post by drewdb » Fri Oct 29, 2021 12:36 am

Thanks for that. Yes that's what i'm trying to do but so new to joomla i'm not sure how to access the pages as html so i can mod from there.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1637
Joined: Tue Jun 30, 2020 12:17 pm

Re: How to add a listbox to a page

Post by Pavel-ww » Fri Oct 29, 2021 7:58 am

drewdb wrote:
Fri Oct 29, 2021 12:36 am
i'm not sure how to access the pages as html so i can mod from there.
Hi. Being in an article or module editing mode simply disable the WYSIWYG editor and insert your HTML code.
Previously, you must configure your editor so that it does not delete HTML tags.


Locked

Return to “General Questions/New to Joomla! 4.x”