By Guest on Monday, 29 May 2017
Replies 6
Likes 2
Views 1.2K
Votes 0
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 !
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__));
·
Wednesday, 31 May 2017 09:58
·
2 Likes
·
1 Votes
·
0 Comments
·
Hello,

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

Many thanks
Tony
·
Monday, 29 May 2017 12:12
·
2 Likes
·
0 Votes
·
0 Comments
·
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:25
·
2 Likes
·
0 Votes
·
0 Comments
·
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 10:04
·
2 Likes
·
0 Votes
·
0 Comments
·
I've also added this as a default option under event editing for the next release of JEvents :-).
·
Thursday, 01 June 2017 09:40
·
2 Likes
·
0 Votes
·
0 Comments
·
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:42
·
2 Likes
·
0 Votes
·
0 Comments
·
View Full Post