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

Question

Question

Weblink line break

asked on May 15, 2018

My client was wondering if it is possible to insert line breaks or put columns in the weblink home page for the search form bookmarks.

They are on version 10 of weblink, and we can't find an option for this in the designer. We managed to find the xml file with the bookmark links and text, but we are not really sure how to go about editing it to include line breaks as the changes we have made break the site(adding 
 to the end of the lines).

Has anyone else made a similar customization or know of an easier way to accomplish this?

 

Thanks for any insight!

0 0

Replies

replied on May 30, 2018 Show version history

Hi Ricardo,

 

The easiest way to add a line break is to add a dummy search form tag inside the bookmarks.xml

1) Navigate to C:\Program Files\Laserfiche\WebLink\WebLink\Web Files

2) Edit file bookmarks.xml:

At the position where you would want to add a line break, insert

<SearchForm></SearchForm> 

It will be similar to:

<Bookmarks>
      <SearchForm ID="testsearchform1" Display="testsearchform">sf </SearchForm> 
      <SearchForm></SearchForm>
      <SearchForm ID="newSearchForm" Display="newSearchForm">sf2</SearchForm>
      <SearchForm ID="testsearchform2" Display="testsearchform">sf </SearchForm> 
      <SearchForm ID="testsearchform3" Display="testsearchform">sf </SearchForm> 
    </Bookmarks>

3) Save file and refresh browser.

 

If you would like to add line break for all custom links:

1) Navigate to C:\Program Files\Laserfiche\WebLink\WebLink\Web Files\xsl

2) Edit Bookmarks.xsl

Add an extra <br /> behind all <br />, so it will look like:

<xsl:template match='//Folder'>
		<a href='Browse.aspx?id={@ID}'>
			<xsl:value-of select='.'/>
		</a>
		<br/> <br/>
	</xsl:template>

	<xsl:template match='//SearchForm'>
		<a href='CustomSearch.aspx?SearchName={@ID}'>
			<xsl:value-of select='.'/>
		</a>
		<br/> <br/>
	</xsl:template>

	<xsl:template match='//Document'>
		<a href='DocView.aspx?id={@ID}'>
			<xsl:value-of select='.'/>
		</a>
		<br/> <br/>
	</xsl:template>

	<xsl:template match='//URL'>
		<a href='{@Link}' target='_blank'>
			<xsl:value-of select='.'/>
		</a>
		<br/> <br/>
	</xsl:template>

This will add a line break to every "Folder", "Search Form", "Document", "URL" type custom links.

3) Save file and refresh browser.

 

For columns, unfortunately you would have to edit the html manually which is a case by case situation and would be more complicated.

 

Hope this helps!

Thanks,

Julia

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

Sign in to reply to this post.