Tridion 2009 SP1: Dreamweaver template error: ConvertURLToPath () cannot decode URL: invalid escape

I am trying to use TBB Get Label in a Dreamweaver template that parses type expressions %%LabelKey%%and replaces them with the value from the Component that is stored in the publication metadata.

I try to use a shortcut to store an absolute URL (e.g. http://www.example.com ), but I get the following in Template Builder when I try to run a template

Error: ConvertURLToPath () cannot decode URL: invalid escape

The DWT code is 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 %%LogoLink%%. If I remove that the template is working fine. Why is Tridion trying to do something with this value? I thought he would try and resolve it if he was tridion:href.

.

:

: Engine.Transform : ConvertURLToPath() URL: escape Tridion.ContentManager.Session.GetTcmUri(String uri) Tridion.ContentManager.Session.GetObject(String uri) Tridion.ContentManager.Session.IsExistingObject(String uri) Tridion.ContentManager.Templating.Engine.GetObject( , String itemUriOrWebDavUrl) Tridion.ContentManager.Templating.Engine.GetObject(String itemUriOrWebDavUrl) Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.ResolveWebDavUrl(String urlToResolve, String webDavBaseUrl, ) Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.ResolveTemplateBinaries( , , TcmUri baseItemTcmUri, ExtractBinariesContentWrapper contentWrapper) Tridion.ContentManager.Templating.Templates.ExtractBinariesFromHtmlTemplate.Transform( , ) Tridion.ContentManager.Templating.Dreamweaver.DreamweaverMediator.RegisterTemplateBinaries( , String baseItemTcmUri, String templateString) Tridion.ContentManager.Templating.Dreamweaver.DreamweaverMediator.Transform( , ToTransform, ) Tridion.ContentManager.Templating.Engine.ExecuteTemplate( , ) Tridion.ContentManager.Templating.Engine.InvokeTemplate( , Invocation, )
Tridion.ContentManager.Templating.Compound.CompoundTemplateMediator.Transform( , ToTransform, ) Tridion.ContentManager.Templating.Engine.ExecuteTemplate( , ) Tridion.ContentManager.Templating.Engine.InvokeTemplate( , Invocation, )
Tridion.ContentManager.Templating.Engine.TransformPackage( , ) Tridion.ContentManager.Templating.Engine.TransformItem( , IdentifiableObject itemToRender) Tridion.ContentManager.Templating.Debugging.DebuggingEngine.Run()
Tridion.ContentManager.Templating.Debugging.DebugSession.Run()

+3
2

DWT Tridion <img src=... DWT . , , DWT BluePrinting ( , URI TCM) Dreamweaver ( ).

, Tridion src href ( CSS url()) DWT.

, DWT, /Building Blocks/System/Designs/My Page Design :

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

Tridion /Building Blocks/System/Images/MyHeader.jpg src, :

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

DWT %%LogoLink%% , URL- (% escape- URL-), .

, , escape- DWT TBB , escape- %% DWT. escape.

+3

, @Puf, , . # TBB, StringItems "LogoLink" "LogoLinkTitle", URL . TBB DWT , DWT :

 <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>

, , , .

+3

All Articles