Loading...

RE: <%FilePath%> – what others are there for QListView

RE: <%FilePath%> – what others are there for QListView

#5595
Anonymous
Anonymous
Participant

Hello,

Let's suppose that the link to your your doc lib is the following: http://mysite/docs

This is how you can accomplish your scenario:

– Go to ezEdit->Display Fields->Add Field. This will create a custom field called <Custom1> (use the property Title to display a friendly name).

– In the Calculated Value add the following code:

<div id="link<%ID%>"></div>

<script language="javascript">

var lnk2="http://mysite/docs/Forms/AllItems.aspx?RootFolder=" + encodeURIComponent('<%Folder%>') ;

document.getElementById("link<%ID%>").innerHTML = "<a href=" + lnk2 + ">Click Me</a>";

</script>

This will create a custom column and the values displayed are "Click Me" as hyperlinks that would open the folder of the selected doc library item.

Please check the User Guide for more details related the custom fields, Calculated value property, etc.

If you have any questions/concerns please let me know.

Note:

1. If you display a large doc lib and you have pages then you need to turn off Ajax in order to have this working.

2. You can debug the above code in the browser or you can use alert to display teh values in case that you have issues.