60 likes | 250 Vues
`. Display The Front Page On The Home Page. Display The Front Page On The Home Page. Publishers want to display a thumbnail of the front page on their website. t o promote an e-edition . t o promote a mobile edition. t o promote the print product.
E N D
` Display The Front PageOn The Home Page
Display The Front Page On The Home Page • Publishers want to display a thumbnail of the front page on their website. • to promote an e-edition. • to promote a mobile edition. • to promote the print product. • Some publishers have found a way but it is often cumbersome and tedious. • Some publishers use a static thumbnail that is not “today’s” page. • Some publishers do nothing but they want to.
Display The Front Page On The Home Page • This is a technique for handling that need. • Outputting to a special Output Profile updates the thumbnail on the website. • The setup includes: • create an Output Profile that creates a PDF with a destination of Refresh News Media; • create a “placeholder” PDF in the News Media database. This will be used if the daily PDF is not available. In my example this PDF is named PageOnePlaceholder; • add some .CSP code to your website • the .CSP code uses <dti:sql> tags to choose the PDF based upon the Output Filename.In my example that is 01_06_09 P-News-1--.pdf.
Display The Front Page On The Home Page User sends A1 to anOutput Profile called PageOneForWebsite. 1 A PDF is created and dropped into Refresh News Media. 2 Web user loads page where A1 is to be displayed.
Display The Front Page On The Home Page • CSP Code on the web page makes a decision: • Does News Media exist for today based upon site’s output filename pattern? • YES? Display it! • NO? Continue… • Does News Media exist for a placeholder? • YES? Display it! • NO? Display nothing.