Copied to clipboard

Flag this post as spam?

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


  • radmanmm 117 posts 108 karma points
    Mar 16, 2011 @ 21:51
    radmanmm
    0

    creatorID does not return value in template field

    Hello,

    I need the creatorID for some macro logic.  My template code looks like this:

      <umbraco:Macro divClass="applyNowLeft" job="[#jobPosition]" creatorID="[#creatorID]" Alias="GetSubmitResumeLink" runat="server"></umbraco:Macro>

    The creatorID does not appear to be something I have in the field list at all in the insert field dialog, and the writerID does not return any value either.


    Anyone know why this is, or what I am doing wrong?

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 16, 2011 @ 22:00
    Jan Skovgaard
    1

    Hi Radmanm

    If you want to feed the macro with an Umbraco value you should use the @ sign in front of it instead of #, which returns the value of the properites you have defined on the document type yourself.

    So if I have understood correctly you should be able to fetch the writerID by writing @writerID - creatorID is not an Umbraco value so I suppose this is something you have created yourself? If so it should be returned to the macro using #creatorID I guess...

    /Jan

  • radmanmm 117 posts 108 karma points
    Mar 16, 2011 @ 22:02
    radmanmm
    0

    That worked thanks Jan.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 16, 2011 @ 22:06
    Jan Skovgaard
    0

    I'm happy to hear that :-)

    If I remember correctly these are the options you have to feed the parameters

    • Page value: [#bodyText]
    • Recursive value: [$headerImage]
    • Request Collection: [@productId]
    • Cookie Collection: [%memberId]

    Hope this can help others in the future.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft