3063 Posts in 864 Topics by 646 members
| Go to End | ||
| Author | Topic: | 1799 Views |
-
Re: Sort products

6 May 2011 at 7:12am
that's probably because <% control Children %> returns a couple of Page class DataObjects, not Page_Controllers, meaning you have no access to methods in the children's controller. You could overcome this by creating a similar kind of method in the Page class itself. Feels a bit funny maybe, but ...
-
Re: Sort products

6 May 2011 at 10:15am
Thanks a lot, that helped.
I moved the functionpublic function getProductsList($num)
{
return $this->Products(Null, "Price,Title", Null, $num);}
to the CategoryPage Class, so now it can be accessed from the ProjectsHolder template.
It works and I guess i shouldn't have problems with it set up like that...
Thanks man
| 1799 Views | ||
| Go to Top |

