Sharepoint 2013 PowerShell and localization - sharepoint

Here is my problem:
I have a US server with language pack installed.
I created a site collection in french.
I localized my feature that creates new content types.
If I activate my feature via the site collection (Web), my content types are in french.
If I activate my feature via PowerShell, my content types are in english.
I want to be able to activate my features via Powershell and have the right language used. Is it possible ?

Despite the examples I found on the Sharepoint server, it's not recommended to define displayname of fields in the content type itself... so got it working

Related

Defining Default Open Behavior in Sharepoint 2010 + Office Web Apps with Custom Webpart

I am running Sharepoint 2010 with Office Web Apps. By default, any document of type .doc, .ppt, etc... will open within the browser from the document library. This is fine, however I am using a web part that is pulling in an XML feed that displays a search engine result list that contains URL links to Word and PPT documents.
I would like to have these links behave the same way as they do in the document library (open in browser), however the user is prompted to download these files instead. Is it possible to dictate this behavior in Sharepoint?
Unfortunately I don't think this is possible unless the documents are hosted in SharePoint and the Office Web Applications feature is activated. The in-browser behaviour is made possible by this server-side feature. I assume that the search-engine derived links you are getting will not, in general, be SharePoint hosted documents.
It is possible to open documents in the browser, but this is a client setting and will depend on the client operating system. You say you want to control this from SharePoint, and I can't think of any way you can do this.

Multilingual sharepoint Site Creation - The Site definition I have developed does not appear to create site

I am new to Sharepoint.
Currently I am using VS 2005, WSS 3.0 for creating a site definition. My requirement is to create a site definition with master pages, web parts, etc... I have created a site definition in VS 2005 using team site definition option. deployed the developed site definition to sharepoint.
When I try to create site using the site definition I deployed in English version I am able to do so and working fine.
when I try to select German as Language (or any language), my site definition is not displayed there. (While it displays other previously created site definitions by others).
I have created Templates/1031/xml/webtemp....xml in my solution also for 1041 (for japanese).
I am clueless on what am I missing.
Have you installed required language packs on SharePoint WFE Server?
Please check and it's must for each language.

How to know the ContentTypeId of a content type made with the Sharepoint interface?

I am working on a workflow in VS which creates a task with content type.
The content type I want to use is a custom content type made with the SharePoint interface.
Is there a way to know this content type's Id so I can use it in my workflow?
If not; is there an alternative how to initiate a task containing this content type with my workflow code in VS?
You can see the ID of the content type in the url when looking at a content type in "Site Settings > Site Content Type Gallery". The url will be something like:
http://litwaredemo/_layouts/ManageContentType.aspx?ctype=0x010132165465465464654654654
The last part is the Content Type Id.
You can download SharePoint Manager.
This will allow you to view all the content types in a given site collection. The properties (inlcuding Id) are listed.
You can also do loads more with this it's an invaluable tool for SharePoint admins.
Note: This needs to run on a server within your farm, if you don't have access then this is not the solution for you. But maybe your admins could run it for you.
Indeed this is a nice tool but all of this information is also available in SharePoint Designer, if SPDesigner 2010 is allowed in the environment of course.
Also as a last resort perhaps in a no install environment, you can go directly to the list enable allow management of content types and in the URL at the end in the ctype="" query string parameter you will see the content type (you can also get the lists guid aka unique ID this way). just remember to turn off "allow management of content types" if you do not want the end-users messing with the schema of the content type.
Thanks,
SG.

Change the language of a website in Sharepoint 2007?

I have been working in my development machine with a Sharepoint installed in English. So the website I created and am woking on appears in English, I have created variations in different languages too (Spanish, Catalan, Basque, Galician).
Now I realise that the admin part that is in English, should be in Spanish.
I don't know how I could change the language, i have seen the following answer in a forum:
UPDATE dbo.Webs SET Language = 3082
This solves the problem for the language, the admin part of the website appears in Spanish, but when I enter the section of variation labels, it gives me an error.
Can anyone tell me the solution, or which other column in which table must I change (I know it is not recommended)?
Which is the table where it is saved the info about variations?
You should be very careful with modifying the database... not only is it not recommended but it will make your SharePoint environment unsupportable by Microsoft. Good for laughs, not much else.
So to give you the official answer, you cannot do what you are attempting without recreating the website. To quote Deploy language packs (Office SharePoint Server):
...once you choose a language-specific
site template for a site or a site
collection, the site or site
collection will always display content
in the language of the original site
template.
An update with no where clause - you may have just set all your variations to use the same language.
You'll also have the issue that keys get created in English, and after you make the change it searches for the keys in Spanish.
Please have a look at our multilingual solution for MOSS
http://www.alphamosaik.com/Pages/Solutions_EN_MultilingualModule.aspx
Regards
Alphamosaik

Sharepoint: Deploy Custom Lists and New Columns in lists

I've created a custom list & also added a column in the Announcement List. Question is, how can I include those newly created items when I create a fresh Web Application (like a script, feature or something)?
Additional Info: It's like when you're to deploy from your development machine to a staging or production server. I'd like to have a script or something to update my production server to have the new column i've added to the Announcement List. Just like SQL Server's ALTER TABLE command to update a SQL Server Table.
Is there an equivalent in Sharepoint Lists?
TIA!
Regarding the new custom list, this can be done using features. See How to: Create a Custom List Definition for more information. The Visual Studio Extensions for SharePoint (VS2005 / VS2008) will help you to extract the list definition if you've created it through the SharePoint UI. If you are fortunate enough to be using a custom site definition and don't have any webs created yet, you can set your site definition to create the custom list using feature stapling.
If you are attempting to apply these changes to webs that already exist, you can still use a feature to define your custom list. It will just appear as a type of list that can be created. Then to have the custom list automatically created for existing webs or to modify existing lists such as the Announcements list, you can use a feature receiver. This allows you to run any custom code when the feature is activated. See the MSDN article Feature Events for more information.
Alternatively, you could not use features at all as they can be difficult, time consuming and painful. In fact, this blog post has a good argument against the idea. You could try the tool mentioned on that page or other applications such as DocAve Content Manager and SharePoint Site Migration Manager.
Your question is not very clear but I think you may want to look at Application Templates.
Microsoft provide 40 pre-built templates in the link below and the same technology is available to you. Links from this page should lead you to information showing you how you can crate your own.
Application Templates for Windows SharePoint Services 3.0
http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx

Resources