How to retrieve a PDF(document) from the Tridion File System and create a multimedia component out of it - tridion-2011

I am required to make changes to an existing PDF component. In doing so we are creating a new PDF in the File System with the same name as the exsting PDF and deleting the original PDF.Now the new PDF that is created after the update is required to be stored as a multimedia component.
In Tridion we generally create multimedia components to store documents in the Tridion File System. Is there a way to do the reverse , that is, retrieve a PDF(document) from the Tridion File System and create a multimedia component out of it? If so, what API'S can be used to get it done? We are using SDL Tridion 2011 SP1 version.Please help..

I am not sure what you have tried or where you have looked, but take a look at this question/answer:
Create Multimedia component with Metadata fields.using core service
or
http://amarchuk.blogspot.com/2011/11/creating-multimedia-component-through.html

Related

Preview Word & Excel in a PDF control connector/API

I have a custom entity where I am using the file type column in dataverse and I have a workflow that stores every file that is being uploaded to Azure blob, delete it from Dataverse and fill up the URL of the file in another column.
The user should be able to preview any document type that is being stored in Azure blob based on the file path of the form. Previewing the file should be in the canvas app and not inside model-driven.
In Azure Blob, we can only preview PDF and image files, and the canvas app only supports seeing those files.
However, when it comes to Word and Excel documents, users will not be able to preview the file and the only option will be to download the file to their local desktop since there is no API for Azure Blob that supports those formats.
In SharePoint we do have API's to preview documents such as word/excel/PPT etc.. (we can't use SharePoint in our requirements)
I am trying to find a way to allow the user to preview the above-mentioned document types within the canvas app.
Is there any 3rd party API we can extend in the canvas app that converts other doc types to PDF? I thought of creating a flow that calls an API and responds to power apps to preview the file.
Some helpful content that I found are based on SharePoint/Dataverse but my scenario is totally different where I am using Azure Blob that is:
https://www.youtube.com/watch?v=vqK29FWbLxU&t=221s
https://www.youtube.com/watch?v=GFfAkk3g1y8&t=3s
https://pcf.gallery/notes-attachment-file-preview/
Any help is highly appreciated.

Sitefinity Export Document & Files ,Images , Videos from one database to other without enterprize license

I need to export sitefinity content from Document & Files ,Images , Videos of one database to other. I know there is some synchronization feature which is only available to enterprise license which i don't have. Is there anyway that through some other way or database script i can export and import data.
I am using Database as storage for those content instead of file system.
I am using sitefinity version 6.3
There is no built-in functionality to do so, but you can always use the Sitefinity API to get the images, documents, videos, etc. and upload them to the new site.
The Sitefinity documentation is a good place to start:
http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/media-modules/documents-and-files/managing-documents/modifying-documents

Componet Template and linked schema details in Tridion 2011 tables

We want extract all the Component templates and Linked schema details. Could any one please let me know script to extract these details from Tridion 2011 database.
Thanks
I would suggest posting this at https://tridion.stackexchange.com/
The easiest way to extract data from SDL Tridion is to use the content Porter. You could export all of the Components and their dependencies as a package. Butr without more information on what you want to do with the data it is hard to know if this would meet your requirements.
IN the old PowerTools there was a tool which gave an overview of what you wanted, but I don't know if it worked with 2011 (I guess not). You may be able to adapt one of the old script from there if you are in a rush. Otherwise I suggest using the Core Service API to just get all of the CTs for a publication, and create a report on their data yourself.

Joomla store files in database

I am using Joomla 2.5
I want to store user uploaded content (like images or general files) in the database instead of in the server.
Is there any existing setting which can be used to do this by default?
Note: I am interested in the user uploaded files. Joomla's own files can stay on the server or on in the database, either is fine by me.
The database doesn't store things like images, its stored information. Images and so on are always stored on the server. The only thing you could do is once an image is uploaded to the server, it stored information about it such as the format, dimensions etc in the database. Would be a good idea to use a gallery such as Phoca Gallery or JoomGallery. More can be found here.
If you are looking for a general file uploader then feel free to use my SWFUpload Component which is only for uploading in the admin backend however is a very simple component therefore will be easy to integrate into other components should you need to.

How can I copy an event into Plone with WebDAV?

Is there way to copy a file into Plone with WebDAV and have Plone register it as an Event file (rather than a simple page)?
I would very much like to use Plone for it's standard CMS properties (which are brilliant) but I can't spend time programming up an application in Plone - it's way too complicated. The "Plan" is to generate information in another system and use scripts to export it into Plone - hence copying via WebDAV would be a perfect solution if these generated files could be recognized as Events.
If not an alternative, still using WebDAV, would be to generate and copy a python script, that uses API calls to create the events. Though I'm not sure where to copy and what API calls to make.
Or is there a way of importing iCal files?
Thanks
You can customize the code to accomplish any end -- but by default, out-of-the-box, you need to:
Upload text files with the file name extension .event -- you can edit this in the content type registry tool in the root of your Plone site. This tells the folder what type of item to create (an event).
Format you text file using RFC822-style key-value formatting (like mail headers or HTTP headers are formatted) in a text file you upload via WebDAV. You must use IS0 8601 formatted (YYYY-MM-DDThh:ss:mmTZD) timestamps for all date/time field values.
If in doubt on the specifics of the last point, refer to the source code in Products.Archetypes.Marshall.RFC822Marshaller and DateTime.DateTime (zope2).
If you wish to customize the marshaller in use, you could write your own marshaller, and monkey-patch ATEvent to use it. This would allow you to support upload/download of vcs/ics if you wrote the code to do so. This is NOT the path of least resistance. YMMV, this is under-documented, and requires some serious Plone development experience.

Resources