New module tutorial
Posted: Fri Nov 13, 2015 4:34 pm
So, first of all, huge thanks to Calguy and everyone involved in the production of the
new module writing tutorial.
I'm sure it will be fantastically useful to everyone who wants to develop modules and I've been using it already.
I have come across my first bug in it though - so do we have a preferred way of feeding back issues?
Is there a bug tracker or should we just post any feedback in the forum?
Assuming the latter, I reckon the lines for adding words to the search module on page 39
have an incorrect variable $module and should begin
Well done everyone though - it's definitely a great document and much appreciated.
s.
new module writing tutorial.
I'm sure it will be fantastically useful to everyone who wants to develop modules and I've been using it already.
I have come across my first bug in it though - so do we have a preferred way of feeding back issues?
Is there a bug tracker or should we just post any feedback in the forum?
Assuming the latter, I reckon the lines for adding words to the search module on page 39
Code: Select all
$search = \cms_utils::get_search_module();
if( is_object($module) ) {
if( !$holiday->published ) {
$search->DeleteWords($this->GetName(), $holiday->id, 'holiday');
} else {
$search->AddWords($this->GetName(), $holiday->id, 'holiday', $holiday->name.'
'.strip_tags($holiday->description));
}
}
Code: Select all
$search = \cms_utils::get_search_module();
if( is_object($search) ) {
....
s.