We've had need to redirect certain paths under certain conditions, such as:

  • Redirect user profile nodes to the /user/X page that owns the profile
  • Redirect Images in a gallery to their node referenced gallery.

We've made a simple page manager task handler that allows you to do this.

Should we start this as a separate project, or should this get included in the page_manager project in ctools?

CommentFileSizeAuthor
page-manager-redirect.patch20.18 KBsteven jones

Comments

steven jones’s picture

Going to create a contrib project for this as we've had no response.

merlinofchaos’s picture

Status: Active » Needs review

Sorry about the no response, it's been a busy month.

I am actually interested in considering this directly in CTools, I just haven't gotten to it in the mountain of things to do. Sorry for the slowness on my part.

(Setting 'needs review' since there is a patch attached)

steven jones’s picture

Project: Chaos Tool Suite (ctools) » Page manager redirect
Version: 6.x-1.x-dev »
Component: Page Manager » Code
Status: Needs review » Needs work
steven jones’s picture

Status: Needs work » Fixed

Comitted.

steven jones’s picture

Version: » 6.x-1.x-dev

@merlinofchaos - Didn't read your comment in time :( whoops.

We'll see how it fares in contrib on its own, but feel free to pull it back into ctools at some point. We're finding lots of uses for the module, and basically got fed up of it not being easy to add to a project!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

james.williams’s picture

Project: Page manager redirect » Chaos Tool Suite (ctools)
Status: Closed (fixed) » Needs review

The Page Manager Redirect project has been completed and been stable for a little while now as a standalone module (dependent on Page Manager). As merlinofchaos suggested above (http://drupal.org/node/820374#comment-3155188), we would like to propose that it could be included directly in ctools.

Page Manager Redirect is a nice and simple implementation of a task handler for Page Manager, with plenty of documentation, so it would serve as a good example of such a plugin (as opposed to Panels) should anyone want to write their own. It can serve as an easy start point for understanding Page Manager's power with selection rules and contexts without having to also understand the Panels concepts too.

Plus, it's also really useful! :-)

james.williams’s picture

... of course, since this was written before D7, I imagine we might need to make a few changes to make it work for D7 & any ctools API changes. Assuming this happens (I'm working on that today), can we get a consensus on whether Page Manager Redirect should be included in ctools?

steven jones’s picture

Title: URL redirect task handler » URL redirect task handler (page manager redirect)
james.williams’s picture

By the way, page_manager_redirect is working fine in Drupal 7. Any thoughts on inclusion in ctools yet...?

merlinofchaos’s picture

Status: Needs review » Fixed

Something like this has been committed for quite some itme, it's the HTTP Response Code handler. I had totally lost track of this issue when I did that or I would've just used this code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.