cancel
Showing results for 
Search instead for 
Did you mean: 

creating custom page and template

pchoe
Champ in-the-making
Champ in-the-making
I am trying to create a custom page/template to create new pages.

I created a folder in share:  Documents > Alfresco Quick Start >Quick Start Editorial > root >requestaccount

I set the Template Mapping to ws:indexPage=rqstacct

I than created rqstacct.xml file in my wcmqs webapp in the WEB-INF/pages:

<?xml version="1.0" encoding="UTF-8"?>
<page>
   <id>rqstacct</id>
   <description>Request User Accout</description>
   <template-instance>formblock</template-instance>
   <authentication>user</authentication>
   <components>
   </components>
</page>

I than created the formblock.xml and formblock.ftl in the WEB-INF/templates folder:
<?xml version="1.0" encoding="UTF-8"?>
<template-instance>
   <title>formblock</title> 
     <description>Template for basic form</description>
      <template-type>formblock</template-type>
   <components/>
</template-instance>
formblock.xml

test ftl
formblock.ftl

When I try to get to the page http://localhost:8080/wcmqs/requestaccount/ I get a 500 page error.

Is there a configuration I am missing to create a new custom page/template?

Peter Choe
4 REPLIES 4

drozes
Champ in-the-making
Champ in-the-making
Quick check, try restarting your instance just incase.

Also - this shouldn't change anyhting  - but remove the '<components />' in your xml.

pchoe
Champ in-the-making
Champ in-the-making
I have restarted the instance several times.  Including after clearing the work directory in tomcat folder and the contents of the temp folder.

For some reason any new page that I create and trying to set the template field either in the index.html page or the folder gives me a 500 page error.  It seems that wcmqs is not picking up the new xml file that I created for the page.

By the way, this is on Alfresco 3.4.5 Enterprise.

pchoe
Champ in-the-making
Champ in-the-making
Needed to make sure the <id> tag matched the name.  D'oh!

pchoe
Champ in-the-making
Champ in-the-making
Needed to make sure the <id> tag matched the name.  D'oh!