I have two different modules.
One containing
PHP Code:
$sql = "SELECT title_alias, id, sectionid, created, state";
$sql .= " FROM #__content ";
$sql .= "WHERE sectionid = 2 AND state = 1 ";
$sql .= "ORDER BY created ASC";
$database->setQuery($sql);
$database->query();
$events = $database->loadObjectList();
And one with
PHP Code:
d $sql = "SELECT * FROM #__content "
. "WHERE (created >= '$selected_date 00:00:00' AND created <= '$selected_date 23:59:59') "
. "AND (sectionid = 2) "
. "AND state='1'";
When I want them to look to another sectionid I have the edit them manualy by changing 'sectionid=2' into another value.
I prefer the way an administrator can do : changing the parameter in the modules section as an administrator.
What do I have to change?
I looked into a view tut's but couldn't find anything that helped me.
_X_