I have this website running on fuel, I have several opt-in controllers, i want them to carry individual page variables. Following what is here
http://docs.getfuelcms.com/general/opt-in-controllers, i did all but viewing the page in the browser shows this
[meta name="keywords" content="<!-html comment--__FUEL_MARKER__0-->companies, hiring now"]
[meta name="description" content="[<!-html comment--]__FUEL_MARKER__1-->Companies hiring on graduate career"]
[title] <!-html comment-__FUEL_MARKER__4-->Companies : My Website [/title]
I have rewritten the HTML code because the post editor converts it to html and they don't show.
Please how do i fix this.
Thanks for your regular support
Comments
If that doesn't work, are there any function calls or variables being embedded in your views, header or footer that may not be defined?
Secondly i have a list of name to be exported out of a database, i set the module to be exportable which does that right, Now i want a filter say, should only export people that registered between jan1-feb1
Will be looking forward to hear from you ASAP
Thanks for your regular support
$modules['my_module']['filters'] = array( 'registered_date_from' => array('type' => 'date'), 'registered_date_to' => array('type' => 'date') ); $modules['my_module']['advanced_search'] = TRUE;
Note that if you provide the suffixes on your field names of "_from", "_fromequal", "_to", "_toequal", "equal" it will use comparison operators (e.g. >, >=, <, <=, . Additionally, note the 'advanced_search' parameter.
This parameter will simply add a clickable arrow in the search field that tucks your filtering away and doesn't clutter up the UI.
Well i have tried the above code..only if am not placing it well,
'exportable' => TRUE,
'filter' => array('date_added' => array('type' => 'datetime'), 'date_added' => array('type' => 'datetime')),
'displayonly' => TRUE,
'advanced_search' => TRUE,
'filters' => array('date_added_from' => array('type' => 'datetime'), 'date_added_to' => array('type' => 'datetime')),
Please what do i do next
Thanks
In your model's list_items method, what does the filter property have when run:
public function list_items(....) { .... print_r($this->filters); }
Also, I wouldn't change the name of the field to date_added_from but just leave it as is.
For the search filter, yes and when i click on the image, it brings a dropdown and displays the following
Advanced Search
Search button Close Reset Search
No form to select anything from
this is what i get from print_r($this->filters);
Array
(
[firstname] =>
)
Array ( [firstname] => [date_added_from] => 2015-01-01 00:00:00 [date_added_to] => 2015-04-30 00:00:00 )
A bottle of bear for you
Thanks in advance