Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5957589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:25:21+00:00 2026-05-22T18:25:21+00:00

I have a content type called FormContentType. This type has a field called FormAlias.

  • 0

I have a content type called “FormContentType”. This type has a field called “FormAlias”. I have number of Macros pointing to UserControl forms. In corresponding templates of contents of “FormContentType” type, I’d like call that Macro based on the value entered in “FormName” field. I want to have some thing like this:

<umbraco:macro alias="[#FormAlias]"  runat="server"/>

Notice that macro alias is dynamic and is based on what is entered in “FormAlias” field of content. But it does not work. If I put the name of one of those form macros explicitly, it works. But using above statement, it does not work. Is this something related to page life cycle?

Could you please help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:25:22+00:00Added an answer on May 22, 2026 at 6:25 pm

    You will need to create a wrapper macro which loads in the macro dynamically.

    See this blog post for details:

    http://munkimagik.wordpress.com/2009/04/08/adding-umbraco-macro-dynamically-to-user-control/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom content type which has a field called location which is
I have content type called event, which has a cck field called event id.
I have a custom content type that has a custom field called [stock] I
I have a content type called fund. The contents of this is in node-fund.tpl.php
I have a new content type called 'A' which has a cck reference node
I have created css page called style.php and included this the top: <?php header(Content-type:
In my website, I have a custom content type called projects. This type as
HI i have created a content type call mycontent it has 2 fields Label:
I have a Drupal setup like this: Content type: Apartments Vocabulary: Areas , that
I have a custom content type called 'business-profile' and I have the template files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.