Trying to explore more on Tridion, found that ECL External Content Library framework bit interesting.

Started implementing the same in Tridion CME with the help of a few tutorial and blogs, which help me to achieve some extent.

Based on Bart Koopman Flickr ECL Provider and few modifications from my end, configured an ECL Provider. Now able to get external content Folders, Files as ECL Items, mapped ECL Items External Metadata to Stub Component through Event Extensions everything going well up to here.

Now I wanted to use ECL Items as Multimedia Link in other existing Components, and publish the Component so that the ECL Item content needs to be deployed to file system.

Based on Bart Koopman comment generated Default Templates and TBBs and included Resolve ECL items V2. Do ECL Items require any Component Templates for publishing?

  1. Yes, What all TBB's need to be placed in ECL Item CT.
  2. No, To Publish ECL Items when it is used as Multimedia Link, Resolve ECL items V2 alone sufficient to existing CT to place content in the File System?
  • Your question contains a lot of details which I don't think are relevant, and seems to be missing what is. The Resolve ECL items TBB is there to do exactly what it describes, resolve your ECL items at publishing time. But if your ECL items content is published to the file system or whether it is a link to an externally published asset, that is depending on the implementation of your ECL provider. I suggest that you edit your question and provide a bit more clarity on your question. – Bart Koopman Feb 13 at 14:37

Your question is not more clear what you want to achieve,

Also, I'm not sure whether you are using DXA or web farm implementation.

I will explain based on my understanding and previous implementations with ECL Youtube and Vimeo, It will same apply to Flicker ECL integration as Remote Reference URL not stored in Local.

Part of your CT - TBB - yes need to add Resolve ECL items V2 TBB also.

ASP.NET Web farm-based implementation before publishing the page to filesystem you need to resolve your ECL items at publishing time, to render the image tag with source path as Flicker external Image URL.

Eg:
       <img src="http://farm5.static.flickr.com/4720/39540548284_d22e2a7fc1_b.jpg" />

Based on your choice of templating DWT or Razor using the built-in functions IFunctionSource

DWT:
    @@GetExternalContentLibraryDirectLink("tcm:5-345")@@

Razor:

 @
{
    var ecl = new Tridion.ExternalContentLibrary.Templating.V2.ExternalContentLibraryFunctionSource();
    ecl.Initialize(TridionHelper.Engine, TridionHelper.Package);
    string url = ecl.GetExternalContentLibraryDirectLink("tcm:5-345");
}

Alternatively, you can also use this function GetExternalContentLibraryHtmlFragment

DXA ECL Implementation: once we add the Resolve ECL items V2 to TBB and publish the page and PageSettings page.

you need to create the DXA-model to achieve this on presentation side.

Refer to the DXA MediaManager module to create one for same for Flicker.

Model ECLImage.cs:

    [SemanticEntity(CoreVocabulary, "ExternalContentLibraryStubSchema-flickr")]
    [Serializable]
    public class ECLImage : EclItem

View ECLImage.cshtml:

@model ECLImage
@Html.Media(Model)

Register your Viewmodel in the Area:

RegisterViewModel("ECLImage", typeof(ECLImage));

DXA Page JSON output for your reference: enter image description here

I hope it helps you to understand.

  • After we add Resolve ECL items V2 Tbb to our template ECL Item content is not deployed to our file system, Does this TBB help to have the binary in our file system after publishing ECL Item alone? – Sreekanth G Feb 15 at 14:42
  • 1
    Not sure about anyone else, but the idea of having an "external" item of content published on your file system via ECL is going against what its for really. The idea is you can link to content not held in Tridion, as if it was in Tridion and maintain whatever external link you need to it when presenting it. – Neil Jun 18 at 7:39

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.