Monday 12 March 2007 8:53:01 am
Hi.
As described in the Title I have the need to create a personalized template for a single folder in a single node of the content tree.
Specifically I have to add a "create new object" button for the single (and only) folder. I try in this way:
1. I enter as admin in the admin interface
2. click on Modify button of the selected folder in the content tree view
3. click on the folder Icon and, in the new menu, select "new node override template" 4. then select the <FrontEnd Site access>
At this point a new window is open in the template folder. I add:
5. the name of the new template
6. select the override key: folder
7. All sections
8. IDnode left as indicated 9. select Template based on View without childer Then I open the new template and it is right this:
<h1>{$node.name}</h1>
<h2>Name</h2>
{attribute_view_gui attribute=$node.object.data_map.name}
<h2>Short name</h2>
{attribute_view_gui attribute=$node.object.data_map.short_name}
<h2>Summary</h2>
{attribute_view_gui attribute=$node.object.data_map.short_description}
<h2>Description</h2>
{attribute_view_gui attribute=$node.object.data_map.description}
<h2>Show children</h2>
{attribute_view_gui attribute=$node.object.data_map.show_children}
Finally I add the code (as indicated in "Ez publish basics" page 149)
<form method="post" action={'/content/action' |ezurl}>
<input type="submit" name="NewButton" value="Inizia Questionario" />
<input type="hidden" name="ClassID" value="37" />
<input type="hidden" name="NodeID" value="158" />
</form>
Then I clear all cache and reload the page. But nothing happens. Someone have any idea where is the error?
|