Forums / Setup & design / Always link to main location of node?
Mark Marsiglio
Monday 15 December 2003 4:45:21 pm
I have several items that have alternate locations throughout my site. The problem is that if you click on an item that is in one of the alternate locations, the tree menu opens to that alternate location and it does not show the sub-tree items for that object.
Technically, the object has no sub-tree because it is an alternate, but if I could make the link point to the main location of the node rather than the alternate, this would not be a problem.
Is it possible to modify a link so that it points to the main location?
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Tore Skobba
Tuesday 16 December 2003 7:46:10 am
Hi
Sounds almost like a problem I had, I solved it by making templates overrides which fetched the main node children. Like this:
{let users=fetch(content,list,hash(parent_node_id,$node.main_node_id))}
{section name=usersList loop=$users} {node_view_gui view=inline content_node=$usersList:item} {/section}{/let}
Then with some controll statments within your tree menu template it might work?
Like: if (alternate_location=true) fetch main_node childrenelse fetch children
Then go through the list and print out name and links. CheersTore