Hi
I'm wondering if it is possibel to create a selectbox in the content of a side. With the editor it seems not to be a option.
A selectbox like the one that is in use in ex.templateshift plugin.
I know the Way to kode it in a normal php or HTML page.
Have a Nice Day
Best regards
Jens
Selectbox/dropdownbox
Re: Selectbox/dropdownbox
Hi Jens,
What exactly do you want to insert?
Christoph
The following works fine with tinyMCE:maeg wrote:I'm wondering if it is possibel to create a selectbox in the content of a side. With the editor it seems not to be a option.
Code: Select all
<select><option value="1">one</option><option value="2">two</option></select>
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Selectbox/dropdownbox
Hi
I hope you understand What i mean
Yes i know that Way to make a select dropdown list, but I can't get it to work so everly contains a link to somthing.cmb wrote: The following works fine with tinyMCE:What exactly do you want to insert?Code: Select all
<select><option value="1">one</option><option value="2">two</option></select>
Christoph
I hope you understand What i mean
Re: Selectbox/dropdownbox
Hi maeg,
now I understand. But linking with a selectbox doesn't work with plain (X)HTML, as the content of <option> is restricted to #PCDATA (so no <a> is allowed inside of <option>). To link with a selectbox one has to use Javascript:
The obvious drawback: that doesn't work, if JS is enabled in the browser.
An alternative that doesn't require JS, but would rely on HTML/CSS only, would be some kind of dropdown-menu.
Christoph
now I understand. But linking with a selectbox doesn't work with plain (X)HTML, as the content of <option> is restricted to #PCDATA (so no <a> is allowed inside of <option>). To link with a selectbox one has to use Javascript:
Code: Select all
<div><select onchange="window.location.href=this.value">
<option value="#">Browse ...</option>
<option value="?News01">News01</option>
<option value="?News02">News02</option>
</select></div>
An alternative that doesn't require JS, but would rely on HTML/CSS only, would be some kind of dropdown-menu.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH