List and Detail View
Posted: Mon Aug 16, 2010 4:16 pm
I am trying to set up a "list" and "detail" system for a module I'm writing, and I'm not sure how to handle this.
I have a list of projects, and for each project, there should be a link to a details page for that project.
The project list has code to generate a link:
$list[$i]['imgallery'] = $this->CreateLink($id, 'details', $returnid, "Details", array('project_id'=> $row['id']));
I insert the resulting link into the template file, and it shows up, but when you click the link, it keeps loading the "listing" view. The page that launches this view has the following tag:
{cms_module module="Project"}
I have a list of projects, and for each project, there should be a link to a details page for that project.
The project list has code to generate a link:
$list[$i]['imgallery'] = $this->CreateLink($id, 'details', $returnid, "Details", array('project_id'=> $row['id']));
I insert the resulting link into the template file, and it shows up, but when you click the link, it keeps loading the "listing" view. The page that launches this view has the following tag:
{cms_module module="Project"}