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.

Front-end upload view default active tab

More
05 Jul 2016 07:12 #6202 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

Please Log in or Create an account to join the conversation.

More
05 Jul 2016 07:42 #6203 by Thomas Hunziker
The following user(s) said Thank You: Ken Lee

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 09:18 - 06 Jul 2016 09:19 #6206 by Ken Lee
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
Last edit: 06 Jul 2016 09:19 by Ken Lee. Reason: typo error

Please Log in or Create an account to join the conversation.

More
06 Jul 2016 12:05 #6207 by Thomas Hunziker
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
Powered by Kunena Forum