Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In a client's SDL Tridion 2009 SP1 implementation, I'm looking to publish some DCPs as HTML fragments onto the file store. This is because a current implementation uses ASCX components on the file store and we need to replace this functionality with HTML fragments as the output.

Looking in the 2009 SP1 Content Delivery Implementation Manual, there only appear to be 4 configuration settings that can be used within the Publication -> Dcp configuration node within the cd_broker_conf.xml file. These are:

  • Jsp
  • Asp
  • Xml
  • Txt

Is it possible to store DCP HTML fragments on the file store and if so, which config setting should be chosen?

I understand that I could just store these as .txt files, but I'd much prefer them to be .html files.

share|improve this question
add comment

1 Answer

Yes this is possible, but as you mention in your post, You will need to just use TXT as your output format. These options are design to support the 3 different ways of handling DCP content.

  1. ASCX and JSP need to get resolved so any code will get executed (dynamic component links etc)
  2. XML DCPs can optionally be transformed using a Dynamic Component Template in the form of an XSLT at request time
  3. All other DCPs are handled as plain text as the can't contain any server side code.

Can I ask why you don't want to use the TXT type?

share|improve this answer
1  
Cheers Chris - It's not that I don't want to use the txt type, it just makes sense that if I choose HTML Fragment in the CT, it should be added to the file store as a .html file. The above description makes perfect sense though - thanks for the description of each option. If only the documentation had the same! –  Mike Percival Feb 11 '13 at 13:22
    
Chris, I've finally had chance to check your answer and it seems that outputting the DCP as an HTML fragment is inserted in the broker database regardless of the <txt> setting in the broker config file. I've updated the Text Component Presentation Binding to be <Binding Name="TextComponentPresentation" Class="com.tridion.broker.componentpresentations.FSTextComponentPresentationHome‌​"/> but still the html fragments are stored in the DB. Using these configurations, updating the DCP to output as plain text outputs to the file store correctly. Any ideas what I'm missing? –  Mike Percival Feb 11 '13 at 16:44
    
Is it that HTML Fragments can never be stored on the file store? Will I HAVE to choose Plain Text as the output format? –  Mike Percival Feb 11 '13 at 16:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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