ARUA-SFS

Filter > Resources

Assigned to
Rohan Strydom Rohan S.
Due on
Notes
Build out the filter on the main Resources page using FacetWP
Include: 
  • All filters visible here
  • Reset button
  • Pagination (there's a FacetWP element for this)

Comments & Events

Robyn, Project Manager at Matogen Digital
note that keyword and topic need to be combined - the client has had a change of heart
"Sorry to request this at this late stage, but could we please combine the keyword and topic filters into one? It is very difficult to distinguish between these two and not very useful, I think."
Rohan Strydom
I’ve added it @robyn
Rohan Strydom
I think you are using an old template. Look at my screen. There are two problems.

1. Why is your page styled when mine is not? Are you working on a different branch?
2. The Start Date / End Date facet is old. It's been replaced. This tells me you are using old facets still.

I tested on my side, and with my code (which is the latest from the DEV branch) everything works as expected.
Robyn, Project Manager at Matogen Digital
Rohan Strydom Rohan  I dont work with facets or branches , I am just loading - what needs to change here for this to work and if we have incorrect and old templates they should be removed. Its massively confusing for the user and our people we hand over to are not technical - please advise 
Ian Parsons, Head Chef at Matogen Digital
Hi Rohan Strydom Rohan , which template should we use on Resources?

Also, please send me an export of all your facets, and I'll import on the staging site. 

I've also created an account for you on staging, and sent you a password reset.  
Rohan Strydom
Ian Parsons, Head Chef at Matogen Digital Ian here are my Facets

{"facets":[{"name":"categories","label":"Categories","type":"checkboxes","source":"tax/category","parent_term":"","hierarchical":"no","show_expanded":"no","ghosts":"no","preserve_ghosts":"no","operator":"and","orderby":"count","count":"10","soft_limit":"5"},{"name":"resources_keyword","label":"Resources Keyword","type":"search","search_engine":"","placeholder":"Keyword","auto_refresh":"yes"},{"name":"resources_topic","label":"Resources Topic","type":"dropdown","source":"tax/topic","label_any":"Topic","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"resources_impact_area","label":"Resources Impact Area","type":"dropdown","source":"tax/impact-area","label_any":"Impact Area","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"news","label":"News","type":"checkboxes","source":"post_type","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","show_expanded":"no","ghosts":"no","preserve_ghosts":"no","operator":"and","orderby":"count","count":"10","soft_limit":"5"},{"name":"news_keyword","label":"News keyword","type":"search","search_engine":"","placeholder":"Keyword","auto_refresh":"no"},{"name":"event_keyword","label":"Event keyword","type":"search","search_engine":"","placeholder":"Keyword","auto_refresh":"no"},{"name":"news_topic","label":"News topic","type":"dropdown","source":"tax/category","label_any":"Topic","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"event_topic","label":"Event topic","type":"dropdown","source":"tax/topic","label_any":"Topic","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"news_impact_areas","label":"News Impact areas","type":"dropdown","source":"tax/impact-area","label_any":"Impact Area","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"event_impact_areas","label":"Event Impact areas","type":"dropdown","source":"tax/impact-area","label_any":"Impact Area","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"news_country","label":"News Country","type":"dropdown","source":"acf/field_66839606be511","label_any":"Any","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"resources_country","label":"Resources Country","type":"dropdown","source":"cf/country","label_any":"Any","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"event_country","label":"Event Country","type":"dropdown","source":"cf/country","label_any":"Any","parent_term":"","modifier_type":"off","modifier_values":"","hierarchical":"no","orderby":"count","count":"10"},{"name":"resources_year","label":"Resources Year","type":"date_range","source":"acf/field_6662b1dd6ed4f","compare_type":"","fields":"both","format":"d/m/Y"},{"name":"resources_sort","label":"Resources Sort","type":"sort","default_label":"Sort by","sort_options":[{"label":"Title","name":"title","orderby":[{"key":"title","order":"ASC","type":"CHAR"}]},{"label":"Date","name":"date","orderby":[{"key":"date","order":"ASC","type":"CHAR"}]}]},{"name":"news_pager","label":"News Pager","type":"pager","pager_type":"numbers","inner_size":"2","dots_label":"…","prev_label":"« Prev","next_label":"Next »","count_text_plural":"[lower] - [upper] of [total] results","count_text_singular":"1 result","count_text_none":"No results","load_more_text":"Load more","loading_text":"Loading...","default_label":"Per page","per_page_options":"10, 25, 50, 100"}],"templates":[{"name":"blog_posts","label":"Blog posts","query":"","template":"","layout":{"items":[{"type":"row","items":[{"type":"col","items":[{"type":"item","source":"post_title","settings":{"link":{"type":"post","href":"","target":""},"prefix":"","suffix":"","border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-fz703r","css_class":"","is_hidden":""}}],"settings":{"border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-1tvcxf","css_class":""}}],"settings":{"grid_template_columns":"1fr","border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-8cjrpw","css_class":""}}],"settings":{"num_columns":1,"grid_gap":10,"border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-hkhimk","css_class":"","custom_css":""}},"query_obj":{"post_type":[{"label":"Posts","value":"post"}],"posts_per_page":10,"orderby":[{"key":"date","order":"DESC","type":"CHAR"}],"filters":[]},"modes":{"display":"visual","query":"visual"}},{"name":"new_template","label":"New Template","query":"","template":"","layout":{"items":[{"type":"row","items":[{"type":"col","items":[],"settings":{"border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-yy2ofb","css_class":""}}],"settings":{"grid_template_columns":"1fr","border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-iun1vn","css_class":""}}],"settings":{"num_columns":1,"grid_gap":10,"no_results_text":"","border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-7gdvrs","css_class":"","custom_css":""}},"query_obj":{"post_type":[],"posts_per_page":10,"orderby":[],"filters":[]},"modes":{"display":"visual","query":"visual"}}]}
Rohan Strydom
I see the problem.

You have Resources as one page, but in the design, which I used, there are child pages for resources. I created a template for the child pages, not for the main parent page.

We will need to decide which one is correct.
Ian Parsons, Head Chef at Matogen Digital
Ian Parsons completed this to-do.