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 8663449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:59:15+00:00 2026-06-12T16:59:15+00:00

How to include/refer a dynamic component template in the page. I had created a

  • 0

How to include/refer a dynamic component template in the page. I had created a dynamic CT and published it, but want to render its presentation in the page.
Please suggest.

Thanks in advance,

  • 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-06-12T16:59:16+00:00Added an answer on June 12, 2026 at 4:59 pm

    There are many ways to add dynamic presentation on the page.

    Direct Approach – For this your component presentation should be allowed to on page. Check Allow on Page Using Dynamic Assembly. Add the presentation on page same as all others.

    Code Approach – You may use API to get your component presentation direct from the broker storage.
    Here is sample code for the same.

    *<%@ Import Namespace="Tridion.ContentDelivery.DynamicContent"%>
    <%
      ComponentPresentationFactory factory = new ComponentPresentationFactory();
      ComponentPresentation ps = factory.getComponentPresentation("CompID","TEMPLATEID");
      Response.Write(ps.Content);
    %>
    JSP example:
    
    <%@ page import="com.tridion.dynamiccontent" %>
    <% 
      ComponentPresentationFactory cpf = new ComponentPresentationFactory("tcm:0-1-1"); // Publication URI
      // Component URI and Component Template URI
      ComponentPresentation componentPresentation = cpf.getComponentPresentation("CompID", "TEMPLATEID");
      out.println(componentPresentation.getContent());
    %>
    

    c#

    ComponentPresentationFactory cp_factory = new ComponentPresentationFactory(publicationid);
    ComponentPresentation cp = cp_factory.GetComponentPresentation(CompID, TEMPLATEID);
    if (cp != null)
      {
         Output = cp.Content;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer the following code snippet. I want to use the std::bind for overloaded
Please refer to http://jsfiddle.net/4kSpz/ Each li is shown inline, but for some reason the
I want a mod_rewrite rule set, so I can refer to a page without
I refer to this page: Post array of multiple checkbox values <input type=checkbox class=box
When I call the script via <script type=text/javascript src=include/javascript/test_something.js?v=1128557></script> how do I refer to
in my project, I want to refer to an other xcconfig file, located in
I'm creating a site on which there are many page components that refer to
I noticed that somewhere polymorphism just refer to virtual function. However, somewhere they include
I know that there is a build in module Orchard.Users. I want to include
I would like to include a content file into the package that should refer

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.