Auto-Linkify Words

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개의 좋아요

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개의 좋아요

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

2개의 좋아요

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개의 좋아요

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개의 좋아요

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개의 좋아요

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개의 좋아요

Thank you. It’s working now.

FA4를 제거하고 싶은데, 아직 linkify가 FA4에 의존하고 있습니다.
링크 앞에 SVG 아이콘을 추가하는 방법이 있을까요?

Discourse에서 자동 링크 변환(autolink)이 적용된 단어가 하나 있었는데, Discourse가 언급될 때마다 매번 링크가 생성되어 하나의 주제 안에서 링크가 과도하게 쌓이는 문제가 있어서 제거하기로 했습니다. 때로는 관련 없는 링크가 링크가 없는 것보다 더 나쁜 경우도 있습니다.

다만 이 컴포넌트에 좋은 사용 사례가 하나 있습니다. 예를 들어, ISBN 번호를 inventaire.io의 책 설명 페이지로 자동 링크하는 것입니다:

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

5개의 좋아요

무슨 뜻이신가요? Linkify 테마는 FA 아이콘에 의존하지 않습니다.

알고 있어요. 근데 저는 FA4를 사용해서 링크파이에 링크에 아이콘을 추가하고 있어요. FA5에서는 어떻게 하면 되는지 모르겠어요.

링크에 툴팁을 추가하는 것이 쉬운 개선 사항일까요?

다음과 같은 형식으로 입력할 수 있도록 하면 좋겠습니다:
keyword, link, tooltip

혹시 abbrify 플러그인이 필요하신 건가요?

두 플러그인이 어떻게 상호작용하는지 정확히 파악하기 어렵습니다. 정상 작동하려면 약간의 커스터마이징이 필요할 수 있으며, 필요하시면 도와드리겠습니다.

4개의 좋아요

현재 스크립트에 한 줄을 추가하여 수정한 후 해결했습니다. 이제 대상 URL이 링크 제목으로 붙습니다. 정말 잘 작동합니다.

4개의 좋아요

링크라이파이(linkify) 설정에 항목이 꽤 많습니다. 전체를 내보내는 방법이 있을까요? 내보내기 버튼을 눌러도 기본 목록만 내보내집니다.

안녕하세요 @jrgong

Data Explorer 플러그인 쿼리로 모두 가져올 수 있습니다 :slight_smile:

5개의 좋아요