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

Question

Question

Is it possible to duplicate a search form?

asked on May 23, 2018

Hi all,

 

Using WebLink Designer, is it possible to duplicate a search form or should I need to create a new one each time?

 

Thanks in advance.

Regards

0 0

Replies

replied on May 29, 2018

Hi Olivier,

 

Yes there is a way in WebLink 10 and 10.1.

There are 2 files you would need to copy, and 3 files you would need to edit.

1) Navigate to C:\Program Files\Laserfiche\WebLink\WebLink\Web Files\Custom\searchforms\YOUR_REPO_NAME,

2) Find the SEARCH_FORM_NAME.xml and SEARCH_FORM_NAME.designer.xml that you would like to make a duplicate from.

3) Copy and paste the two .xml under the same folder. But rename it to a new search form name such as SECOND_SEARCH_FORM_NAME.xml and SECOND_SEARCH_FORM_NAME.designer.xml

4) Edit SECOND_SEARCH_FORM_NAME.xml. At the top of the file, look for:

<SearchForm Name="SEARCH_FORM_NAME" Description="someDescription" Version="SomeNumber">

And change it to: 

<SearchForm Name="SECOND_SEARCH_FORM_NAME" Description="someOtherDescription" Version="SomeNumber">

”Name“ should be the same as your new .xml file name

"Description" you can write any description you like.

"Version" should be kept the same i.e. 10

5) Edit SECOND_SEARCH_FORM_NAME.designer.xml. At the top of the file, look for:

<SearchForm Name="SEARCH_FORM_NAME" Description="someDescription" Version="SomeNumber">

And make the same edits as in SECOND_SEARCH_FORM_NAME.xml

6) Edit searchformslist.xml

Add a new line of code under the existing <SearchForm> tags

<SearchForm ID="SECOND_SEARCH_FORM_NAME" Name="SECOND_SEARCH_FORM_NAME" Description="someOtherDescription" Version="someNumber" />

"ID" should be the same as your new .xml file name

”Name“ should be the same as your new .xml file name

"Description" should be the same as what you have edited in the above .xml files.

"Version" should be kept the same i.e. 10

7) Save all the files, and fresh browser. Your new search form would appear in Designer. You would have to add a custom link to the new search form in order to show it inside welcome page.

 

Thanks!

Julia

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

Sign in to reply to this post.