Tom Nixon writes: > ... > I need to have a > different bgcolor attribute on the td if we're already in that folder. Assuming, ids are unique, you can use: tal:attributes=" bgcolor python: here.getId() == folder.getId() and 'other bgcolor' or default; " Dieter