custom folder

Author Message

Kristofer Pettersson

Thursday 09 February 2006 7:45:30 am

I just created a custom folder (checked the "is container" attribute). As a template I used the folder default template. This template contains the following code:

{section show=$node.object.can_create}^M
                <form action={"/content/action"|ezurl} method="post" name="create">^M
                        <input type="hidden" name="NodeID" value="{$node.node_id}" />^M
                                <select name="ClassID" class="perspectives">^M
                        {section name=Classes loop=$node.object.can_create_class_list}^M
                                <option value="{$:item.id}">{$:item.name|wash}</option>^M
                        {/section}^M
                                </select>^M
                        <input type="hidden" name="NewButton" value="" />^M
 {/section}

Obviously my custom folder does not have the attribute can_create and thus I can't get a list of options which allow me to create new content in this folder. Where do I configure these attributes for custom (or even default) folders?

Regards,
Kristofer

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:21:31
Script start
Timing: Jan 31 2025 06:21:31
Module start 'layout'
Timing: Jan 31 2025 06:21:31
Module start 'content'
Timing: Jan 31 2025 06:21:31
Module end 'content'
Timing: Jan 31 2025 06:21:31
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0078151.1953
Module start 'layout' 0.00540.0026 739.203136.6016
Module start 'content' 0.00810.0045 775.804786.1250
Module end 'content' 0.01260.0012 861.929729.9922
Script end 0.0137  891.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.0327140.0002
Check MTime0.00107.5178140.0001
Mysql Total
Database connection0.00074.890010.0007
Mysqli_queries0.002619.043830.0009
Looping result0.00000.086610.0000
Template Total0.00096.410.0009
Template load0.00074.730610.0007
Template processing0.00021.664610.0002
Override
Cache load0.00043.246110.0004
General
dbfile0.00117.978580.0001
String conversion0.00000.052040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs