filter out of the box list templates - sharepoint-2010

How can I hide (filter) some of default list templates programmatically.
the list["List template gallery"] is empty and web.ListTemplates[1].Hide is read only.

Related

Thymeleaf condition to display a list

There is a list and if the list is empty we need to hide the tile in the frontend and if the list is not empty we have to display the tile with list if the list is not empty

Add items to drop-down list Word 2010

I created a document and added a drop-down list content control in Microsoft Word 2010. How would I select this object and add items to it via VBA? An exhaustive search has led to being able to add one and add items, but I want to know how to add items to a list already on the document.
Also, is it possible to change the extension of a Microsoft Word 2010 document to (.zip) and add in an XML file. This XML file would house all the items to be added to the drop-down content control.
Something like
For Each item In ActiveDocument.ContentControls
If item.Title = "DropDown1" Then
item.DropdownListEntries.Add Text:="Item1", Value:="Item1"
item.DropdownListEntries.Add Text:="Item2", Value:="Item2"
Exit For
End If
Next
You can find it by title or tag. Or by type - if it is only one dropdown in the document.

Add customize field in blocklayered

I have problem with add new custom field to search in blocklayered Prestashop.
How I can add new search field with custom type such as:
add textbox to search product by name
add textbox to search product by producer
add textbox to search product by quality
I tried to add custom field but it did not work.
in this case it's necessary to rebuild search functions located in Search.php class (classes/Search.php)
it's necessary to include these fields to search queries.

SharePoint 2010 SPD Workflow copy list item to new list and designate the content type

I have a functioning SPD workflow that copies the list item from list A to list B when the item in list A is marked approved.
My challenge is that list B has three content types to chose from. How do I designate which content type in list B to use when copying. I have a listbox that the user gets to choose what kind of a tool is being loaded. Some tools have required calibration dates and other tool specific items therefore the different content types.
I don't think you can specify the content type with Copy List Item - it should default to the default content type.
What I'd do instead is have my workflow Create List Item in List B, populating fields with values from Current Item. You can set Content Type ID by this process but it doesn't accept a variable, so use an If/Then block for each Tool type that only runs if that listbox value is selected.
Hope this helps!

Extjs4:Multiselect Option

In my form,i have a list of employees in a combo box and i need to map some employees to particular department.I need to change the combo-box to List box.Scenario is as follows,
1. List A contains all employees.
2. If i click 'Add' button the selected employees must move to list B
and list A must contain remaining employees
.
I searched for List box but i couldn't find in extjs4.
Is there any example or link for multiselect listbox in ext-js4?
Thanks
There is no built-in ListBox widget in ExtJs4. However, Ext.view.View may become an listbox after some manipulations.
Here is an example of such a tuned View. Demos may be found here, here and here (this one looks like just what you need).
You can create two such listboxes and the "add" button. Then assign handler to button which would remove selected item from the first listbox's store and add it to the second's store.