Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-02-08 22:12:41

SteveG
New Member
Registered: 2020-08-04
Posts: 7

How can I make an article title link to a URL of my choosing?

Does Textpattern support function or have a plugin similar to this ?

If not, how to make it happen?

Offline

#2 2021-02-08 23:05:42

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,090
Website

Re: How can I make an article title link to a URL of my choosing?

There’s no core provision for custom redirects but there are plugins:

  • gbp_permanent_links (was the big daddy, but not recommended any more as it’s not been updated in a while).
  • arc_redirect (straight URL redirects).
  • smd_redirect (with regexes and drag/drop ordering of rules).

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2021-02-09 00:39:12

SteveG
New Member
Registered: 2020-08-04
Posts: 7

Re: How can I make an article title link to a URL of my choosing?

Bloke wrote #328655:

There’s no core provision for custom redirects but there are plugins:

  • gbp_permanent_links (was the big daddy, but not recommended any more as it’s not been updated in a while).
  • arc_redirect (straight URL redirects).
  • smd_redirect (with regexes and drag/drop ordering of rules).


For smd_redirect, is that possible to redirect the URL to another site?
For arc_redirect, is that possible to redirect the URL even it’s not delivering a 404?

Offline

#4 2021-02-09 01:25:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,090
Website

Re: How can I make an article title link to a URL of my choosing?

SteveG wrote #328656:

For smd_redirect, is that possible to redirect the URL to another site?

Absolutely:

Source: ^/articles/your-article-url-title$
Destination: https://example.org/some/other/content-here

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2021-02-09 01:45:58

SteveG
New Member
Registered: 2020-08-04
Posts: 7

Re: How can I make an article title link to a URL of my choosing?

Bloke wrote #328657:

Absolutely:

Source: ^/articles/your-article-url-title$...

Work as intended! Thanks a lot!

Offline

Board footer

Powered by FluxBB