[Yanel-dev] resource URL

Michael Wechner michael.wechner at wyona.com
Tue Jun 30 09:28:35 CEST 2009


Prabodh Upreti schrieb:
> Hi
>  
> I was looking at file index.html which has a URL to the resource to 
> create new user.  The URL is:
>  
> ../create-new-page.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Ayanel-user
>  
> Q:  How do figure out the link to a new resource I create?
I am not sure understand your question correctly, but at the last step 
(2, after clicking "save as") this URL will be provided, for example it 
says:

Create new page (step 2)
Resource has been created

    * rp.mime-type: text/html
    * rp.title: Hello Prabodh
    * rp.source-mime-type: application/xhtml+xml

New resource can be accessed at: ./en/prabodh.html

>   I want to put a forgot password link in a page that has a link to 
> that resource.

well, it seems to me that you rather want to add this link to the login 
screen, which can is generated by the following XSLT

src/webapp/xslt/login-screen.xsl

or rather in the case of deployment

local/apache-tomcat-5.5.20/webapps/yanel/xslt/login-screen.xsl

and then it points to the "forgot-password.html" resource, which for the 
moment you can add statically to for example

src/realms/from-scratch-realm-template/res-configs/forgot-password.html.yanel-rc

containing the forgot-password resource type info, for example with a 
configurable path/collection

<yanel:property name="change-password-requests-path" 
value="/yanel/change-password-requests"/>

where all the files are located containing the change password request 
infos, such as for example e-mail, expire, etc.

HTH

Michael
>  
> Thank you.
>  
> Regards
>  
> Prabodh
>



More information about the Yanel-development mailing list