Moving the Speaker Field

  • jlearned
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #29683 by jlearned
Moving the Speaker Field was created by jlearned
Is it possible to move the fields found on the Extra Information tab to the Basic Information Tab?

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

More
12 years 9 months ago #29706 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Moving the Speaker Field
Hi

Unfortunately, it is not possible. If you want to move it, you will need to edit some code. Do you know programming so that I can guide you more details ? You are talking about the front-end or back-end ?

Tuan

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

  • jlearned
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #29742 by jlearned
Replied by jlearned on topic Re: Moving the Speaker Field
I know some, just enough to get myself in trouble. I am talking about in the back end. I already was able to change the word speaker to instructor in both the front end and back end. Give me the guidance and Ill see if I can work it out.

Thanks

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

More
12 years 9 months ago #29751 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Moving the Speaker Field
Hi

You can try to edit the file administrator/components/com_eventbooking/views/event/tmpl/default.php, the code for rendering custom fields in Extra Information tab is :
Code:
<?php foreach ($this->form->getFieldset('basic') as $field) { ?> <div class="control-group"> <div class="control-label"> <?php echo $field->label ;?> </div> <div class="controls"> <?php echo $field->input ; ?> </div> </div> <?php } ?>

Move that part of code to the position you want (basic information tab) and it will work as expected .

Regards,

Tuan

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

  • jlearned
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago - 12 years 9 months ago #29817 by jlearned
Replied by jlearned on topic Re: Moving the Speaker Field
I tried it, and it displays the fieldset on the (basic information) tab but does not save the entry when creating a new event.

I also tried the following code:
Code:
<tr> <td class="key"><?php echo JText::_('EB_SPEAKER'); ?> </td> <td><input type="text" name="field_speaker" id="field_speaker" class="inputbox" size="10" value="<?php echo $this->item->field_speaker; ?>" /> </td> </tr>
It displays a field how I would like but also does not save an entry.
Last edit: 12 years 9 months ago by jlearned. Reason: Cleanup code

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

Moderators: Tuan Pham Ngoc