Recent searches
No recent searches
Hide requests on "My store requests" page depending on ticket type
Posted Oct 18, 2023
Hi ZD community,
Hoping for some urgent assistance.
Very high level, we want tickets submitted via certain forms and forwarded into Zendesk from specific email addresses to not appear in the ‘My store requests’ menu on our Help Center page. For context, we have two menu's for users; 'My requests' which shows a users requests, and 'My store requests' which shows their organisations requests:
I found this community post where a community member suggested the below code solution:
However I cannot get it to work correctly for us. Where do we place the closing {{/isn't}} in the following code:
<tbody>
{{#each requests}}
{{#isnt type 'question'}}{{/isnt}}
<tr {{#is status 'closed'}} class="request-closed" {{/is}}>
<td class="request-info requests-table-info">
<a href="{{url}}" class="striped-list-title" title="{{subject}}">
{{#if subject}}
{{subject}}
{{else}}
{{excerpt description characters=50}}
{{/if}}
</a>
<!-- Visible on mobile -->
<div class="requests-table-meta meta-group">
<span class="meta-data">#{{id}}</span>
<span class="meta-data">{{date created_at timeago=true}}</span>
<span class="status-label status-label-{{status}}" title="{{status_description}}">
{{status_name}}
</span>
</div>
</td>
<td>#{{id}}</td>
<td>
{{#is ../current_filter.identifier 'my'}}
{{date created_at timeago=true}}
{{else}}
{{requester.name}}
{{/is}}
</td>
<td>{{date updated_at timeago=true}}</td>
<td class="requests-table-status">
<span class="status-label status-label-{{status}}" title="{{status_description}}">
{{status_name}}
</span>
</td>
</tr>
{{/each}}
</tbody>
</table>
{{/if}}
</div>
1
2
2 comments
Casey
Or if anyone can suggest a better solution I am very open to hearing it!
0
Ned Petrov
Hi Casey,
The closing #isnt tag should go before the closing #each tag:
I don't think this will work for you though. The same code is usually used for both tabs - Personal and Org requests.
0