Great support early thanks! Got another query that I can't seem to find the answer to. In my layout (master) template I want to display the latest new items in the footer. Here is what I am trying to do (using MVC now rather than macros)
If you change Children to Decendants then it should work however it would be more effecient to find the parent news node first, does it have a unique document type alias?
Get Document Type values in Layout Template
Hi again,
Great support early thanks! Got another query that I can't seem to find the answer to. In my layout (master) template I want to display the latest new items in the footer. Here is what I am trying to do (using MVC now rather than macros)
Any pointers appreciated. Thanks.
Hi Chris,
If you change Children to Decendants then it should work however it would be more effecient to find the parent news node first, does it have a unique document type alias?
Jeavon
Thanks Jeavon. Yes it has the documenttypealias of 'umbNewsItemDT'. How might I go about doing that?
Chris
Ok, in that case I think you almost have it, try this
Getting the error
Compiler Error Message: CS0446: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'?
Managed to sort it I think using
Ah ok, you're using the dynamic CurrentPage model, then this is probably what your after
is working on a reply...