Input field with multiple template position

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
kv707
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun May 19, 2019 3:36 pm

Input field with multiple template position

Post by kv707 » Sun May 19, 2019 3:52 pm

Hello,

I am trying to develop some custom Joomla Modules.
As the site has some specific logic I need to have an input that gives the option to assign multiple module positions.
field_to_insert.jpg
Till now I have found this code browsing the Joomla code, but unfortunately, it seems that is showing only positions that have modules assigned to it:
<field
name="cmsposition"
multiple="multiple"
type="modulesposition"
label="COM_MODULES_FIELD_POSITION_LABEL"
>
<option value="">COM_MODULES_OPTION_SELECT_POSITION</option>
</field>

Even on administrator\components\com_modules\models\forms\moduleadmin.xml a template for this field is not showing.

Could someone help me with this issue?
Thank you!
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25870
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Input field with multiple template position

Post by Per Yngve Berg » Sun May 19, 2019 7:44 pm

You create a second instance of the module in module manager and place in the second position.


Post Reply

Return to “Extensions for Joomla! 3.x”