- Posts: 43
- 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.
frontendupload layout
15 Jan 2019 19:48 #7392
by marsu
frontendupload layout was created by marsu
Hi Thomas,
the frontendupload form has quiet a lot of fields we will never use.
So I'm looking for good way to change the layout. The best way i can imagine would be a possibility to install a custom layout like the other layouts.
the dirty way is the customisation of the frontendupload\tmpl\default.php file.
Is there a middle way where i don't lose my customisation every time i did a update?
the frontendupload form has quiet a lot of fields we will never use.
So I'm looking for good way to change the layout. The best way i can imagine would be a possibility to install a custom layout like the other layouts.
the dirty way is the customisation of the frontendupload\tmpl\default.php file.
Is there a middle way where i don't lose my customisation every time i did a update?
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
15 Jan 2019 20:15 #7394
by Thomas Hunziker
Replied by Thomas Hunziker on topic frontendupload layout
Your dirty way actually isn't dirty at all if you do it the proper way.
The file frontendupload\tmpl\default.php is overrideable in your template. In the Joomla Backend you have in the template manager the possibility to create an override for it and edit it.
Your override will then not be affected by any updates.
See docs.joomla.org/J3.x:How_to_use_the_Template_Manager
Just remember that when the original file changes in an update, you will have to check if you need to adjust your own layout as well.
Also, there are some fields which are required. If you want to remove one of those, you will get an error when trying to save the form or loose data when editing an existing sermon. In that case it may be better to just hide the fields with CSS (eg display:none) instead of removing it from the layout.
The file frontendupload\tmpl\default.php is overrideable in your template. In the Joomla Backend you have in the template manager the possibility to create an override for it and edit it.
Your override will then not be affected by any updates.
See docs.joomla.org/J3.x:How_to_use_the_Template_Manager
Just remember that when the original file changes in an update, you will have to check if you need to adjust your own layout as well.
Also, there are some fields which are required. If you want to remove one of those, you will get an error when trying to save the form or loose data when editing an existing sermon. In that case it may be better to just hide the fields with CSS (eg display:none) instead of removing it from the layout.
The following user(s) said Thank You: marsu
Please Log in or Create an account to join the conversation.
03 Feb 2019 13:48 #7398
by marsu
Replied by marsu on topic frontendupload layout
HI Thomas,
on the details Tab i still have a problem.
How can i switch the Speaker Field to the editor Tab?
There is only the loop or missed i something?
PS: I think it would be an improvement for many if you could do the settings in the backend-tab "edit"
For example if you don't use video files or numbers just uncheck the support in the backend.
as always many thanks for your support.
Thomas
on the details Tab i still have a problem.
How can i switch the Speaker Field to the editor Tab?
Code:
<div class="tab-pane" id="details">
<?php foreach($this->form->getFieldset('detail') as $field): ?>
<?php echo $this->form->renderField($field->fieldname); ?>
<?php endforeach; ?>
</div>
There is only the loop or missed i something?
PS: I think it would be an improvement for many if you could do the settings in the backend-tab "edit"
For example if you don't use video files or numbers just uncheck the support in the backend.
as always many thanks for your support.
Thomas
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
03 Feb 2019 15:13 #7399
by Thomas Hunziker
Replied by Thomas Hunziker on topic frontendupload layout
SermonSpeaker already has a lot of options. I don't feel like I want to add even more. Especially since it can be customised using the overrides.
The loop there takes the fields from the XML definition and shows them. The XML itself is hardcoded and should not be touched.
You can add a check into the loop which makes it bypass the speaker field. Something like that (untested):
To show the speaker in another tab, you can then manually add it there:
The loop there takes the fields from the XML definition and shows them. The XML itself is hardcoded and should not be touched.
You can add a check into the loop which makes it bypass the speaker field. Something like that (untested):
Code:
<?php if ($field->fieldname == 'speaker') :
continue;
endif; ?>
Code:
<?php echo $this->form->renderField('speaker'); ?>
The following user(s) said Thank You: marsu
Please Log in or Create an account to join the conversation.
04 Feb 2019 21:03 #7400
by marsu
Replied by marsu on topic frontendupload layout
HI Thomas,
the Speaker field won't show.
Is there anything else to have in mind?
THx
Code:
<div class="tab-content">
<div class="tab-pane active" id="editor">
<?php echo $this->form->renderField('title'); ?>
<?php echo $this->form->renderField('speaker'); ?>
<?php if (is_null($this->item->id)): ?>
<?php echo $this->form->renderField('alias'); ?>
<?php endif;
echo $this->form->getInput('notes'); ?>
</div>
the Speaker field won't show.
Is there anything else to have in mind?
THx
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
04 Feb 2019 22:53 #7401
by Thomas Hunziker
Replied by Thomas Hunziker on topic frontendupload layout
Can you try replacing 'speaker' with 'speaker_id'?
The following user(s) said Thank You: marsu
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds