Friday 08 October 2004 5:10:30 am
Hi, How to get the section name of node?
I want to override my template for folder class with my own (showing the search result). And I want to present:
1. Publish date
2. Folder name 3. Section name of specifed folder I have got following code:
<th>{$node.object.published|l10n(shortdate)}</th>
<th><a href={$node.url_alias|ezurl}>{attribute_view_gui attribute=$node.object.data_map.name}</a></th>
<th>{$node.object.section_name|wash}</th>
Analogical to default I have changed the {$node.object.class_name|wash} to {$node.object.section_name|wash}. But it does not work. Published date and folder name works fine, but as I said section name is missing.
UPDATE:
I have found the section ID: {$node.object.section_id}. So how to get the section name having a saction ID in template? Thanks for help.
|