I must admit I don't understand the concept of TV's completely so maybe it's possible with them but so far I didn't manage to do this. Otherwise it's another entry from me to the wishlist
I'd like to have a possibility to pass parameters from the content itself to the template to be able to modify the template slightly.
I know I can apply a different template to each page, but as I need only to make really minor modifications (ie. exchange 1 gfx and 1 link) this would totally be an overkill as this would require me too much nearly-the-same templates just for this. I thought about different solutions to my problem, but the easiest one would be if I could pass some value to the php code of the template.
I don't know anything about the eto rendering internals but I guess technically it wont be too hard to scan the content for specific delimiters ([# #] { } etc. ) and parse them before any code from the template is executed!?
Example:
1. content page
[#set var='val1'#]
content text
2. template
<?php
if (! $var) { $var='defaultval'; }
if $var='val1' { echo "1"; } elseif $var='val2' { echo "2"; }
?>