Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags: clickable tag to create a list/filter #863

Closed
mikeallbutt opened this issue Dec 9, 2019 · 2 comments · Fixed by #1297
Closed

Tags: clickable tag to create a list/filter #863

mikeallbutt opened this issue Dec 9, 2019 · 2 comments · Fixed by #1297
Assignees
Labels
enhancement To build upon or add functionality to an existing feature help wanted

Comments

@mikeallbutt
Copy link
Contributor

Have a tag (that is in the tags field of the other tile of a contact) be clickable so that when clicked, it creates a list/filter of contacts or groups that have that tag.

@corsacca corsacca added the suggestion Suggestion for a feature or configuration label Dec 9, 2019
@corsacca corsacca added this to To Do in Groups and Contacts via automation Dec 9, 2019
@corsacca corsacca added enhancement To build upon or add functionality to an existing feature help wanted and removed suggestion Suggestion for a feature or configuration labels Apr 12, 2021
@corsacca
Copy link
Member

This one requires the list to accept query parameters.
Ex
dt.com/contacts/?tags=awesome_tag
dt.com/contacts/?assigned_to=4&overall_status=active
etc

@squigglybob
Copy link
Collaborator

Hi I can take this one @corsacca

Groups and Contacts automation moved this from To Do to Done Apr 20, 2021
corsacca pushed a commit that referenced this issue Apr 20, 2021
…1297)

* feat: allow query parameters on archive pages

* docs: add doc string to dt_get_post_type function

* feat: use filter query param to create custom filters

* fix: revert  back to how it was to fix wrong js file error

* fix: correctly load list scripts when query param is present

* feat: create clickable tags to filter record by this tag

* feat: add custom name to dynamic custom query

* enqueue-scripts.php, use dt_get_post_type() to get current post_type from the url.

* feat: remove filterName query option; change filterLabel to fieldQuery;

* fix: use encodeURIComponent to properly escape json for uri

& + and many other chars aren't escaped by encodeURI as it deals with encoding a full URI without breaking it for GET and POST requests which need & to be kept
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement To build upon or add functionality to an existing feature help wanted
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants