cancel
Showing results for 
Search instead for 
Did you mean: 

adding the static html files inside ftl

srik
Champ in-the-making
Champ in-the-making
Hi Team,

I am using alfresco 4.1 enterprise edition, I have a static html and corresponding js and css files.I am creating the web-script for launching the static html from alfresco share  ,I have created the following files.

1)xyz.get.desc

2)xyz.get.head

3)xyz.get.html

4)xyz.get

5)corresponding js.

I have configured the pages and template instance to .

The problem is where do I put my static html .Should I put it under the ftl file ,if so what are the steps that needs to be followed .

Regards
Srikanth S
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
It should be

1)xyz.get.desc.xml

2)xyz.get.head.ftl

3)xyz.get.html.ftl

4)xyz.get.js

5)corresponding js.

now from all this files which static html file you are referring? If it is no 3 then it should go along with rest of the files.

srik
Champ in-the-making
Champ in-the-making
HI,

I have static html as stand alone I have to include it in the ftl ,so how would I do it.

Regards
Srikanth S

mrogers
Star Contributor
Star Contributor
Just add your html into the ftl file.   At its simplest take your html file and just rename it.

If you want something more sophisticated then look at the import and/or include statement in freemarker.

srik
Champ in-the-making
Champ in-the-making
Thanks for the update it's working fine. But the corresponding java script files are not getting called where should we place the js files for correct rendering of the page.


Regards
Srikanth S

kaynezhang
World-Class Innovator
World-Class Innovator
You should have a file named xyz.get.js which is the controller js.If you have other js file that should be called by xyz.get.js,you can put it in class path and import it into xyz.get.js.
for example if you place your xyz webscript in "classpath:/alfresco/templates/com/yourcompany/xyz" and also put corresponding js.under "classpath:/alfresco/templates/com/yourcompany/xyz".In xyz.get.js import corresponding js like this

<import resource="classpath:/alfresco/templates/com/yourcompany/xyz/corresponding.js">

srik
Champ in-the-making
Champ in-the-making
Hi ,

Thanks for the update. I want to launch the new tool(review studio)  form alfresco.The review studio team has given the static html pages which I have put it in the xyz.get.html.ftl that is working fine and also they have given images folder and "8" java script files ,the problem is i imported the js files as u mentioned above but found few errors .Can u please provide me the configuration with an example that would be really helpful.


Regards
Srikanth S