You are viewing limited content. For full access, please sign in.

Question

Question

Weblink Customization

asked on June 26, 2014

Have a few requests for a client that is using Weblink.  They wanted column views so we had to switch Weblink8 back to displaying results like version 7.  Now however they also want a few other things.

 

Is there a way to hide the document name and hit columns from the search results?  I have explained that this is not the best idea but they use Laserfiche quite differently than usual.  They only go off metadata and nothing else.

 

Second is the default view of the document.  Is it possible to default the document viewer in Weblink to show thumbnails instead of metadata?  

 

We have done other custom stuff but these two things we cannot seem to narrow down.

 

Thanks

 

 

0 0

Answer

SELECTED ANSWER
replied on June 26, 2014 Show version history

To default the doc view to thumbnails rather than metadata, simply add some custom javascript to the bottom of DocView.aspx. The following line should do the trick:

 

document.getElementById("ThumbnailsTab").click();

 

This will send a click event to the thumbnails link as the page loads. To the user, it appears that thumbnails defaults to selected.

 

As for removing columns, I haven't worked with WebLink 7 myself, so I can't offer much advice. I did a bit of research however and it looks like you'll have to make some edits to the Search.aspx. I did find one useful thread on the old forums.  Wes Funderberg's reply shows how to remove the hit's column. Note that his fix doesn't remove the Name column, so you might have to experiment with that one a bit yourself. But hopefully, this thread should get you moving in the right direction.

0 0
replied on June 27, 2014

Thanks Ryan.  I'll see if we can figure it out by looking at that article.

0 0
replied on June 27, 2014

Actually I keep getting that old redirect 143.26 error when trying to view any of the old forum posts (never have been able to).  Is is possible for you to post Wes' response here?

 

Thanks

0 0
replied on June 27, 2014

 

Sure. Here's the post:

 

In Search.aspx find
 

Code:
<weblink:searchresultsbrowser8 SortableColumns="COLUMN_TYPE_LASTDATE, COLUMN_TYPE_CREATEDATE" AdditionalProperties="COLUMN_TYPE_CREATEDATE, COLUMN_TYPE_LASTDATE, COLUMN_TYPE_NUMPAGES, COLUMN_TYPE_TAGS" ThumbnailCount="5" id="TheSearchResultsBrowser" runat="server" width="100%" MaxLength="20" />



Add "COLUMN_TYPE_NAME" to the SortableColumns attribute (1st) and add the attribute DefaultSortField with a value of "Name". Doing so will remove the "Hits"
 

Code:
<weblink:searchresultsbrowser8 SortableColumns="COLUMN_TYPE_NAME,COLUMN_TYPE_LASTDATE, COLUMN_TYPE_CREATEDATE" DefaultSortField="Name" AdditionalProperties="COLUMN_TYPE_CREATEDATE, COLUMN_TYPE_LASTDATE, COLUMN_TYPE_NUMPAGES, COLUMN_TYPE_TAGS" ThumbnailCount="5" id="TheSearchResultsBrowser" runat="server" width="100%" MaxLength="20" />
1 0
replied on June 27, 2014

To workaround the issue with the old forums, visit the support site, click "Log out" in the upper right-hand corner, then click on the link Ryan provided. You should be presented with a log-in page, then successfully taken to the forums after logging in. Sorry for the inconvenience.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.