Visual

Blog post

Tips and Tricks: Macros in Widgets

8 November 2010, 0 comments
Here is a quick tip that is useful if you work a lot with widgets in Kentico.

You might know that macros are not allowed in the widgets editing form because of security reasons. Luckily for us developers there is a nice little workaround to enable macro resolving in widgets:
 
Add the macro parameter as default value for the field and make sure to uncheck "Display attribute in the editing form".

In the screenshot below you can see an example of this where the title querystring is used in the news lists where condition.

macros_in_widgets.png
Filed under: Tips and Tricks, Widgets, Macro

Comments
Blog post currently doesn't have any comments.
Leave comment



 Security code

Search

Related posts

Tips and Tricks: Martin's Blog

This tip is mandatory: read Martin Hejtmanek's blog ! Martin is the CTO of Kentico and he posts technical details on the... read more

Tips and Tricks: Default Web Part and Widget properties

This tip and trick is something I find very useful when working with web parts and widgets. You are probably aware of the... read more

Tips and Tricks: Building Highly Scalable Websites

15 tips for optimizing your websites performance A couple of weeks ago, at the Kentico Connection 2011 in Prague, I... read more

Update: Default Web Part and Widget properties list

A couple of weeks ago, I posted a tip and trick on how to adjust the default properties of web parts and widgets. I... read more

Tips and Tricks: Right, Right Click

Here’s just a small tip: when you are in a context menu, right click an item to open the sub context menu (if available).... read more