Search

A new Extension, “Shrimp” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Lets you set intelligent per-section redirection rules from short URLs.

Say, for example, you had a section News Articles and an entry in that section with the ID 478. Shrimp would allow you to redirect a user to the true URL from a short canonical URL. Thus http://blah.com/s/478/ could redirect something like http://blah.com/news/view/title-of-news-article-478/.

It works in a similar way to Rowan’s Email Template Filter in that it lets you attach and resolve datasource for use in constructing your URLs via XPath.

Check it out on Github.

You’re making me hungry! Nice addition for twits.

Awe. Some.

Ah! I had made notes to do this very thing. Thanks for beating me to it!

Looks like I’ll be implementing shorturls tonight.

In fact does it support Short URL Auto-Discovery as briandrum refers to. or was it inspired by it?
Has anyone read about similar systems on a more abstract xhtml level good developers should all adapt in their CMSes, portals, websites?…

I’m a bit confused as to what to put in the redirect field, anyone got an example?

I think the entry ID

You can put whatever XPATH expression you want in the redirect field.

In my test suite I have a section called “Articles” and the URL to view a single article has the structure:

http://root.com/articles/title-handle-goes-here

I’ve created a datasource called “Single Article” and so the redirect rule is:

{$root}/articles/{single-article/entry/title/@handle}/

Which, for an article named “Introduction to Shrimp Redirection”, points the user to http://root.com/articles/introduction-to-shrimp-redirection/.

Thanks for the help Makenosound, this is perfect for the site I’m working on as the client wants to link things in Twitter.

Shrimp updated to version 1.0.1 on 24th of August 2010

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details