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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:23:25+00:00 2026-06-16T12:23:25+00:00

Managing a Global Logo with Tridion To manage, for example, a website-wide logo and

  • 0

Managing a “Global” Logo with Tridion

To manage, for example, a website-wide logo and its text elements with SDL Tridion, I’d want it in a component, rendered by a (dynamic) component template, and placed by page templates. My requirements would include:

  1. Logo as a Component–image as a multimedia (mm) component and link, alt (i.e. “home”), and other text in an optional container component
  2. Dynamic Component Presentation (DCP)–ability to manage logo’s markup presentation and publish changes without requiring publishing every page
  3. Share-able–ability to localize multimedia and text in components, rather than templates, in lower publications

Authors shouldn’t need to place the logo as a component presentation (CP) on every page, although a logo CP just on the homepage could offer dynamic linking.

RenderComponentPresentation(), TCDL, or Tridion tags for “Non CPs”

For this CP-less approach, I think RenderComponentPresentation() or TCDL tag would be the right “agnostic” approach. Is one preferred over the other?

For example, my template outputs:

<h3>By tridion: (ASP.NET) tag</h3>
<tridion:ComponentPresentation runat="server"
    PageURI="tcm:7-1535-64"
    ComponentURI="tcm:7-1533"
    TemplateURI="tcm:7-1532-32"/>

<h3>By tcdl: tag</h3>
<tcdl:ComponentPresentation
    PageURI="@@Page.ID@@"
    type="Dynamic"
    ComponentURI="tcm:7-1533"
    TemplateURI="tcm:7-1532-32"/>

<h3>by render component presentation</h3>
@@RenderComponentPresentation('tcm:7-1533','tcm:7-1532-32')@@

These get transformed to the following on the file system.

<h3>By tridion: (ASP.NET) tag</h3>
<tridion:ComponentPresentation runat="server"
    PageURI="tcm:7-1535-64"
    ComponentURI="tcm:7-1533"
    TemplateURI="tcm:7-1532-32"/>

<h3>By tcdl: tag</h3>
<tridion:ComponentPresentation runat="server"
    PageURI="tcm:7-1535-64"
    ComponentURI="tcm:7-1533"
    TemplateURI="tcm:7-1532-32"/>

<h3>by render component presentation</h3>
<tridion:ComponentPresentation runat="server"
    PageURI="tcm:7-1535-64"
    ComponentURI="tcm:7-1533"
    TemplateURI="tcm:7-1532-32"/>

Each renders delivery-side so the user sees the correct CP in the browser.

Question(s):

  1. Any approach gets us a DCP referenced from a PT with an agnostic format that gets retrieved presentation-side, avoiding full-site publishing. It’s not really on the page so we have to be sure to publish the logo with a dynamic CT (it’s html fragment in this case). Am I missing anything?

  2. Is RenderComponentPresentation() preferred over TCDL or a specific presentation-side syntax? Any reason I’d actually want <tridion:ComponentPresentation runat="server"> instead?

Edit: I was missing the Type="Dynamic" attribute and value, also for a moment thought RenderComponentPresentation didn’t create the right CP reference.

  • 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-16T12:23:26+00:00Added an answer on June 16, 2026 at 12:23 pm

    Basically you have answered your first question yourself already I think, apart from how you want to write it out in your template you have your DCP there.

    My preference would be to use @@RenderComponentPresentation('tcm:7-1533','tcm:7-1532-32')@@ but I would actually not use it with hardcoded TCMURIs. I’d probabaly write a TBB which reads the Multimedia Component TCMURI and its Template URI somewhere from for instance a configuration Component or the Publication metadata, then your template could look something like:

    @@RenderComponentPresentation(${LogoUri}, ${LogoTemplateUri})@@
    

    When using Dreamwever TBBs for your layout, I would use this as a preference. If you are using another way of layout, then the next best thing would be to use the TCDL tag. Indeed to try and keep your templates code agnostic. The only time I would ever revert to writing out the tridion control code myself, is when I cannot get it there another way.

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

Sidebar

Related Questions

I have recently started managing my own VPS with Webmin. I uploaded my website
I'm managing dialogs by showDialog / dismissDialog / removeDialog . I want to: Display
I'm managing a website that is built from the ground-up in PHP and uses
I am writing a memory-managing template class in which I want to create a
I am managing a big website which is localized for 9 languages. But when
I am managing a website which has about 140.000 documents. This system had been
I am managing a wordpress blog and want to throw a 404 error whenever
I'm managing some images in my app using Carrierwave and I want the files
When managing shader's, does it make sense to have all of them compiled and
For managing some cache, I need a sort of Hashtable with the ability to

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.