Imagine three countries:
germany
italy
spain
with some cities
on one page i want to show:
germany
all subcats
italy
all subcats
spain
all subcats
I have no problem to do this, but i do it with three globals like
...
all cats with fatherID = 'ID of cat italy
...
It is no big story, but maybe someday i want to have 50 countries, then it would be really nice to say in the template something like:
<%list_of_subcats(n)%>
while n is the FatherID.
I have no idea how to do this and hope for help.
germany
italy
spain
with some cities
on one page i want to show:
germany
all subcats
italy
all subcats
spain
all subcats
I have no problem to do this, but i do it with three globals like
...
all cats with fatherID = 'ID of cat italy
...
It is no big story, but maybe someday i want to have 50 countries, then it would be really nice to say in the template something like:
<%list_of_subcats(n)%>
while n is the FatherID.
I have no idea how to do this and hope for help.