People who code: we want your input. Take the Survey
11

The storage configuration indeed allows you to specify "storages", that may be database or file system based, then bind item types and subtypes to a specific storage. For file-system based storages you can indeed specify any path you want, as long as the deployer has enough permissions to write to and delete from that location. Once you set up your ...


9

The override that expects a Component Presentation is just a wrapper for the one that expects the ids. For Instance this override expects a publicationId, componentId and componentTemplateId: public void remove(int publicationId, int componentId, int componentTemplateId, ComponentPresentationTypeEnum componentPresentationType) throws ...


8

I will assume that what you mean with the Broker is the Tridion Broker database. It is possible to publish everything to the file system, it includes, content, linking info, metadata and references, however this functionality is deprecated and will be removed in future releases, having said that, in future releases, linking, metadata and references will ...


8

In a DAO, you can try to fish out the Deployer Action like so: LocalThreadTransaction.get().getDeployerTransaction().getDeployerAction()


7

Dynamic Linking is the big one as Rob mentions. any DCPs embedded on Pages will render UCs/Tags. Any code that queries CPs using Criteria/Query API will need to be gutted/replaced. If you use P&P, then any personalized content will be rendered and filtered via User Controls/Tags, and this will need replacing If you use UGC, same as #4. When starting a ...


6

You can always try to access the package as described here using a deployer extension. Or if you want to stick to the Storage extension, you might be able to re-use the Utilities class provided in the link above and then use its getComponentPresentationsDocument method (or another method in such class) to access the package files and/or contents.


6

The point at which the storage of the item is committed is not at individual item level, but at DAOFactory level (JPADAOFactory or FSDAOFactory for DB/Filesystem). The reason for this is typically the publish transaction will store several items (page, metadata, binaries etc.) and the commit of the storage should be all items together. So in order to hook in ...


6

The ideal situation is to try to avoid having to invalidate items in Akamai and instead just rely on the normal expiration rules you have setup in your Akamai configuration to take care of content refresh. For example, if you have static content that is going to change frequently, consider publishing it to a folder you can use as the basis of a customized ...


6

Your code looks really familiar ;) . If super.create() fails, then the super class throws an exception and the entire transaction is rolled back. If you throw an exception in your connectDB method, the entire transaction be rolled back as well. So, instead of doing an e.printStackTrace everywhere, you should throw the exception. If that doesn't work, have a ...


6

Once you have added the "additional information" using Engine.PublishContext.RenderedItem.AddMetadata, you can use a Deployer Extension. Here is an example (framework) to deal with Deployer Extensions: Custom Deployer Extensions Framework On a side note, if what you need to do is to add more nodes to your xml, you can do it in the template as well, not ...


6

Indeed the com.tridion.storage.ComponentPresentation class was changed. The create, remove and update methods now receive the Component Presentation content as byte-array. If you need the string contents, you can simple do: @Override public void create( ComponentPresentation itemToCreate, ComponentPresentationTypeEnum ...


6

As you've realized, this cannot be achieved using templating. If you wish to do this this way, you will need to use a different extension point, namely ITransportPackageHandler. See my TDS presentation for more information here. But... why don't you do this on the CM side? Make use of the Event System and the SetPublishStateEventArgs class. This is only ...


6

The behavior is because of the way the storage layer function for Tridion Docs. As we know in Tridion Docs only Publications can be published/unpublished. While publishing, the storage layer stores the Publication along with its items (Page => Topic + Template, Component Presentations => Topic + Template) individually so the create methods execute for ...


5

I assume your storage extension is called by the Deployer. Please specify. When an existing DCP was re-published, the Deployer used to call a remove followed by a create. This was in an older version of Tridion (i.e. 2009 IIRC). I believe this is still the behaviour that you are seeing. Could you check to see if instead of the update method, the methods ...


5

The best way to integrate with Akamai (or most CDNs in general) is to do absolutely nothing, and let Akamai crawl your "origin" servers on a regular basis. If you really need the type of control that you seem to think you need, then a storage extension is the way to go. You could work on a deployer extension too, but then you'll have to deal with ...


5

Another approach would be to publish to two separate deployers, and to configure each differently. My favourite approach is to use ASP.NET web applications as upload servers. If you configure these with suitably populated lib and config directories in the bin directory, you can have the each one treat its content totally differently. Of course, if you ...


5

I would be vary wary of any approach that removes all Content Delivery functionality, or the ability to hook into it. Customers I have seen that take this approach due to whatever requirements, tend to become very dissatisfied in the long term. Usually they bought Tridion for the whole package of functionality, CM + CD. Some typical issues are: Upgrading -...


5

You might be able to achieve that using a CM Event handler for PublishTransaction Save (Initiated phase). If the Publish Transaction state is set to Failed and you recognize your error/warning message in the deployment feedback XML (stored in PublishTransaction.Information), you could change the state to Warning.


5

It is. This is exactly what SI4T does. Speaking of which, it is open source so feel free to take a look at how exactly does it accomplish it.


5

To answer my own question, no at this moment in version 9.5 and earlier it is not possible to persist message to publish UI from storage extension.


4

JPA DOAs are used only for non-filesystem storage. If you want to extend the behaviour of storage on the filesystem you need to extend the corresponding FSDAO class. Note that you can change the storage ID (and caching settings) per publication to use and thus switch between DB/filesystem but you cannot change the DAO to use per publication as your custom ...


4

If it is for ComponentPresentationDAO then I can confirm that it will always be the create (for publish and Re-publish) and remove (for unpublish ) which will be called. The Update method will never be called. It might be because the super class JPAComponentPresentationDAO have this update method but it is not in use by the Storage Layer. I hope it helps


4

This sounds like an unusual implementation. It might be worth blueprinting your website to allow you to localize the templates to render the json. The new child publication could be used with a new deployer for you to test if this gives you the output you need without any missing functionality.


4

I found a solution. To ensure the DCP is also stored in the Broker Database, my class needed to extend JPAComponentPresentationDAO and call super.create() in my class's create() method Also, all other methods of the ComponentPresentationDAO interface must call super.XXX() otherwise the DCP isn't removed from the Broker DB even if it is unpublished. The ...


4

As far as my experience with Storage Extension (in SDL Tridion 2011) is concerned, the update method never got called. Whether you publish a dynamic component presentation or re-publish it, it is always be the create method that got called. My wild guess is that the super class - JPAComponentPresentationDAO have this update method but it is not in use by ...


4

You can add metadata to the rendered item, try the Engine.PublishContext.RenderedItem.AddMetadata method. all the metadata you add there can be accessed in the Storage Layer or Deployer Extension.


4

For REST API's, core components are present in content service. So, you can find cd_broker.jar in content\standalone\services\content-v2-service folder.


4

Found my answer on: http://www.tridiondeveloper.com/using-a-configuration-file-for-your-custom-tridion-content-delivery-code. public MyStorageExtension(String storageId, EntityManagerFactory entityManagerFactory, EntityManager entityManager, String storageName) throws ConfigurationException { super(storageId, entityManagerFactory, entityManager, ...


3

Unfortunately it is not possible to use a custom com.tridion.storage.persistence.JPADAOFactoryby design, this type is statically used by the storage layer and it will ignore a custom one avoiding adding new operations to the transaction.


3

My question: Why do you want to rollback transaction of custom DB if super.create has failed? As you have called the super.create as the first call, and if there is any exception, your code for custom DB and so the related transaction would have not get executed. Isn't it? You should have written your create method (in the storage extension) with in the try-...


Only top voted, non community-wiki answers of a minimum length are eligible