Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Nested custom macro View modes: 
User avatar
Member
Member
ap - 2/13/2013 2:53:33 PM
   
Nested custom macro
Hello. I have created a custom macro called DocAssetFormName which also excepts a parameter called docid. when i use the following code:

{% ProcessCustomMacro("DocAssetFormName", "|(DocId)148787") %}

it works fine (because there is no nested macro)
however when I do this:

{% ProcessCustomMacro("DocAssetFormName", "|(DocId){(1)?DocId?(1)}") %}

the part {%DocId%} does not resolve to the actual parameter value stored in DocId.

Thank you.
Akash

User avatar
Member
Member
kentico_davidb2 - 2/18/2013 3:05:58 AM
   
RE:Nested custom macro
Hello,

you can also try using the "easier-to-read" form if you are having trouble using nested macros like:

{%Custom.DocAssetFormName(QueryString.DocId)%}.

David