- Posts: 129
- Thank you received: 0
Support for SermonSpeaker 5.x is in bugfix mode only, the same as it is for Joomla 3.10.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
Front-end upload view default active tab
05 Jul 2016 07:12 #6202
by Ken Lee
Front-end upload view default active tab was created by Ken Lee
Dear Thomas,
I added a tab at front-end upload at /com_sermonspeaker/models/forms/sermon.xml and I am able to enter values into fields that I added to the sermons table.
My problem is that by default the tab displayed when I add a sermon is the "editor" tab with title, alias and notes input fields. How can I set my new tab is the default active tab? I come to /com_sermonspeaker/views/frontendupload/tmpl/default.xml but I could not make sense out of it.
Would you tell me the right place to twist?
Thank you.
Ken
I added a tab at front-end upload at /com_sermonspeaker/models/forms/sermon.xml and I am able to enter values into fields that I added to the sermons table.
My problem is that by default the tab displayed when I add a sermon is the "editor" tab with title, alias and notes input fields. How can I set my new tab is the default active tab? I come to /com_sermonspeaker/views/frontendupload/tmpl/default.xml but I could not make sense out of it.
Would you tell me the right place to twist?
Thank you.
Ken
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
05 Jul 2016 07:42 #6203
by Thomas Hunziker
Replied by Thomas Hunziker on topic Front-end upload view default active tab
It's done here:
github.com/Bakual/SermonSpeaker/blob/mas...d/view.html.php#L244
The following user(s) said Thank You: Ken Lee
Please Log in or Create an account to join the conversation.
06 Jul 2016 09:18 - 06 Jul 2016 09:19 #6206
by Ken Lee
Replied by Ken Lee on topic Front-end upload view default active tab
Dear Thomas,
It seems you did not implement the parameter in admin component. I added this section in admin.xml
<field name="active_tab"
type="list"
label="COM_SERMONSPEAKER_FIELD_ACTIVE_TAB_LABEL"
description="COM_SERMONSPEAKER_FIELD_ACTIVE_TAB_DESC"
default="mynewform">
<option value="">JOPTION_USE_DEFAULT</option>
<option value="mynewform">COM_SERMONSPEAKER_MYNEWFORM</option>
<option value="files">COM_SERMONSPEAKER_FU_FILES</option>
<option value="details">JDETAILS</option>
</field>
Then the jQuery section is added as in com_sermonspeaker/site/views/frontendupload/view.html.php#L244
But then I had a question, why the option list value is included in /com_sermonspeaker/views/frontendupload/tmpl/default.xml but it apparently not effective?
Thanks a lot.
Ken
It seems you did not implement the parameter in admin component. I added this section in admin.xml
<field name="active_tab"
type="list"
label="COM_SERMONSPEAKER_FIELD_ACTIVE_TAB_LABEL"
description="COM_SERMONSPEAKER_FIELD_ACTIVE_TAB_DESC"
default="mynewform">
<option value="">JOPTION_USE_DEFAULT</option>
<option value="mynewform">COM_SERMONSPEAKER_MYNEWFORM</option>
<option value="files">COM_SERMONSPEAKER_FU_FILES</option>
<option value="details">JDETAILS</option>
</field>
Then the jQuery section is added as in com_sermonspeaker/site/views/frontendupload/view.html.php#L244
But then I had a question, why the option list value is included in /com_sermonspeaker/views/frontendupload/tmpl/default.xml but it apparently not effective?
Thanks a lot.
Ken
Last edit: 06 Jul 2016 09:19 by Ken Lee. Reason: typo error
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
06 Jul 2016 12:05 #6207
by Thomas Hunziker
Replied by Thomas Hunziker on topic Front-end upload view default active tab
It's only meant to work with a menu item. If you have a menu item pointing to the frontend editing page, then you can set the active tab in that menu item options.
The following user(s) said Thank You: Ken Lee
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds