Problems with workflows

Author Message

paul stephen mccarthy

Wednesday 29 June 2005 2:14:50 am

Hi I am having a real problem with the template named event_ezapprove.tpl within the workflow section on the admin site.

We have a subscription section which allows people to login and subscribe to different sections of the site.

We are due to add another 200 subscribers to the news section of our site.

The problem being that when I go into the workflow section all the subscribers are listed within the users who can approve pane.

I want to detect what group a user belongs to.

the event_ezapprove.tpl code I need to ammend is as follows.

{* User who functions as approver *}
<div class="element">
    <label>{'User who approves content'|i18n( 'design/admin/workflow/eventtype/edit' )}:</label>
    <select name="WorkflowEvent_event_ezapprove_editor_{$event.id}[]" size="5">
    {section var=Users loop=$event.workflow_type.users}
	
	<option value="{$Users.item.value}"{section show=$event.selected_users|contains( $Users.item.value )} selected="selected"{/section}>{$Users.item.name|wash}</option>
    {/section}
    </select>
</div>

 

I thought that I might get away with something along the lines of checking.

$Users.item.parent

to get the users containing group. If this was a subscription user group then I would omit it.

Sadly this is not the case.

Please help as I am on my holidays next week and it would be great not to have to worry about this!!

Thanks in advance

Paul

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 19 2025 13:53:46
Script start
Timing: Jan 19 2025 13:53:46
Module start 'layout'
Timing: Jan 19 2025 13:53:46
Module start 'content'
Timing: Jan 19 2025 13:53:47
Module end 'content'
Timing: Jan 19 2025 13:53:47
Script end

Main resources:

Total runtime1.1375 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.1484152.6250
Module start 'layout' 0.00580.0041 741.773439.4453
Module start 'content' 0.00991.1264 781.2188407.4922
Module end 'content' 1.13630.0012 1,188.71098.1719
Script end 1.1374  1,196.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2825160.0002
Check MTime0.00130.1131160.0001
Mysql Total
Database connection0.00080.073310.0008
Mysqli_queries1.097896.5159460.0239
Looping result0.00040.0358440.0000
Template Total1.100796.820.5504
Template load0.00180.157220.0009
Template processing1.098996.609520.5495
Template load and register function0.00010.009410.0001
states
state_id_array0.00150.134910.0015
state_identifier_array0.00110.097020.0006
Override
Cache load0.00140.1263180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047110.0005
Fetch class attribute name0.00050.047210.0005
XML
Image XML parsing0.00010.008510.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00340.2975100.0003
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs