Hyperlinking of the custom aspect value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2014 08:26 AM
Hi Team,
I have a Custom aspect property value which I need to make it as hyperlink (eg: title =knowledge base)to make knowledge base a hyper link, and on click of the hyper link I have to invoke the web script.Can some body help me out with this.
I am using 4.1 enterprise edition.
Regards
Srikanth S
I have a Custom aspect property value which I need to make it as hyperlink (eg: title =knowledge base)to make knowledge base a hyper link, and on click of the hyper link I have to invoke the web script.Can some body help me out with this.
I am using 4.1 enterprise edition.
Regards
Srikanth S
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2014 08:38 AM
Hi,
It's actually quite easy to do.
First, you'll have to create a new form control.
The control definition contains both the read and write views.
I suggest you base yours on the default text component and tweak a bit (add a javascript verification for the url format in edit mode. add a link tag in read mode)
Second, you'll have to update the form definition
This is configurable in share-config-custom.xml where you just redefine the form for your aspect.
Here you can override the default form control for your metadata and force it to use your custom control
It's actually quite easy to do.
First, you'll have to create a new form control.
The control definition contains both the read and write views.
I suggest you base yours on the default text component and tweak a bit (add a javascript verification for the url format in edit mode. add a link tag in read mode)
Second, you'll have to update the form definition
This is configurable in share-config-custom.xml where you just redefine the form for your aspect.
Here you can override the default form control for your metadata and force it to use your custom control
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2014 11:43 AM
Hi scouil,
It would be really great if you provide me with an example programmatically .
Regards
Srikanth S
It would be really great if you provide me with an example programmatically .
Regards
Srikanth S
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2014 12:09 PM
Sure.
You'll find an example for the first here:
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/V4.2e/root/projects/web-fr...
And for the second here:
http://wiki.alfresco.com/wiki/Forms#control
Give it a try and come back here if you're stuck. I'll be glad to answer.
You'll find an example for the first here:
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/V4.2e/root/projects/web-fr...
And for the second here:
http://wiki.alfresco.com/wiki/Forms#control
Give it a try and come back here if you're stuck. I'll be glad to answer.