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

Backpex.Field.URL: add option to configure anchor text #321

Open
3 tasks
pehbehbeh opened this issue Jun 14, 2024 · 0 comments
Open
3 tasks

Backpex.Field.URL: add option to configure anchor text #321

pehbehbeh opened this issue Jun 14, 2024 · 0 comments
Labels
good-first-issue Ideal for new contributors. Simple, well-defined tasks to help you get started.

Comments

@pehbehbeh
Copy link
Member

pehbehbeh commented Jun 14, 2024

You should be able to determine the text of the anchor that is displayed on index/show view via a configuration value. Currently, the URL is used as the anchor text.

Todos

  • Add new field option to config_schema (include documentation)
    • Allow a function to be passed as an option that at least receives the assigns
  • Determine label in render_value, show URL by default (if no configuration is provided)
@pehbehbeh pehbehbeh changed the title Backpex.Field.URL: configurable label Backpex.Field.URL: configurable anchor text Jun 14, 2024
@pehbehbeh pehbehbeh moved this to Specification in Backpex Development Jun 14, 2024
@pehbehbeh pehbehbeh added the feature New feature label Jun 14, 2024
@Flo0807 Flo0807 changed the title Backpex.Field.URL: configurable anchor text Backpex.Field.URL: add option to configure anchor text Feb 15, 2025
@Flo0807 Flo0807 added good-first-issue Ideal for new contributors. Simple, well-defined tasks to help you get started. and removed feature New feature labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Ideal for new contributors. Simple, well-defined tasks to help you get started.
Projects
None yet
Development

No branches or pull requests

2 participants