Loading...

RE: Web Part to display a list across columns

RE: Web Part to display a list across columns

#5823
Anonymous
Anonymous
Participant

The field expression <%FieldName%> translates to the value for each row in the qListView. To get the URL, assuming that there is a field in the list you are connecting has a field named "URL", then you can use field expression <%URL%> to get the value, same as the way you output the <%Name%> >field. And your javascript would output something like:

document.write("<a href='<%URL%>' ><%Name%></a>");

The approach is really a quick way to display content and is driven by the web part on a per row bases. To sort it in the order you wanted by certain field, you would need to specify that in the Display Field tab "Sort Field" not doing here in the JavaScript or Custom Display.

You can output any HTML code here. Not necessary a table/tr/td elements but could be any div tag with classes that you have. You may try to add colspan to the header so it center on the table.