Monday, 29 May 2017
  6 Replies
  1.1K Visits
0
Votes
Undo
Hi there :)

I just want to know how to checked by default the "noendtime" checkbox, didn't find where to add this status...because all of my events will be with no ending time.

Thanks !
Wednesday, 31 May 2017 09:58
·
#188965
Accepted Answer
1
Votes
Undo
Create a template override - templates/YOURTEMPLATE/html/com_jevents/icalevent/edit.php with this content


<?php
defined('_JEXEC') or die('Restricted access');

if ($this->row->title()==""){
// set no end time on by default
$this->row->noendtime(1);
}

// Reset the form
$this->setupEditForm();

include_once(JEV_PATH."/views/icalevent/tmpl/".basename(__FILE__));

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 01 June 2017 09:42
·
#189022
0
Votes
Undo
I've also added this as a default option under event editing for the next release of JEvents :-).


Good news :) thanks !
Thursday, 01 June 2017 09:40
·
#189021
0
Votes
Undo
I've also added this as a default option under event editing for the next release of JEvents :-).

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 31 May 2017 10:04
·
#188966
0
Votes
Undo
Create a template override - templates/YOURTEMPLATE/html/com_jevents/icalevent/edit.php with this content


<?php
defined('_JEXEC') or die('Restricted access');

if ($this->row->title()==""){
// set no end time on by default
$this->row->noendtime(1);
}

// Reset the form
$this->setupEditForm();

include_once(JEV_PATH."/views/icalevent/tmpl/".basename(__FILE__));


This is perfect !

Many thanks :)
Wednesday, 31 May 2017 09:58
·
#188965
Accepted Answer
1
Votes
Undo
Create a template override - templates/YOURTEMPLATE/html/com_jevents/icalevent/edit.php with this content


<?php
defined('_JEXEC') or die('Restricted access');

if ($this->row->title()==""){
// set no end time on by default
$this->row->noendtime(1);
}

// Reset the form
$this->setupEditForm();

include_once(JEV_PATH."/views/icalevent/tmpl/".basename(__FILE__));

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Monday, 29 May 2017 12:25
·
#188895
0
Votes
Undo
Hello,

I'm afraid this isn't an option at present.

Many thanks
Tony


Can i change the html page who generate the checkbox ? by adding

'checked="checked"'


For the moment i didn't find this page, i've checked in com_jevents/views but i only find this :

<div class='jevnoeendtime' style="margin:10px 0px 0px 0px ;display:inline-block;">
<?php echo $this->form->getLabel("noendtime"); ?>
<?php echo $this->form->getInput("noendtime"); ?>
</div>

in administrator/components/com_jevents/views/icalevent/tmpl/edit_datetime.php

and here there is nothing i can change to change the checkbox status.

thanks ;)
Monday, 29 May 2017 12:12
·
#188889
0
Votes
Undo
Hello,

I'm afraid this isn't an option at present.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.