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

Create Options to Enable/Disable Certain Parts of Street Address in Tooltip #1

Open
mike-weiner opened this issue Mar 4, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mike-weiner
Copy link
Owner

mike-weiner commented Mar 4, 2021

Is your feature request related to a problem? Please describe.
A user has requested the ability to only display parts of the street address in the tooltip instead of the entire street address. For example, the user only wants to display the city name instead of the street number, city, state, zip code, and country inside of the tooltip.

Describe the solution you'd like.
On the Display Event Location for The Events Calendar settings page, there should be a checkbox for each of the elements of the full address:

  1. Address
  2. City
  3. State
  4. Zip Code
  5. Country

This would allow for individual enabling or disabling of certain parts of the address when the address is enabled to be displayed within the tooltip.

These checkboxes would be displayed underneath the Show Full Venue Address Inside Tooltip checkbox this is currently present and they would only be enabled if the Show Full Venue Address Inside Tooltip was checked.

Describe alternatives you've considered.
One short-term solution would be to disable showing the full street address within the tooltip and change your venue/location name to include the name of the city. For example, if your venue was "The National Mall" you could disable the address inside of the tooltip and change your venue name to "The National Mall in Washington, D.C."

Additional Context:
To accomplish this feature the following need to be accomplished:

  • New settings will need to be registered for controlling these elements within the tooltip: address, city, state, zip code, and country
  • Default values will need to be established for the new settings
  • Validation for the newly established settings
  • Callbacks for the settings page will need to be created for the new settings
  • The settings page will need to be updated to include checkboxes for the new settings and make sure they are only enabled when the Show Full Venue Address Inside Tooltip checkbox is checked
  • The new settings will need to be included in removal upon deletion of the plugin from a WordPress installation
  • The tooltip template override for The Events Calendar System will need to be updated to handle the new settings to only display what is enabled by the user

Thank you for your interest and dedication to make our project better together!

@mike-weiner mike-weiner added the enhancement New feature or request label Mar 4, 2021
@mike-weiner mike-weiner self-assigned this Mar 4, 2021
@mike-weiner mike-weiner added the help wanted Extra attention is needed label Mar 4, 2021
@mike-weiner
Copy link
Owner Author

If anyone would like to contribute work to this feature, that would be great. There is no immediate plan to implement this feature until it is more widely requested.

@mike-weiner mike-weiner pinned this issue Mar 4, 2021
@mike-weiner mike-weiner changed the title [FR]: Creation Options to Enable/Disable Certain Parts of Street Address in Tooltip Creation Options to Enable/Disable Certain Parts of Street Address in Tooltip Dec 19, 2021
@mike-weiner mike-weiner unpinned this issue Dec 19, 2021
@mike-weiner mike-weiner changed the title Creation Options to Enable/Disable Certain Parts of Street Address in Tooltip Create Options to Enable/Disable Certain Parts of Street Address in Tooltip Jan 22, 2022
@mike-weiner mike-weiner removed their assignment Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

1 participant