Number elements in folder

Author Message

Jonathan Clavier

Wednesday 27 April 2011 8:06:09 am

Hello,
I would like to limit the number of elements in a folder.
In fact, I would like in the backend, we can put in only 3 items in a folder.
Have you any idea?

Gaetano Giunta

Wednesday 27 April 2011 10:05:34 am

A good candidate for a workflow event, I'd say. Make it generic enough, and contribute it to the ezpublish_workflow_collection extension ;-)

Principal Consultant International Business
Member of the Community Project Board

Jonathan Clavier

Thursday 28 April 2011 2:46:11 am

Yes probably, but is there a quick and efficient to do this already exists?
Thank you in advance.

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 18 2025 10:31:32
Script start
Timing: Jan 18 2025 10:31:32
Module start 'layout'
Timing: Jan 18 2025 10:31:32
Module start 'content'
Timing: Jan 18 2025 10:31:32
Module end 'content'
Timing: Jan 18 2025 10:31:32
Script end

Main resources:

Total runtime0.0271 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.0135 587.9141152.6250
Module start 'layout' 0.01350.0055 740.539139.4531
Module start 'content' 0.01900.0056 779.992289.3359
Module end 'content' 0.02460.0025 869.328130.2891
Script end 0.0271  899.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003512.9677140.0003
Check MTime0.00145.1759140.0001
Mysql Total
Database connection0.00207.219310.0020
Mysqli_queries0.005821.367330.0019
Looping result0.00000.143110.0000
Template Total0.00196.810.0019
Template load0.00093.359810.0009
Template processing0.00093.466110.0009
Override
Cache load0.00062.368410.0006
General
dbfile0.00051.706380.0001
String conversion0.00000.058840.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