HNY!
I remember I've read something somewhere in the forum about how to call an action with an url, but I can not find it... it might help me with the following.
In Page.php I have a function in the controller section, like so:
function showMensShirts() {
$whereStatement = "MenCat = 1 AND ShirtCat = 1";
return DataObject::get("Page", $whereStatement);
}
When I put a control block <% control showMensShirts %> in my template I can iterate over all pages where the mentioned variables are true, and then render whatever desired information. But I recall you can use "showMensShirts" in the url and as such call the function... but how would I use that in my template then? And how would I go about using more than one function in the same template?
Thanks,
- Ray.