Monday 05 April 2010 8:03:37 am
I'm interested in how others fetch specific nodes in the template. We currently have a custom ini that has an array like this:
[SpecificNodeIds]
Recipes=1355
RecipesTopRated=4674
Courses=1965 Meals=1945 Then when we want to fetch the node for a link in the template we do something like this: {def $recipeNode = fetch( content, node, hash( node_id, ezini('SpecificNodeIds','Recipes','hal.ini')))} The problem is that we have different node ids on each environment we work with or if an editor removes a node and recreates it then our ini is out of sync. How do you handle these types of fetches? how can we make this more dynamic? fetch path? Any tips, suggestions or links are appreciated.
Thanks, Hal Gatewood
|