How can I expand the Taxonomy Field by default?

Topics: Administration, Customizing Orchard
Jan 16, 2015 at 10:44 AM
Hi,

I add a Taxonomy Field in a Content Type.
When I create a new Content, the Taxonomy Field is closed. If I want select a taxonomy, I must expand the Taxonomy Field first.
So, is there a way to make the Taxonomy Field expanded by default?

Thanks for any help.
Developer
Jan 18, 2015 at 9:46 PM
The expando control keeps its state BTW, so if you expand that field's control, next time it should open as expanded.

But if you add the open class to it from JS it should already be open, or initialize it as open from a shape template override. See the script for reference: src\Orchard.Web\Themes\TheAdmin\Scripts\admin.js
Jan 19, 2015 at 5:36 PM
Jan 22, 2015 at 10:50 AM
Piedone wrote:
The expando control keeps its state BTW, so if you expand that field's control, next time it should open as expanded.

But if you add the open class to it from JS it should already be open, or initialize it as open from a shape template override. See the script for reference: src\Orchard.Web\Themes\TheAdmin\Scripts\admin.js
with the latest 1.x code, the expando control can not keep its state. it always closed every time.

how can i modify the admin.js to achieve it? thank you very much.