I'm trying to create rule using the rules module to solve this problem here. In essence what I want to say is:
"If the page I'm about to view is of a certain type then redirect me to a different URL"
Now I've tried doing this with the following rules:
- Event: Node > Content is going to be viewed
- Condition: Path has alias(es) of "story/*" and "page_feature/*"
- Do: A page redirect
This seems to do nothing and I've tried:
- Event: System > User is going to view a page
- Condition: Path has alias(es) of "story/*" and "page_feature/*"
- Do: A page redirect
This also does nothing and I've tried:
- Event: Node > Content is going to be viewed
- Condition: Content has type "story" or "page_feature"
- Do: A page redirect
This results in the search results page (if a story or feature is found) redirecting to the url I'd configured in the "page redirect" (which I can sort of understand) I tried adding a condition of: Path has alias(es) of "search/*"(negated) in an effort to say don't do this if you're on the search page but that didn't work (not having a good day here!!)
Now I suspect I may be using the "path has alias(es)" stuff wrong but all that aside is there anyone out the really hot with rules and got any ideas how I might do this.
In terms of the overall URL redirect right now I don't care where that goes - I think I'm going to need to write a special page that figures out what url the actually items should be showed on but if I can get the rules redirecting when it should I can figure that out later, although if you've got any thoughts on find a node in a view I'd appreciate your comments on this post...seemed like a separate issue really so I made it a different topic.
Thanks in advance
Chris
Comments
Calling all rules guru's
Anyone got any ideas on this?
C
Bump...
Bump...