In the building block of the Tridion Link Resolver template, what is the difference between Binary and Multimedia

In the Tridion template guide (I look at SP1 2009), he explains that you can use either tridion:type='Binary' or tridion:type='Multimedia' . Apparently, Binary allows you to specify an option, and Multimedia allows you to use the tridion:targetattribute .

None of these differences, apparently, justifies the excess type, therefore, obviously, more for him. The documentation states:

If set to Binary, the hyperlink points to the binary file contained in the multimedia component, which means that the link points to the actual published binary, and not to the Content Manager URI of this element.

But a link like Multimedia also points to the binary itself.

The documentation also states that if you use the Multimedia type, you must publish the multimedia component in the same publishing action for the link that will be allowed.

What are the main mechanisms that play here, and what criteria should be applied to choose between binary and multimedia?

+6
source share
2 answers

I found another documentation that says:

tridion: type, the type of link to create.

The value can be Page, Component or Binary, although any other value will be simple (by default, either a component or a page is used, depending on the URI). The value can also be Multimedia, in this special case the source element is saved, only the target attribute of the published path of the MultiMedia component associated with the component specified in tridion: href is replaced.

From reading some documentation and looking at the code, it seems that tridion:type=Multimedia does not generate TCDL. Instead, it searches for the "PublisherPath" element in the package and places it in Output. In this sense, it is very similar to the PublishBinary call of the friendly Script helper.

+5
source

If you have access to the forum, you can get the source code for TBB by default here . The TBB link conversion tool source contains all the explanations you need. Essentially type="Binary" for links ( <a href=... ) for multimedia components, and type="Multimedia" for other links to multimedia components, for example. <script src=... etc.

+5
source

Source: https://habr.com/ru/post/909456/


All Articles