Creating a multi-select in Jade/Pug - node.js

thanks in advance for any help / thoughts you can provide.
How can I create a multi-select dropdown in Jade/Pug?
Here's what I've tried:
span Skills
#output
form(method='get')
select.chosen-select(data-placeholder='Choose tags ...' name='tags[]' multiple='')
each skill in Skills
option=skill
This allows me to create a menu of items, but none can be clicked or selected.
I've been using this code as my guide, as this is exactly what I want to create. It uses chosen, which I've tried downloading and linking to in the script, but also cannot seem to get working.
Any help is very much appreciated - even if it's a much simpler way to accomplish this same goal, without using chosen.

Related

Azure Search suggestions setup

I've created an instance of Azure Search and I'm trying to make use of the suggesters functionality but struggling to find any useful information on how to get started (poor and out of date documentation from Microsoft).
I would like to use a suggestion on the name field below.
The issue is that fields require unique names and I'm unable to edit existing fields. I'm a little unsure of how the suggester tab differs from basic.
Does anyone have any advice on how best to add suggesters to my index? I am all for deleting the index and starting again if I've missed something critical.
I'm really sorry you're disappointed by the documentation. We take it very seriously and will make sure to address your feedback. Feel free to make suggestions.
On the screen you provided, you should specify a name for the suggester. Once you do that, checkboxes will show up next to your field names. Using the check boxes you will enable the Suggestions API on selected fields.
Use the name of the suggester as a value for the suggesterName parameter when using the Suggestions API : https://msdn.microsoft.com/en-us/library/azure/dn798936.aspx
Please find more details in this article about suggestions in Azure Search. It describes a sample application with code attached.
Hope that helps.

Categorized View Displaying the Categorized Twistie without Document

I created a view that is categorized, in that view it is displaying the Categorized Twisties without documents under it. Basically it should really not display the document so the twistie must not be displayed too, it is working fine for other items but for a specific one it is displaying. What are the possible causes of this problem? I've been trying to debug and play with it but the codes is working fine and it really should not display.. I would appreciate help.. I know it's simple but I don't know how to solve it sorry, it's consuming too much of my time.. so I asked it here..
Sample
Thanks a lot guys
This is a view property called "Don't show empty categories". You find it on the third tab of the view properties in the section "Rows".

Documents that appear in more than one category are pasted multiple times when using Copy Selected As Table

I have to fix the problem in the title and after one day of research I realy don't know what else to try, what else to google ;)
The topic is discussed in an IBM TechNote.
But this answer isn't enough for me. I really need a workaround!
My question: Can I 'get between' the User clicking the 'Copy as table' and the actual copying of the table?
I see two ways of solving my problem (I don't know how to implement them):
If I just could show the user a Messagebox 'Use our own export agent' that would be great.
If I could convince Notes to just copy each document only once that would be even greater.
If I should make my question more precise, just ask. I will gladly edit it!
Every answer would be highly appreciated. Out of the box thinking, other approaches, I like to hear your opinion!
Friendly Greetings
Josi
Unfortunately there is no way to hook in and alter the results of the Copy Selected as Table method. If it is possible to show an "Export Friendly" view that is not categorized, that is one way to solve the problem.
I'm not sure how useful it will be to you, but many years ago I wrote a sample project for exporting views to Excel, and that should handle categorized views properly. There are surely other options available by now too (though I'm not familiar with them).

adding search capability to my map

Can someone please explain to me how I can get the search functionality from this:
https://developers.google.com/maps/articles/phpsqlsearch_v3
to work with your map when you have followed this tutorial:
https://developers.google.com/maps/articles/phpsqlajax_v3
I've basically done both tutorials, just learning and I can make them work flawlessly seperately, however i want to port across the searching options from the first tutorial when having a map created via the first one.
I have the following:
sql database with all my info
XML output working perfectly
all markers working nicely with custom icons from the sql xml output
searchbox + all textbox/buttons in place.
Now i just need to make it work lol, no code in place for it at the moment. I just want it to search and display certain locations within a certain radisu
Any help is greatly appreciated, thanks alot :)

A minimal code webpart that displays a single picked item from a list

I'm not sure this is possible, but figured I´d give it a shot. First a few pre-requeistes and environment details:
I´m using SharePoint 2010, SharePoint
Designer 2010, VS 2010
I want to create as little code as
possible, preferably, create it all via UI or Designer
use out of the box components as much
as possible
Here is What I want to do:
Have a custom list with custom columns (easy part)
Create a webpart with an edit interface to select a single item from this list
This same webpart when visible would display the contents of this selected item in a given layout
I know I can do this creating a custom web part and code it all from scratch, I guess my main question is, is there a way to do this with less code and more out of the box components in SP2010. If not, I guess I'm left with lots of C# code.
Any tips, or pointers in this direction will be most welcome. Thanks in advance.
I think what you're looking for is the Data Form Web Part.
Unfortunately, I can't find any good tutorials for 2010, but hopefully the steps should be similar to setting it up in 2007.
Thanks all for the update. In the end, i had to create quite a bit of code to get this to work:
created a web part that enumerates
the content type,
creates a light box that has a picker
then stores the ID of the content in a column
Not the easiest way,but the only way I could get it working. Thanks again!

Resources