Feedback Form

BLOG

Template Creation in Day Communique 4.x

By meamitava - JCRLead | Posted on 2009-05-11 11:20

Day Communiqué 4.x is a popular Content Management System (CMS) from DAY AG Software Group. It is used extensively for creation of applications because of its easy to use mechanism for creation of templates and components. Also its capability to handle large applications has contributed to extensive usage and gaining popularity of this CMS tool.

One of the most important features of a Content Management System is the ability to create Web pages dynamically. This is achieved by developing Communiqué Templates. Every Web page is based on a template and one template may generate many pages. Templates organize the layout and the content of the page.

PRE-REQUISITES:

1. DAY Communiqué 4.x is installed in the system, and is up and running
2. CQDE – the development environment for DAY Communiqué 4.x is also running
3. An application (say, training) has been created under the resources tab of the CQDE

STEPS:
1. Switch to the templates tab of the CQDE
2. Right click onto the tab section and choose “Create Template” from the context menu. This will start the Communique Create Template Wizard.
3. Welcome step is as follows:

4. From the Welcome step, click NEXT to proceed to the wizard’s Choose Template Label and Location step.
5. Fill out the next step as below (select the ‘training’ application) :

6. Click NEXT to proceed to the wizard’s Choose Template Information step. If necessary, change the template information as shown below:

7. Click NEXT to proceed to the wizard’s Choose Base Template step. Since, no such template is there currently, this step is to be skipped as of now.

8. In the wizard’s Choose Default CSD, select create new from the drop down as shown below. Proceed by clicking NEXT.

9. In the wizard’s Choose Script Type, select Java Server Pages (JSP) and click NEXT.

10. In the wizard’s Choose Script step, the wizard suggests start.jsp as the script name. Accept the suggested name. Choose “Use existing start script or create a new script” and click the NEXT button.

11. In the wizard’s Choose Script Globbing step, leave the script globbing as suggested “*”, then click on the NEXT button to go to the next step

12. In the wizard’s Choose Location step, add /training to the default value /content. This means that content pages using this template can be created only within the Training branch. Click on the NEXT button to go the next step.

13. In the wizard’s Overview step, the wizard will give you a summary of the Template Definition which will be created. You will still have the chance to do make changes.
14. If everything is ok click the NEXT button to create the new Template Definition.

15. In the wizard’s Stored step an overview of all the pages and files created will be given. To complete the template wizard, click on the FINISH button.

16. Now that the Template Definition is created, you will write the code for the starting Script. The “Create Template…” Wizard has created a new directory “templates/helloworld” where you will find the newly created CSD and start.jsp.
Switch to the RESOURCES Tab of the CQDE.
17. Look for folder /apps/training/templates/helloworld. If you should not find the folder, click with the right mouse-button into the pane and select REFRESH ALL from the Context Menu.
18. Open file start.jsp from the /apps/training/templates/helloworld folder.
19. Add desired code ,say “Hello, World” and save the file start.jsp

20. Start the Browser.
21. Type the URL http://localhost:4402/author (Port number of the Communiqué Web Server and the “Author” Instance).
22. Log in with credentials of superuser (superuser/superuser).
23. Select the Training branch in the Website pane.

24. Click on the NEW button to create a new content page.
25. Type a title like My first Content Page.
26. Type a label such as helloworld.
27. Choose the Training Helloworld Template created in the previous steps and click OK.
28. Click on the newly created page icon to see the result.

 

Rated 0.0 by 0 user.
JCR Developer Community Blog

BLOG STATS

5585 visitors have read this Blog

BLOG CATEGORIES

JCR: 18
Jackrabbit: 8
Sling: 24
CMS: 23
Future Trends: 7
Other: 6

JCR DEVELOPERS (level, posts)

Sujoy Bhattacharjee (bhatasuj)
JCRDev
Blog Posts 5 | Forum Posts 5
Romit Bose (romitbose)
JCRDev
Blog Posts 0 | Forum Posts 0
Ruben Reusser (reusr1)
JCRDev
Blog Posts 0 | Forum Posts 0
Wayne Lund (wxlund)
JCRDev
Blog Posts 0 | Forum Posts 0
Luis Fernandez (guisho)
JCRDev
Blog Posts 0 | Forum Posts 0
Jong Tenerife (jongdakkel)
JCRDev
Blog Posts 0 | Forum Posts 2
Jay Kerger (jkerger)
JCRDev
Blog Posts 2 | Forum Posts 2
Subhasis Chakraborty (subhasis)
JCRDev
Blog Posts 4 | Forum Posts 13
Nitesh Ambuj (nambuj)
JCRLead
Blog Posts 5 | Forum Posts 18
Amitava Chakraborty (meamitava)
JCRLead
Blog Posts 8 | Forum Posts 14