The Best Page Redirect Addon

Permalink
All of the other redirect addons in the marketplace are blocks, blocks that you place on a page.

Q: So what happens if you want to change or remove the redirect?
A: You have to use versions to go back to before you placed the block.

So I made 2 addons that remove that problem altogether.

My Page Selector Atrribute: http://www.concrete5.org/marketplace/addons/page-selector-attribute...
and my Page Redirect Addon: http://www.concrete5.org/marketplace/addons/page-redirect/...

Q: Why is this better?
A: Because it uses page attributes, so from the sitemap you can easily and quickly change and remove the redirects.

Q: Awesome! How much does it cost?!?!
A: Absolutely nothing!

So go download it :)

Mike

Mnkras
 
jordanlev replied on at Permalink Reply
jordanlev
This is freaking sweet! Thanks for putting that up. So simple, not sure why I never thought of it (I always wound up just using .htaccess redirects, but this is much more manageable if the redirects ever need to change).

Two questions:
1) I'm guessing you separated out the Page Selector attribute from the Redirect package so the attribute can be used for other things -- but would it have been possible to include the attribute with the redirection package and only install it if it doesn't already exist? (Just thinking it may be confusing to people for them to have to install 2 different things -- you know how people are sometimes :)

2) Is there any reason you put the redirection function in a model instead of a library? I know it's totally arbitrary in this case, but I'm wondering if there's something about the includes that makes it easier to get to a model than a library or something weird like that.
(I usually just put one-off event handlers in the package controller itself to keep things in one place, but that's probably not the best architecturally-speaking).

Thanks again!

-Jordan
Mnkras replied on at Permalink Reply
Mnkras
1. I didn't want to deal with compatibility issues if people installed both

2. I can do either, doesn't matter at all
zoinks replied on at Permalink Reply
Will this all me to redirect multiple users to multiple pages?

I would like each of my users to have a page where I (and only I) can add text through a Content Block in order to give them a simple status update on their job.
tallacman replied on at Permalink Reply
tallacman
Try this page for that:http://www.concrete5.org/marketplace/addons/login-attribute-redirec...
although you'll probably need a custom solution.
zoinks replied on at Permalink Reply
Thanks! However, I think I would convince the client to use messaging before I plunked down $125 for a redirect script.
Ricalsin replied on at Permalink Reply
Ricalsin
@Michael, In the below, the action="tools/blah" is run without a page refresh:

<form method="get" id="something" action="<?=$uh->getToolsURL('blah', 'pkg');?>">
//stuff
<submit form>


But I need to come back through and run the action="tools/path" based on a condition, not a click:

<form method="get" id="something" action="<?=$uh->getToolsURL('blah', 'pkg');?>">
//stuff
if(yes) {
how do I launch that tools/path.php script here without causing a page refresh???
}
<submit form>


EDIT: This issue is a little more complicated as it entails dealing with the ccm.search.js and the ccm_setupAdvancedSearch capabilities. The solution was to .trigger('click') the event again under the conditional.
jamesleech replied on at Permalink Reply
jamesleech
This solves some problems, however, I have one situation that I can't see how to maximise the potential of these two clever add-ons.
What if you have a menu that you would like to have a parent menu item that doesn't link to anything? The children do, and are visible on drop-down menu.

Superfish and Megamenu install the Don't link in navigation attribute, however, some theme's with their own navigation e.g. Slate:

http://c5mix.com/support/forums/slate-theme/doesnt-work-in-slate-na...

Is there a clever way to prevent the redirect from doing anything, thereby creatign a dead-link on purpose, without causing an error on a site?
onemhz replied on at Permalink Reply
onemhz
True, this is great addons, I only wish that should install
one Addon second selector, I didn't see any use off have them separetly.
And second, when I have instaled Maintenance Editor, when enabled and when custom page redirect to is active, I have this alert and page not show.

"
Firefox has detected that the server is redirecting the request for this in a way that will never complete. This problem can be caused by disabling or refusing to accept cookies.
"

Maintenance Editor mess with redirect, but I need to show other page when I have "construcition site".
Any ideas?
- ME: works only when enabling with default page
- PR: works when uninstall package and ME has custom page
Maybe any solution to have them. I did not found where point default ME page. Maybe page_selector messing, ME i PR using this.

Please help