Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys, after completed a form, users a redirected (by contour) on a confirmation page, than redirected on another page choosen by the admin.
So, Contour works great a redirect to my "thank you" page.
In my "thank you" page template I have this :
<meta http-equiv="refresh" content="<umbraco:Item field="redirectTime" textIfEmpty="5" runat="server" />; url=<umbraco:Item field="urlRedirect" runat="server" xslt="umbraco.library:GetXmlNodeById({0})/data [@alias='urlRedirect']" />" />
The redirectTime (a string) works fine but the "urlRedirect" doesn't work. Without the xslt it tries to redirect to node number (1777), so it gives me a 404 error. "urlRedirect" is a Content picker.
With the xslt part, in html it gives me
<meta http-equiv="refresh" content="5; url=" />
So what I missed?
Thank you!
Hi
Just to confirm, are you using an Umbraco version prior to 4.5? Or using 4.5 with the legacy schema enabled?
I noticed your XSLT is using the old schema. If you are using 4.5+ it should be: umbraco.library:GetXmlNodeById({0})/urlRedirect
I haven't tested to see if this will even work but thought I'd get the obvious out of the way first :)
-Tom
I do not quite understand your... purpose, are you try to do something like:
<meta http-equiv="refresh" content='<umbraco:Item field="redirectTime" textIfEmpty="5" runat="server" />; url=<umbraco:Item field="urlRedirect" runat="server" xslt="umbraco.library:NiceUrl({0})" />' />
or just (if not considering SEO or URL look and feel)
<meta http-equiv="refresh" content='<umbraco:Item field="redirectTime" textIfEmpty="5" runat="server" />; url=<umbraco:Item field="urlRedirect" runat="server" xslt="concat('/', {0}, '.aspx')" />' />
Ok it worked! It was a ' or " trouble!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Another inline xslt trouble!
Hi guys, after completed a form, users a redirected (by contour) on a confirmation page, than redirected on another page choosen by the admin.
So, Contour works great a redirect to my "thank you" page.
In my "thank you" page template I have this :
The redirectTime (a string) works fine but the "urlRedirect" doesn't work. Without the xslt it tries to redirect to node number (1777), so it gives me a 404 error. "urlRedirect" is a Content picker.
With the xslt part, in html it gives me
So what I missed?
Thank you!
Hi
Just to confirm, are you using an Umbraco version prior to 4.5? Or using 4.5 with the legacy schema enabled?
I noticed your XSLT is using the old schema. If you are using 4.5+ it should be: umbraco.library:GetXmlNodeById({0})/urlRedirect
I haven't tested to see if this will even work but thought I'd get the obvious out of the way first :)
-Tom
I do not quite understand your... purpose, are you try to do something like:
or just (if not considering SEO or URL look and feel)
Ok it worked! It was a ' or " trouble!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.