Let's say I'd like to have a template for a page that links back to a filter result, in a way that would allow anyone with page permission or page link to see a formatted result of the filter with only selected information, without ever having to actually go into the nation.
In other words, how would I link to each signup in a given filter when using a for loop in a template? Is there a way to link to a filter token? To link to a given list?
Thanks!
It sounds like you want to display some information about people in your database on a public page. You'll want to use a directory page to display everyone with a given tag. You can make sure everyone in a filter has that tag by saving the filter and adding the tag automatically to all who meet its criteria.
Showing 4 reactions
Sign in with
This allows me to create custom private pages for new volunteers I might not know very well. Instead of giving them access the the backend even in a limited fashion, I can simply send a link to a directory page that shows contact info for users who might need a call for one reason or another, as well as an embedded form.
By adding something as simple as the following in the directory template:
<div class=“padtop”>
{% for signup in page.directory.listings }
<div class="people-list { cycle ‘odd’, ‘even’ }">
{ include “signup_show” }
{ if signup.has_mobile? } Mobile phone: {{ signup.mobile_number }}
{ else } Phone: {{ signup.phone }}
{ endif %}
</div>
I can create quick and dirty pages for volunteers to call from. So within a few minutes, they’ll be calling a list that’s updated as they call by adding a “last contacted” option on my filter.
Useful stuff! </div>