Forums / Developer / embedding a toc template / Comment57388
paul bolger
Saturday 27 February 2010 11:58:07 pm
Looks like I'm replying to my own question. The only way I've found to what I needed was to use a 'universal variable'
So
{eztoc( $#node.object.data_map.description )}
works. Thanks to the chap with the Russian sounding name... (can't find the post again!) for the tip.
Also: I read that this isn't used much any more. If anyone has a better way of doing it I'd be interested to hear.
BTW: I ended up using a custom tag rather than an embedded object. A custom tag is slightly easier for the user, but an embedded object would allow you to insert a toc for a page other than the current one - which may be handy in some situations.
Paul Bolger