Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sun 403 posts 395 karma points
    Sep 15, 2012 @ 12:27
    sun
    0

    How to use some fields of $currentPage as prevalue?

    I want to know when user submit a page, which page is he at, so I need use $currentPage/@id or Url as a hiddenfiled to submit. so, how to do it?

  • Matthias Bier 30 posts 90 karma points
    Sep 28, 2012 @ 12:06
    Matthias Bier
    0

    Hello sun,

    You can use the "umbraco bracket syntax" described here: http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax

    For example the @id field of the current page would be [#pageID].

    What did not worked for me is to use the umbraco.libary and include the url of the current page. But the PageId and the url will be in the record anyway... At least I see these fields in my entries...

Please Sign in or register to post replies

Write your reply to:

Draft