Auto-enlazar palabras

Hi this is a wonderful feature for discourse but can we limit the number of times it appears overall in a single thread topic? If we have a discussion post asking shopify vs woocommerce then the entire thread will be occupied by the hyperlinks whenever someone mentions any of these. :frowning:

3 Me gusta

We can definitely add a theme setting for this, PR welcome. I think a default limit of 3 auto links per word makes sense as a good initial default.

5 Me gusta

This feature has already been discussed couple posts above…tl;dr probably not so easy to implement.

2 Me gusta

Is there any way to disable linkify in a specific category? In my case I have a blog category which contains content from a wordpress installation. Hence I don’t want linkify to be active there.

Sure, that shouldn’t be hard I think. I can have a look. If there’s more people intereted in this feature, I’ll submit a PR with a new theme settings. If not, I can just post a code snippet that you can include into your theme manually. I’ll try to have a look next week.

3 Me gusta

Hey @sam

are there any news on this? I tried to search if there are any plans to improve the management of “lists” in theme settings but could not find anything

This is already implemented. What you see in linkify settings IS the new list management. :slight_smile:

5 Me gusta

Thx for the note, that clarifies it :slight_smile:
That “new” list already a great improvement!

Yet for large lists it’s still a bit of a hassle
I think an import/export feature for a simple CSV would make make a huge improvement there
Or simply pointing to a CSV URL which is pulled let’s say every 24h. or by manually by clicking a button

1 me gusta

You can add Option to Only insert Once time in one topic or reply?

It show every keyword in topic.

If you want to have it only once per post, you can input your linked word as a regex, i.e.

/WORD/,URL

Having it only once per topic is non-trivial, see discussion above.

6 Me gusta

Thank you. It’s working now.

Quiero deshacerme de FA4, pero hasta ahora linkify depende de él. ¿Hay alguna forma de agregar un icono SVG delante del enlace?

Tenía una palabra autovinculada en Discourse, pero decidí eliminarla, ya que aparecía cada vez que se mencionaba Discourse, lo que generaba una sobrecarga de enlaces en un solo tema. A veces, los enlaces no relacionados son peores que no tener ningún enlace.

Sin embargo, tengo un buen caso de uso para este componente, por ejemplo, para autovincular números ISBN a una página de descripción del libro en inventaire.io:

/isbn:([0-9]{13})/,https://inventaire.io/entity/isbn:$1

5 Me gusta

¿A qué te refieres? El tema Linkify no depende de los iconos de FA.

Lo sé, pero estoy usando FA4 para agregar un icono al enlace de linkify. Con FA5 no tengo idea de cómo lograrlo.

¿Sería una mejora sencilla añadir un texto emergente para el enlace?

De modo que podríamos usar esto como entrada:
palabra clave, enlace, texto emergente

¿Quizás lo que buscas es el plugin abbrify?

No estoy muy seguro de cómo interactuarían entre sí; es posible que necesites hacer algunas pequeñas personalizaciones para que funcione. Puedo ayudarte con eso si lo necesitas.

4 Me gusta

Actualmente lo solucioné modificando el script con una línea adicional. Ahora adjunta la URL de destino como el título del enlace. Funciona muy bien.

4 Me gusta

Tengo una lista bastante larga de entradas en la configuración de linkify. ¿Existe alguna forma de exportar todo? Al hacer clic en el botón de exportar, solo se exporta la lista predeterminada.

Hola @jrgong

Puedes obtenerlo todo mediante una consulta del plugin Data Explorer :slight_smile:

5 Me gusta