First off hi all and a very well done with Modx - great product u got there.
I am a user of the original etomite and found it to be the best, easiest and most simple cms package around. when i heard about them stopping development i was distraught. however i heard about the modx fork and i have been following its progress. The main difference i find with the two are the new feature called TV - i just cant get my head round it. i read one of the tutorials about using TVs to apply blocks of content to a page but i dont understand why u couldnt just use [[GetPage?id=11]] to the same effect??
so anyway, i thought the best way to learn was to try it out. so i thought i would try and make a TV for my menu which would allow u to select which link in the menu would be blanked out (given an active state) so that the user knwos wot page or within which area of the site they are in (kinda like a breadcrumb trail). this would be the html:
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
you can see that the id active and current are applied to the li and a element respectively. the css would then style the element to grey it out or to disable the mouseover effect or whatever. i then went about setting up my tv. i gave it a name of ’menu’ and set it to ’radio options’ and set the input value options to: Home Active Link==@CHUNK home||Blog Active Link==@CHUNK blog etc
and then each chunk would have the same html as above but with the id active and current in the corressponding place.
this method worked fine no problems, but then i thouht to myself wots the point of doing that? maybe i didnt use the TV properly i dont no thats why i am posting or maybe i am not meant to use a tv at all?? the problem with this is if i edit/add/delete an item from the menu i would have to change all the chunks which sort off takes away the centralisation benefit of using a cms.
so my next idea was to integrate the TV somehow with the menubuilder so that it would automaticall generate the menu hierarchy but with the ’you are here’ feature of the menu. and this is where i got stuck - i had no idea how to do this...
so i ask you kind, good people
- am i using tv correctly in the first place?
- should i have used another method?
- is it possible to fix my menu?
thank you for you time peeps - i know how valuable it is,
regards.