Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On page redirect tags. #1

Open
c2mrdale opened this issue May 1, 2017 · 2 comments
Open

On page redirect tags. #1

c2mrdale opened this issue May 1, 2017 · 2 comments

Comments

@c2mrdale
Copy link

c2mrdale commented May 1, 2017

I would love the ability to place a tag on a page to redirect. This would allow you to redirect a page based on conditions other than the url... ie whether a user is logged in or not... think wine-seller guest store or store.

@Bloke
Copy link
Owner

Bloke commented May 3, 2017

I like this idea. If each redirect rule was "named" by you when it was created, you could do that by referring to the redirects by name from a tag. I wonder if that would work...?

@c2mrdale
Copy link
Author

c2mrdale commented May 4, 2017

how about simply... <txp:smd_redirect to="/my/fancy/url" /> Then you could throw it in a conditional on a page like...

<txp:if_custom_field name="fruit" value="mulberry"><txp:smd_redirect to="/my/fancy/url" /></txp:if_custom_field>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants