cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlinking of the custom aspect value

srik
Champ in-the-making
Champ in-the-making
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

3 REPLIES 3

scouil
Star Contributor
Star Contributor
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

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

It would be really great if you provide me with an example programmatically .

Regards
Srikanth S

scouil
Star Contributor
Star Contributor
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.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.