cancel
Showing results for 
Search instead for 
Did you mean: 

customizing getting-started page

tejaswini
Champ in-the-making
Champ in-the-making
hi…
   i am trying to customize the getting started page. what i want is …
       1) instead of tour i want say e.g. my info.
       2) on clicking that i want my info page to be opened.
what i able to is just placing a logo with name my info.
     i tried to write something as
<a:actionLink href="/jsp/my_demo.jsp" target="new" style="font-weight:bold" value="my info" />

it is displaying the whole.jsp page as it is. do anybody know how to do this?????

also if i want to use template how to go for it..which steps i have to follow???
thanks in advance
5 REPLIES 5

sselvan
Champ in-the-making
Champ in-the-making
If I understand correctly, you want to tweak and customize the Alfresco Explorer's "Getting Started" dashlet.

Note: Please follow the customization guidelines, by moving to extension directories, though I have not mentioned anything about it below.

1) You will have to start editing from <ALF_HOME>/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml to add your new dashlet.
2) Write webscripts desc, js, jsp (<ALF_HOME>\tomcat\webapps\alfresco\jsp\dashboards\dashlets) for your new custom code and add to the code base - using (replicating) the existing Getting Started code.
3) Once you have registered the new webscript, I think you can add the new dashlet via the user interface.

Let me know how it goes! Hope this is helpful!

tejaswini
Champ in-the-making
Champ in-the-making
thanks…
   ya,u r right thats the dashlet i want to customize.i has already written a simple jsp just to test how it works as
 
<r:template template="WEB-INF/classes/alfresco/templates/my_spaces.ftl">
</r:template>

and this jsp i am
<a:actionLink href="/dashboards/dashlet/my_demo.jsp" target="new" style="font-weight:bold" value="my info" />

then new window opens but that says…
javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the <servlet-mapping>-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message.

can u guess why is this????

u told to write some config.what is that and where to write that?

thanks once again….

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
\jsp\dashlets\getting-started.jsp
just change this page to mach your needs.

<a:actionLink href="/dashboards/dashlet/my_demo.jsp" target="new" style="font-weight:bold" value="my info" />

this does not work. your address is wrong too, you have faces before your address.


you have to add dialog in webconfig and bean to be behind your dialog.  check this dialog:showNodeBrowser
so 

<a:actionLink action="dialog:blatruc"  value="Text"  style="font-weight:bold"  />

something like this and some programming knowledge…

tejaswini
Champ in-the-making
Champ in-the-making
thanks…
   i did something like…

<servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*</url-pattern>
   </servlet-mapping>
and now i getting the page displayed.
    i dont know its violating some rules or not but its working…

thanks once again…

one more thing…
what is the best way to learn alfresco development??as customization…programming etc.
i am having user guide but still if there is any other resource which i can give me better idea…..
goodday!!!

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
when you spend time working with it you learn the trics.