Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

Hide fields on the add events page? 7 years 8 months ago #19005

  • mobiel
  • mobiel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello,

Is it possible to hide the the following fields of the "add events" page for members?


Attachments:

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

Hide fields on the add events page? 7 years 8 months ago #19006

hi mobiel,

to make it happen you can add some code to jem.css and edit the editevent-view.

editevent-view
one solution can be to create a template-override for the editevent view by using Joomla Template manager. By doing that the changes in the code won't be overwritten by updates.

when you did create an override then the file needed should be located over here:
/templates/protostar/html/com_jem/editevent/edit.php

Edit the page and remove this code
<fieldset class="adminform">
	<ul class="adminformlist">
		<li><?php echo $this->form->getLabel('locid'); ?> <?php echo $this->form->getInput('locid'); ?></li>
		<li><?php echo $this->form->getLabel('contactid'); ?> <?php echo $this->form->getInput('contactid'); ?></li>
	</ul>
</fieldset>

the thing is that to remove that section you need to remove the code as it can't be addressed that easily, this as it's not having a specific class.


Well, the fields are now gone but you still have the toggle editor button and the "other tab" left and to hide those the easiest would be to add some code to jem.css or use a custom css file. a custom css file can be specified in the backend of jem, tab "layout".


add this to the css file
dt.event-other,
div.toggle-editor
 {
	display:none;
}

to note: the "toggle editor" is a special one and can't be easily hidden. Other buttons can be easily disabled in the backend of joomla by going to the plugin section and tick in "button" and then turn on/off the button.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3
The following user(s) said Thank You: mobiel

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

Last edit: by Bluefox.

Hide fields on the add events page? 7 years 8 months ago #19007

  • mobiel
  • mobiel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Its works. Thanks

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

Hide fields on the add events page? 7 years 6 months ago #19490

I have already successfully managed the changes in this post. Thanks!
Which file needs to be adressed if I want to take off a fieldset from the others Tab?

Would it be possible to use the start date for the end date automatically and only change then if necc.? If I choose a start date, automatically this date will appear in the end date?
And it is userfriendly, if the start and end 'minutes' show '00' to start with, which file do I need to override?
Thanks for your help!
I am not a professional Joomla user, but apparently I am very good at hinding that. I know some CSS, something about overrides, but please do not count on it ...
JEM 2.1.4 on Joomla 3.4.3

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

Hide fields on the add events page? 7 years 6 months ago #19491

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449

sf888 wrote: Would it be possible to use the start date for the end date automatically and only change then if necc.?

Yes, it is. Simply keep it empty. B)
The end date is only required for multiday events. If this field is empty the start date is automatically used together with end time (or 23:59:59 if no end time is given).
Pessimists are optimists with experience!
The following user(s) said Thank You: sf888

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

Hide fields on the add events page? 7 years 6 months ago #19492

Thank you.
How about the other questions asked?
I am not a professional Joomla user, but apparently I am very good at hinding that. I know some CSS, something about overrides, but please do not count on it ...
JEM 2.1.4 on Joomla 3.4.3

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

  • Page:
  • 1
  • 2
Time to create page: 0.387 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......