Wednesday 24 February 2010 3:10:46 pm
I'm trying to make an embeddable table of contents. Here's what I've done: Created directories extension/ezwebin_custom/settings/siteaccess/ezwebin_site_clean_user
extension/ezwebin_custom/settings/siteaccess/ezwebin_site_clean_admin
added override.ini.append.php to both with this rule: <?php /* #?ini charset="utf-8"?
[tableofcontents]
Source=content/view/embed.tpl
MatchFile=embed/tableofcontents.tpl
Subdir=templates
Match[classification]=tableofcontents
*/
?>
Created embed/tableofcontents.tpl <div style="padding:1em;position:fixed;border:1px solid
blue;background-color:#aaa;width:200px;right:0; top:300px">
<h3>table of contents</h3>
{eztoc( $node.object.data_map.description )}
</div>
Created content.ini.append.php in extension/ezwebin_custom/settings/ with the following: <?php /* #?ini charset="utf-8"?
[embed]
AvailableClasses[]=tableofcontents
ClassDescription[tableofcontents]=Table
of Contents
*/ ?>
Now, I'm seeing the class in the embed dialogue. The div is showing with the heading, but $node or $node|attribute(show,2) or $module_result or anything else I can think of don't seem to produce any output. The embed templates included with ezwebin seem to use $node, so I must be missing something. Anybody got any ideas?
Paul Bolger
|