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

URLs in item description field are unclickable text #66

Open
damascene opened this issue Jan 28, 2023 · 1 comment
Open

URLs in item description field are unclickable text #66

damascene opened this issue Jan 28, 2023 · 1 comment

Comments

@damascene
Copy link
Contributor

When I post a URL in my item description field it just appear as an unclickable text. Would be useful to have them as clickable links, maybe with non indexing flag?

Possibly make this as an option in the Admin page

@damascene
Copy link
Contributor Author

I was able to modify it by adding urlize to line 55 in item_detail.html template:

        {{ object.description|linebreaks }}

to

        {{ object.description|linebreaks|urlize }}

https://github.com/slyapustin/django-classified/blob/master/django_classified/templates/django_classified/item_detail.html#L55

But not sure how to make it an option in Admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant