cancel
Showing results for 
Search instead for 
Did you mean: 

External link as Content file name

sanjaybadola
Champ in-the-making
Champ in-the-making
Hi,

I am new to Alfresco. Here is my requirement. I am able to create a html content with some content file name and it just navigate to that content page and I have few external links there.

But now I have to display  external links as the content file name so that when the file name is clicked it will navigate  to the link. Is this possible and how it can be achieved?

Thanks,
Sanjay
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
I think you can straight away use this simple
<a href="http://www.yahoo.com">FileName</a>

tag in your html file.

sanjaybadola
Champ in-the-making
Champ in-the-making
I am getting this error right now

Failed to create content due to error: 08207944 Found 1 integrity violations: Invalid property value: Node: workspace://SpacesStore/4e06b9f5-659a-437a-bcd7-4e33ee69876a Type: {http://www.alfresco.org/model/content/1.0}content Property: {http://www.alfresco.org/model/content/1.0}name Constraint: 08207943 Value '<a href="http://www.yahoo.com">Yahoo</a>' is not valid as a file name. This property must be a valid file name

When I try to create a content using Content Wizard I want to create a link with the file name. is it possible

mitpatoliya
Star Collaborator
Star Collaborator
Just create simple file lets say test.html

Once you have created that you will have various links associated with that content like download link,view in browser link etc..

Now you create another content lets say test1.html where you can place that tag which I have mentioned as a content of that file not as a part of that file name.
Once that file is created you will be able to see the link.