Relative path processing in SDL Tridion

In the SDL Tridion template, Dreamweaver, I have to set the relative path to my image in the page template.

Tridion produces output as shown below when I have code like this in DWT.

DWT markup

<img src="@@Field@@"/>

Renders Templates

<img src="image.jpg"/>

However, when I add a relative path like this, the template returns tcmid

DWT markup

<img src="Folder/img/@@Field@@"  type="text/css" rel="stylesheet"/

Renders Templates

<img src="tcm:8-674"/>

And this leads to the fact that the images are not displayed properly on the website. I tried with the Tridion type: multimedia, etc., but so far nothing has worked.

Has anyone seen a similar problem before?

+3
source share
3 answers

, , , Tridion ( Dreamweaver) src WebDAV Content Manager. , Folder/img/@@Field@@, TCMURI . .

, ( ). Tridion ? ? (, ) DWT: <img src="@@Compoennt.Fields.link_to_mmc@@"/>, link_to_mmc - , . TBB "Resolve Links" TCMURI .

, URL- DWT. - <img src="@@Component.Fields.external_url@@"/>, external_url - URL- , .

+3

, , , TBB uri, SRC. , , URL- . , ( ) .

+3

imagefields , <img src="@@Field@@"/>. Tridion ( ):

  • @@Field@@ URI TCM (, tcm: 6-874), DWT
  • DWT
  • ( Default Finish Actions)
  • URI TCM (tcm: 6-874)

, , TBB DWT , , ( , ).

Tridion, , 3 , 4 ( , ) HTML.

, TBB Publish Binaries in Package Default Finish Actions , , . , , / .

For maximum control, you can also publish your binary files yourself. In this case, look at the source of Publish Binaries in PackageTBB (available on the forum in the SDL Tridion World), change it according to your needs and replace it with the default upon completion of your modified version.

+3
source

All Articles