Logo of SermonSpeaker Extension Claim

Login Form

frontendupload layout

More
1 month 5 days ago #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?

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

More
1 month 5 days ago #7394 by Thomas Hunziker
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.

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.
The following user(s) said Thank You: marsu

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

More
2 weeks 4 days ago #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?
<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.

More
2 weeks 4 days ago #7399 by Thomas Hunziker
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):
<?php if ($field->fieldname == 'speaker') :
  continue;
endif; ?>
To show the speaker in another tab, you can then manually add it there:
<?php echo $this->form->renderField('speaker'); ?>

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.
The following user(s) said Thank You: marsu

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

More
2 weeks 2 days ago #7400 by marsu
Replied by marsu on topic frontendupload layout
HI Thomas,
<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.

More
2 weeks 2 days ago #7401 by Thomas Hunziker
Can you try replacing 'speaker' with 'speaker_id'?

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.
The following user(s) said Thank You: marsu

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

Time to create page: 0.118 seconds
Powered by Kunena Forum