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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:42:30+00:00 2026-06-02T18:42:30+00:00

I’m trying to use a Get Label TBB in a Dreamweaver Template that parses

  • 0

I’m trying to use a Get Label TBB in a Dreamweaver Template that parses expressions like %%LabelKey%% and replaces them with a value from a Component that is stored in Publication metadata.

I’m trying to use a label to store an absolute URL (e.g. http://www.example.com) but am getting the following in Template Builder when trying to run the template

Error: ConvertURLToPath() can’t decode URL: invalid escape

The DWT code looks similar to:

<a href="%%LogoLink%%" target="_blank" title="%%LogoLinkTitle%%" class="logo">
    <img src="@@Page.Publication.Metadata.parent_logo@@" width="95" height="24"
         alt="@@parent_logo0.alt@@">
</a>

The problem is caused by %%LogoLink%%. If I remove that the template works fine. Why is Tridion trying to do something with this value? I thought it would only try and resolve it if it was tridion:href.

Any help appreciated.

Full stack trace:

Engine: Error in Engine.Transform Error: ConvertURLToPath() can’t
decode URL: invalid escape at
Tridion.ContentManager.Session.GetTcmUri(String uri) at
Tridion.ContentManager.Session.GetObject(String uri) at
Tridion.ContentManager.Session.IsExistingObject(String uri) at
Tridion.ContentManager.Templating.Engine.GetObject(Session session,
String itemUriOrWebDavUrl) at
Tridion.ContentManager.Templating.Engine.GetObject(String
itemUriOrWebDavUrl) at
Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.ResolveWebDavUrl(String
urlToResolve, String webDavBaseUrl, Engine engine) at
Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.ResolveTemplateBinaries(Engine
engine, Package package, TcmUri baseItemTcmUri,
ExtractBinariesContentWrapper contentWrapper) at
Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.Transform(Engine
engine, Package package) at
Tridion.ContentManager.Templating.Dreamweaver.DreamweaverMediator.RegisterTemplateBinaries(Package
package, String baseItemTcmUri, String templateString) at
Tridion.ContentManager.Templating.Dreamweaver.DreamweaverMediator.Transform(Engine
engine, Template templateToTransform, Package package) at
Tridion.ContentManager.Templating.Engine.ExecuteTemplate(Template
template, Package package) at
Tridion.ContentManager.Templating.Engine.InvokeTemplate(Package
package, TemplateInvocation templateInvocation, Template template)
at
Tridion.ContentManager.Templating.Compound.CompoundTemplateMediator.Transform(Engine
engine, Template templateToTransform, Package package) at
Tridion.ContentManager.Templating.Engine.ExecuteTemplate(Template
template, Package package) at
Tridion.ContentManager.Templating.Engine.InvokeTemplate(Package
package, TemplateInvocation templateInvocation, Template template)
at Tridion.ContentManager.Templating.Engine.TransformPackage(Template
template, Package package) at
Tridion.ContentManager.Templating.Engine.TransformItem(Template
template, IdentifiableObject itemToRender) at
Tridion.ContentManager.Templating.Debugging.DebuggingEngine.Run()
at Tridion.ContentManager.Templating.Debugging.DebugSession.Run()

  • 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-02T18:42:31+00:00Added an answer on June 2, 2026 at 6:42 pm

    When you upload a DWT Tridion tries to map that <img src=... in your DWT to a Multimedia Component. This step is needed to ensure that a DWT works fine with BluePrinting (which requires the values to stored as TCM URIs) AND is always viewable in Dreamweaver (which requires file paths).

    To do this mapping, Tridion takes the path in any src or href attributes (as well as any CSS import or url() construct) and looks for a Multimedia Component in that location relative to the DWT.

    So if a DWT that is stored under /Building Blocks/System/Designs/My Page Design and it contains:

    <img src="../Images/MyHeader.jpg"></img>
    

    Then Tridion will look for a Multimedia Component called /Building Blocks/System/Images/MyHeader.jpg and replace the src value if it finds a match:

    <img src="tcm:1-23"></img>
    

    In your DWT the %%LogoLink%% is causing problems, since it looks like it is URL-encoded (the % sign is used as an escape character in URLs), but in reality isn’t.

    Most people encountering similar problems end up using an alternate escape sequence in their DWT and write a small post-processing TBB that converts that escape sequence back into %% after the DWT is executed. In your case just picking a non-conflicting escape syntax would be enough.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.