heliotrope,
thanks for the suggestion but I didn’t get it to work. I am not really clear on the use of TVs yet as I haven’t seen enough simple examples yet. I still have a lot to learn using MODx and am not able to debug any mistakes I may have made.
I know it is not the best scenario but I was able to get it to work in the following way (the way I had figured in the first place):
I created a Chunk called
homes_menu and then I created a Snippet called
show_homes_menu with the following code:
<?php
if ($modx->documentObject['id'] == '2'|$modx->documentObject['parent'] == '2')
{echo '{{homes_menu}}';}
else {echo '';}
?>
I then inserted [[show_homes_menu]] in my
place_subcontent chunk.
Part of my requirement was that I wanted to be able to have the menu in a common chunk instead of sticking it into the document or the document parent.
There may have been an easier way to do this and I also expect that I could take this one further and check the current id and if there was a menu associated with it, display it. It could be done with an array or some such.