Forums / Setup & design / Problems with workflows

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