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

Question

Question

Weblinks Search Forms on the Folder Browser Link

asked on July 21, 2014

 Is there any future plans to allow for Search Forms as Bookmarks on the Browser LInk and/or Search link?  We currently have searches set up in the Welcome page, but the customers go to the Browse page to see the folders.  

 

This would be great to have on the chosen folder level.  An example:  City Ordinances currently have text and the metadata fields of Description, Ordinance Number, Ordinance Passed Date, Ordinance Type.  We currently have search forms set up for these fields on the Welcome Page (See attached file for Image examples).

 

If the customer can see the Ordinances listed at the Browse link and have the canned searches listed at the top of the window, that would be Great.

 

City Clerks receive many Ordinance search requests and if the citizens could perform easy canned searches, the Clerks would love it and improve their quality of life.

1 1

Answer

SELECTED ANSWER
replied on July 30, 2014

Ray,

 Make sure that you have the following code after the </html> tag in your Browse.aspx page.

 

<script language="vbscript" runat="server">
Private Sub Page_Init() Handles MyBase.Init, Me.Init
 Bookmarks.connection = m_Conn
End Sub
</script>

Also, are you using WebLink 8.2.2?

 

The error you are receiving is the same error I received before adding in the ASP.NET code in Browse.aspx

 

You can see this customization in action at https://www.cityofaikensc.gov/WebLink8/Browse.aspx?startid=7288

1 0

Replies

replied on July 21, 2014

We don't have any specific plans to add those links to the browse page, but this is the sort of customization that you should be able to make for your own installation.  The code that adds the bookmarks to the welcome page is just:

<weblink:Bookmarks BookmarkFile="bookmarks.xml" XslFile="xsl\bookmarks.xsl" ID="Bookmarks" runat="server" />

 

1 0
replied on July 22, 2014 Show version history

Actually just using that code alone will produce an error. You will also need to set the connection for the Bookmarks control in the code behind or if you don't have the option to recompile the code then open up Browse.aspx and add the following after </html>;

 

<script language="vbscript" runat="server">
Private Sub Page_Init() Handles MyBase.Init, Me.Init
 Bookmarks.connection = m_Conn
End Sub
</script>

 

Now you can safely place the Bookmarks control in the page.

 

<weblink:FolderMetadata id="TheFolderMetadata" runat="server"></weblink:FolderMetadata>

<weblink:Bookmarks BookmarkFile="bookmarks.xml" XslFile="xsl\bookmarks.xsl" ID="Bookmarks" runat="server" />

 

Here you can see I placed it after the FolderMetadata control in Browse.aspx

 

 

Now to make it look somewhat presentable in the left hand column in Browse.aspx copy and paste the following right after the FolderMetadata weblink control tag:

 

<div id="TheFolderBookmarks" class="FolderMetadataDiv">
<div class="FolderSectionHeader">
<a title="Hide" id="__BookmarksExpando" class="FolderExpandoClass" href="javascript:void(0);" onclick="ToggleSectionVis('__BookmarksDataSection','__BookmarksExpando');">
<img src="images/chevronup.gif" class="FolderSectionExpando">
<span class="FolderSectionTitleText">Bookmarks</span>
</a>
</div>
<div id="__BookmarksDataSection" class="FolderSectionBody">
<div class="DataSection">
<weblink:Bookmarks BookmarkFile="bookmarks.xml" XslFile="xsl\bookmarks.xsl" ID="Bookmarks" runat="server" />
</div>
</div>
</div>

 

2 0
replied on July 30, 2014

I did the above and received an error message saying "The system has encountered an error and could not complete your request" (screen print below).  You could click on the link "Back to Welcome Page" and it would take you to the Welcome Page. But, that was it.  So, I quickly moved my Original Browse.aspx file back. My weblinks panes are viewable at www.jeffcitymo.org and then click on the Document Center button on the left hand side of the web site. Basically I would like to have the 4 bookmarks searches in the Header on the Home (Welcome Page) displayed on the Browse pane. That is the default pane. I have attached my non-working Browse.aspx (renamed to Browse.txt) file with the recommended changes. Thank You for your help.

 

Browse.txt (5.04 KB)
0 0
SELECTED ANSWER
replied on July 30, 2014

Ray,

 Make sure that you have the following code after the </html> tag in your Browse.aspx page.

 

<script language="vbscript" runat="server">
Private Sub Page_Init() Handles MyBase.Init, Me.Init
 Bookmarks.connection = m_Conn
End Sub
</script>

Also, are you using WebLink 8.2.2?

 

The error you are receiving is the same error I received before adding in the ASP.NET code in Browse.aspx

 

You can see this customization in action at https://www.cityofaikensc.gov/WebLink8/Browse.aspx?startid=7288

1 0
replied on August 1, 2014

It worked and looks great.  I also changed the name from on the weblinks sode panel from Bookmarks to Searches. The City Clerk likes it and should sae her some work in the future as the citizens can use these canned searches on the Browse pane.  Screen Print below

 

I need to experiment with the colors and make that work (change Yellow to Purple).  Thank You Sir. 

2 0
replied on August 1, 2014

You are very welcome and glad to hear you got it working. wink

0 0
replied on August 5, 2014

I'm back.  I tried to change the font color on the Browse pane from yellow (#FFCC00) to the purple font (#2C2391) in both the weblinks designer and the WEBLINKSTYLES.CSS file (inserted Color: #2C2391; in several places like foldersectionbody section but no luck).   What I am thinking is that it is carrying the yellow font from the Home (Welcome) Pane (screen print below) bookmarks section and carrying it to the Searches (I renamed it from Bookmarks) on the Browse pane.  I am sure that it can be changed, but not sure where in the WEBLINKSTYLES.CSS file.  Sometimes the theoretically easy ones are the hardest. I have attached my weblinkstyles.css file (converted it to a text file). 

 

 

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

Sign in to reply to this post.