Bug reports Found a bug? Post it here please.
Version 6.x > Bug reports > Nested macros stopped working in 6.0.15 (and remain in 6.0.16 too) View modes: 
User avatar
Member
Member
sup-kbaptupa - 2/3/2012 11:23:59 AM
   
Nested macros stopped working in 6.0.15 (and remain in 6.0.16 too)
Greetings.
I'm doing some research with trial version of your software (in order to replace our current intranet CMS), and found following strange thing, it seems nested macros in website title pattern stopped worked from 6.0.15 update.
I was using something like this:
{%prefix%} {%if (NodeClassID == "2428") { pagetitle_orelse_name } else { "" }%}
This was used to change patterns of title, depending from document type.
Out of curiosity - what should be done in this case and is that normal?

Thanks in advance,
Alexey

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/6/2012 6:35:54 AM
   
RE:Nested macros stopped working in 6.0.15 (and remain in 6.0.16 too)
Hi Alexey,

Thank you for letting us know about this issue. Regrettably, this seems to be a bug in the current version. I'm very sorry for this inconvenience. We will try fix it in the next version or in the next hotfix package for this particular Kentico CMS version.

Best regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/7/2012 1:57:01 AM
   
RE:Nested macros stopped working in 6.0.15 (and remain in 6.0.16 too)
Hi again,

I got a reply from our developers. There is an easy workaround for this issue and also, it is the recommended way how to do it, using K#.

You can use something like this: {% if (NodeClassID == 2960) { pagetitle_orelse_name }%}

The macros were changed little bit in hotfix no.12 due to some security issues - therefore it is better to use K# syntax. We are sorry for this inconvenience.

Best regards,
Juraj Ondrus

User avatar
Member
Member
sup-kbaptupa - 5/31/2012 1:58:49 AM
   
RE:Nested macros stopped working in 6.0.15 (and remain in 6.0.16 too)
Hello guys, sorry for delay - but thank you a lot for quick fix etc. and especially for tree :)
I have not managed to thank you instantly (some connection problems)... :(