Would anyone have the solution for hiding the Entry Properties section in Weblink 11, please? Preferably, from Styles.css. We have found that the CSS changes placed in the "Custom Weblink CSS" section not only work well but without unpredictable side effects. I tried the solution listed for Weblink 9 (Is there a way to hide or collapse Entry Properties from Weblink 9 Browse? - Laserfiche Answers) with no luck. Thank you in advance.
Question
Question
weblink 11 Hide "Entry Properties"
Answer
Stuart,
Open up the browse.aspx file in a text editor, copy the code below, paste the code right above the </body> element, save the file, and refresh the page.
<script type="application/javascript"> var loaded = 1; (function() { var proxied = window.XMLHttpRequest.prototype.send; var sent = false; window.XMLHttpRequest.prototype.send = function() { sent = true; var pointer = this var intervalId = window.setInterval(function(){ if(pointer.readyState != 4){ return; } clearInterval(intervalId); if(sent) $("span[lflocalize*='STR_METADATA']").parent().remove(); $("table#metadataTable").parent().remove(); if(loaded ==1) $("span[lflocalize*='PREVIEW']").parent().click(); sent = false; loaded +=1; }, 1); return proxied.apply(this, [].slice.call(arguments)); }; })(); </script>
Hope this helps!
Wesley Funderberg
Replies
Thank you, Wesley. It works and looks great now!
Thank you again, Wesley. Unfortunately, I seem to be getting those unpredictable side effects, though. The form is clean, completely without the Details tab, which is OK. However, the preview tab, which remains, just flashes and flutters and seems as if it is continuously and unsuccessfully trying to load. It feels like something depended on the hidden controls and now does not work properly.
Stuart,
Last night I realized I forgot to put logic in the code to make sure that I send the "click" event once to the Preview button. I have updated the original code that now includes this logic and it works as expected. Please let me know if you find anything else quirky with it.
Thanks!