You are Here:
FAQ
Applications
Dynamic Content Catalog
Article #6
How to include my own layout properties for the article.You can create your own template to display the detailed article. Please follow these instructions: 1. Create an html file in your layout and name it template_(topic).html. In the example it is named template_science.html. 2. Now in this file (template_science.html) place <?contentInclude?> code anywhere in the body of the page. This acts as a place holder for the detailed article. 3. This file (template_science.html) and the file that has the teaser link should both be in the same folder. For e.g.: If the teaser <script type="text/javascript" charset="UTF-8" src="tinc?key=o0FfhHRA"></script> is placed in a file named science.html, then science.html and template_science.html should both be placed in the same folder. The following is a sample file: <html> <head><title>Main News</title> <link rel="stylesheet" type="text/css" href="sample.css"> </head> <body> <h2>Science News in Detail</h2> <?contentInclude?> </body> </html> So, now, when somebody tries to read the detailed article, template_science.html will be called with the detailed article in it. It will have your own format properties. Note: Not all topics have the option to include your own template. Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information. |
© 2008 1&1 Internet Inc - About 1&1 Internet