Hi there ...
I’m about to start building my second site using MODx (095) but there’s one feature that the client would like that I can’t quite figure out how to achieve. On the homepage there will be an area with a small box showing the top 3 latest news headlines and another showing 3 random job vacancies. Each of these boxes will be a <div>.
The client would like the ability to be able to hide either of these boxes at any time and to replace it with a simple box with just copy. Can anyone help with a suggestion as to how this might be achievable? I think that TVs might be able to do this but I’m not sure ...
Many thanks
Hi,
you can easily do it with modx.
Create a tv type=>listboxmultiple or checkbox
options values => latest News=={{latestNews}}||latest Jobs=={{latestJobs}}||simpleBox==@DOCUMENT ID_of_your_doc
In {{latestNews}} your ditto call
and so on ...
That way your client will be able to activate the items to display
Adding @INHERIT to the default value in tv settings will propagate the client choice to the childrens of the document.
The only limit is that you cannot change the order of items.
:-)