Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish Tridion Multi Media Component with Tridion ID

Is there a way we could define in Tridion to publish binary file using its own TCM ID as file name?

like image 371
fsnova Avatar asked Jan 02 '13 14:01

fsnova


1 Answers

Starting with Modular Templates' introduction in Tridion 5.3, the default is to publish binaries without a unique identifier (which solved a whole bunch of other issues at the time, like knowing the file name before publishing it, pretty useful when your CSS is produced outside the house, for instance).

I am pretty sure there is still one of the AddBinary overloads (see here) that will publish a filename appending _tcm-12-35 to the file name, just like in the PublishBinary days, but unfortunately cannot test it now.

If your binary publishing is handled by the default finish actions, you will have to modify the file name after this TBB executes, as documented by Chris here.

like image 64
Nuno Linhares Avatar answered Nov 01 '22 17:11

Nuno Linhares