Quick question. I want to compare all id's of the children a startnode with the currentpage. If the id's match, it should not show. I have this but somehow it doesn't seem to work:
Thank you for your response. Using Id gives me a error loading Partial View Script. Using nodeId or pageId just returns an empty Script where it should show something.
Comparing ID of current page with selection ID
Hi guys,
Quick question. I want to compare all id's of the children a startnode with the currentpage. If the id's match, it should not show. I have this but somehow it doesn't seem to work:
Any suggestions?
Hi Lex.
What if you do something like this.
If this not working would it be possible for you to share the whole code that you have.
Hope this helps, and works
/Dennis
Hello Dennis,
Thank you for your suggestion but it does not seem to work. This is my full code:
Note: It does not give an error, but it returns empty.
Hi Lex
Try to see if this will works for you then.'
Edit: I have just edit my post. I was wrong you are in dynamic Razor context.
Hope this helps,
/Dennis
Hello Dennis,
Thank you for your response. Using Id gives me a error loading Partial View Script. Using nodeId or pageId just returns an empty Script where it should show something.
Hi Lex,
I have the change to have a look at it again. And I have created a simple edition of you code that should do what you are after.
I think the easiest way is to create a variable that holds the ID of the current page.
Remember to change startNodeId to an id of 1115
Hope this helps,
/Dennis
is working on a reply...