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!

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!

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 ;)
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!

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 :)
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!

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 !
  • Page :
  • 1
There are no replies made for this post yet.