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

Question

Question

WebLink Problems

asked on October 13, 2016 Show version history

Hi.  I have customized DocView.aspx (and .vb) a little bit in Visual Studio.
I am having some minor and major problems.

1 - Title tag can not be changed using the title tag in the html head. How can I do this?

2 - Where does WLConnection.LogError write error information?

3 - the querystring param &cr=1 can cause an error the first time Docview.aspx is shown,
but it isn't being written by me.  Is there any way to avoid this?

4 - I don't think this is related to #3.
On a server, I get an error on the first DocView.aspx try, but it works on the second try.
If there is no action for 20 minutes, then next time I try, I get an error.
Is there a session connection that I can open before the first use and keep open?

5 - This was asked here, but no answer was given.
https://answers.laserfiche.com/questions/99272/How-to-remove-Metadata-and-Annotations-tabs-from-the-left-table-on-the-DocView-page-in-Weblink

In brief, does anyone know why these work in WebLink 8.3, but not in WebLink 9?
    MetadataTab.Style("Display") = "none"
    AnnotationsTab.Style("Display") = "none"

 

Thanks, Howard

 

0 0

Replies

replied on October 14, 2016

I solved #'s 1 and 4, and I think #3 is related to 4.  So if anyone can help on these two others, I'd appreciate it.

- Where does WLConnection.LogError write error information?  I'd like to be able to add Exception info.

- The left side of DocView.aspx has 3 tabs, but I need to hide two of them.  In WebLink 8.3, these worked in aspx, but not in 9.0.

MetadataTab.Style("Display") = "none"
AnnotationsTab.Style("Display") = "none"

And in WebLinkStyles.css, display: none; does not work for these tabs. Why not?

 

Thanks again for any help!

 

0 0
replied on March 20, 2019

Try this:

doc-viewer-app .ulTabs li:nth-child(2) {
    display:none!important;
}

0 0
replied on February 18, 2021

How did you end up changing the title tag in the html head?

0 0
replied on February 18, 2021

I would guess in the code-behind (.vb) using something like `Title = "The Title You Want"`

0 0
replied on February 19, 2021

And the reason that our applications will typically assign page titles in the code behind rather than putting a <title> tag in the aspx is that we have a single page that supports multiple languages. That means that the value is dynamic and has to be handled in code.

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

Sign in to reply to this post.