Contour Send to Path - Using XPath always assigns Content Node
Hi
(Umbraco 7.2.2 Contour 3.0.24)
I would like my form to go to a sibling(identified by the document type alias) of the page that it is rendered on. I am trying to use the XPath functionality as this should be the ideal solution. However when I try to set my XPath here it always assigns the Root content node as the Page aka node id -1. If I run the form it will stay on the form's page and display the thank you message text.
Nope, not yet. I ended up creating a node that redirects you to the correct page and setting that node as the one that the form goes to. So I am basically getting the page it was submitting on from the record entry and then finding the sibling node of that page that is the document type that I want.
Contour Send to Path - Using XPath always assigns Content Node
Hi
(Umbraco 7.2.2 Contour 3.0.24)
I would like my form to go to a sibling(identified by the document type alias) of the page that it is rendered on. I am trying to use the XPath functionality as this should be the ideal solution. However when I try to set my XPath here it always assigns the Root content node as the Page aka node id -1. If I run the form it will stay on the form's page and display the thank you message text.
I have tried the XPath example/solutions in this post https://our.umbraco.org/forum/umbraco-pro/contour/17172-Submiting-the-form-XPATH-example with no luck.
My Node Sturcture:
Parent
-- Sub Page
-------- Form Page
-------- Thank You Page
--- Sub Page 2
-------- Form Page
-------- Thank You Page
Thanks in advance
did you ever get a solution to this? i am struggling with similar.
Nope, not yet. I ended up creating a node that redirects you to the correct page and setting that node as the one that the form goes to. So I am basically getting the page it was submitting on from the record entry and then finding the sibling node of that page that is the document type that I want.
ooh, nice work around... i posted our issue to twitter... we will see if anyone saves us...
Hi Dee & Bob,
If I understand Tim correctly from his answer to the page you mention, the XPath should end up selecting the id of the page to show.
In your case you should be able to use something like this:
Assuming $currentPage is the Form page, and there's only one node of the DOCTYPE_ALIAS kind as a sibling of the Form page (?)
Let me know if it works,
/Chriztian
i am trying to get the child page of type with...
but.. i am getting the following error...
any thoughts on that??
Hey Bob,
Sounds a lot like it's getting an empty string instead of an Id - probable causes:
(To fix #2 you'd put a predicate on, to select the first, e.g.:
$currentPage/../BasicPage[1]/@id
)Keep at it—I haven't used it myself yet, so poking a little in the blind still :-)
/Chriztian
yeah, i am an idiot... it works...
I added the [1] just to be safe... of course, i have a multi-site impementation and was testing in the wrong site... eef.
is working on a reply...