How To Add A Macro Into The Richtext Area Within The Umbraco Backend

So far in our journey, I've discussed pages and templates that are pre-defined and fairly limited.  The Macro was introduced to allow content editors to have a bit more power over the content that gets displayed.  A common example of an Umbraco macro is the Forms macro.  If the forms macro enabled, you will be able to add a form to any page that has a rich-text editor defined.  This feature gives you a lot more flexibility instructing your pages.  It means you can have more control of the layout of your page without the need to get a developer involved to make the change in code for you The macros that you will have access to will be dependant on what the developers who built your website provided you with.

Adding A Macro Into A Richtext Area

To add a macro to a page, go to the Content section and find a page that has a rich-text area property and selects the 'Macro' button. umbraco_textarea_macro Select the macro name and add any parameters you have defined: umbraco_text_area_select_macro Now, when you render the page the macro will be displayed. It's as simple as that.

submit to reddit

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

Back to top