Question

Is it possible to modify/customize the Component "Info" tab details according to user. Please see the details below:

Component Info Tab

Now in above image, I want to show full path of Image like (d:\images\Chrysanthemum.jpg) "Original File:" as it was coming Tridion 2009.

Is it possible?

Was it helpful?

Solution

Unfortunately these are ReadOnly fields set by the system.

If the item was uploaded using the SDL Tridion UI, this should contain the full path of the original image (I am surprised to see only the filename without the path), however it won't tell you from which editor's machine the path was on, so it is of very little use.

What are you trying to achieve and why? Perhaps someone can suggest a different approach.

OTHER TIPS

Showing extra image information, such as size and dimensions, is a great idea and a good candidate for a gui extension.

Your solution has 4 parts:

  1. Backend, talking with the Tridion API using Core Service to get the MM Image and perform size and dimension calculations. (maybe the dimensions could be calculated in javascript?). In the Core Service write some C# code to get the image from Tridion and calculate image size.

  2. Expose the backend call via a Web Service. I like to use ServiceStack.Net and create a very simple, thin web service on top of the C# code. If you create an asp.net web app and host the ServiceStack web service there then make sure to deploy it to a 'Web App' or Virtual Directory under the Tridion 2011 IIS site. This will help with any Post actions since it will use the same port # and not be considered cross-domain. Pluralsight has a great training video on Servicestack. Also, you can use Rest Console in the Chrome browser to test the web service.

  3. Call web service from an HTML page with jQuery. Create a small web form, serialize it with jQuery, and call the ServiceStack web service. The jQuery response will be a JSON object with image info.

  4. Create an ASCX control, configure Tridion to use it as a Tab extension. Copy/paste your working HTML / jQuery into the tab.

All done!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top