I've been awake for a while I can't figure out how best to phrase my title.
So for example I have services.php which has "baking, cooking, frying, grilling" as individual pages.
Then I have a blog that has many many blog posts, each post having a "has='one' relation" to one of the services.
So, blog one can be related to baking, blog two related to frying, blog three related to baking again.
When I loop through the blog pages (<cms:pages 'blog.php'>) I wil end up with a blog-title and the service it's related to for each blog entry. Lets say the following example is what I get:
I'm looking for a way to cache the services from this loop so I only end up with one "frying" value of 3 and one "baking" value of 2,
Sorry for the lengthy explanation
So for example I have services.php which has "baking, cooking, frying, grilling" as individual pages.
Then I have a blog that has many many blog posts, each post having a "has='one' relation" to one of the services.
So, blog one can be related to baking, blog two related to frying, blog three related to baking again.
When I loop through the blog pages (<cms:pages 'blog.php'>) I wil end up with a blog-title and the service it's related to for each blog entry. Lets say the following example is what I get:
- Title: How to fry fish, Service: frying
- Title: How to bake fish, Service: baking
- Title: How to fry brisket, Service: frying
- Title: How to bake brisket, Service: baking
- Title: How to fry okra, Service: frying
I'm looking for a way to cache the services from this loop so I only end up with one "frying" value of 3 and one "baking" value of 2,
Sorry for the lengthy explanation