.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

custom Picture Library with site definition

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :SharePoint
 

How to use Picture Library feature  available at


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\PictureLibrary

to create the custom picture library with  site definition.

custom picture library has one more  column with dropdown values .

After search on google. I found that picture library List to be specified in onel.xml as follows

<configuration >

       <lists>

       -- speciify picture library  list

           <lists>

 here how I can specify my own picture library,Please let me know in exact words

 




View Complete Post


More Related Resource Links

Creating a new root Site Collection using a custom site definition file (ONET.XML)

  
Using Powershell, I am trying to deploy the our custom solution to SP 2010.  The script is doing the following: Deleting the web application using Remove-SPWebApplication Creating a new web application using New-SPWebApplication Adding and deploying a series of WSP files (one of which has the site definition file in it) using Add-SPSolution and Install-SPSolution Create a root site collection based on the site definition file provided in the WSPs using New-SPSite I get the error "WARNING: Template is not found and is not applied." When I run Get-SPWebTemplate, my site definition does not show up. I saw this: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/5ea46e07-a4b0-4bab-b698-9b6eeb695607 but I want a solution that does not involve me reloading a DLL, as, I feel there is something else I am forgetting. I have also tried: IISReset Resetting the timer service Cleaning the Cache (as described here: http://support.microsoft.com/kb/939308) Nothing seems to work.  Does anyone have any ideas?

Unable to create columns in document library after applying custom master page to site

  
Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

Deploying custom 2007 site definition to 2010

  
For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010. After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration. The simplified code for this is: public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)         { SPSite site = null; try { SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail); newSiteCollection.Close(); newSiteCollection.Dispose(); site = GetRootSite(webApp); bool r = (site != null) ? true : false; return r; } catch { return false; } finally { if (site != null) site.Dispose(); }         } The exception is thrown when webApp.Sites.Add() is executed. The user we are logged in as, as wel the appID, are Farm Admin's. The ULS shows this exception: Exception thrown while fetching field by internal name 'Wiki_x0020_Page_x0020

Reg: Does Custom site definition created in SharePoint 2007 works in Sharepoint 2010

  

All,

If one has created a custom site definition in sharepoint 2007, Once the whole site is migrated to sharePoint 2010 will that "custom site definition" created in 2007 will work without breaking in SharePoint 2010?

If No, what has to be done to make it work on 2010.

Thanks,

Srini

 

 

 


Issue with Picture Library Slideshow Web Part after export/import of site collection (SP2010)

  

I recently exported/imported an SP2010 site collection from Dev to Prod. The site collection had about 90 sites, which were all driven from a site template. Once the export/import had taken place, I created an additional 15 sites (in Prod), using the original site template that was created in the Dev environment. Everything seemed to be working just fine, but I found an issue with the Picture Library Slideshow Web Parts (PLSWP) on all the sites that were created in Prod. Basically, I have a Picture Library, and any pictures added to this library show up in the PLSWP. The original 80 site's PLSWP works fine, but the new 15 sites will not show the pictures through the PLSWP (the viewer just shows up blank). Here is the difference in the html output of the picture viewer:

 PLSWP from Dev:

 <a target="_blank" href="http://forefronttest/realestate/RE/West/HOU/3560/Project%20Pictures/test.jpg" id="MSOPictureLibrarySlideshowWebPart_ctl00_m_g_28b22a62_6d8

custom publishing site definition

  

What to do , so that  custom   site definition tab  should appear at site collection level only?

What to do , so that  custom   site definition tab  should appear at subsite level only?

what to do , so that particular site definition tab should not appear at particular subsite level at all.


Custom site definition for Publishing site

  

 

Hi,

 

I am trying to create a custom site definition based on publishing site definition. But i get following error while trying to create a site collection based on this definition.

 

"The Office SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated."

 

below is my custom webtemp:

Code Snippet
<?xml version="1.0" encoding="utf-8" ?>
<Templates xmlnsSurprisews="Microsoft SharePoint">
<Template Name="CustomPUBLISHING" ID="10001" SetupPath="SiteTemplates\PUBLISHING">
    <Configuration ID="0" Title="CUSTOM PUBLISHING Site" Type="0" Hidden="FALSE" ImageUrl="/_layouts/1033/images/PublishingCollaborationSite.gif"
 Description="This template provides a custom publishing site."
 FilterCategories="PublishingSiteTemp

Custom site definition with embeded master page

  

Hello All,
I am creating a custom site definition, which is based on STS site definition ( so my site is also a team site, just with the difference of name ). For that I have created a SharePoint 2010 site definition project in VS 2010. It works fine.

Now what I want to do is to create a custom master for this site definition. And I want to keep this master page in same project.  Can someone tell me how to do it ?

Note : I am adding a module to this project ( which adds a feature to the project, when there was no module, there was no feature in the project ). Next I am referring that feature in one.xml file under configuration->site feature node. I do not want to have a feature, I want it to be part of site definition. But can I embed in such way that every time a site is created based on my site definition, master page also get deployed to root site of site collection


Shail

Custom site definition with embeded styles

  

Hello,
I am making a custom site definition. I am able to embed master page in my site definition. This is corresponding thread for it.

Now in same way I want to embed style sheets with site definition. How I can do it ?


Shail

How can I delete a custom site definition??

  

 

I created some test custom site definitions but I want to delete them now. How can I do that???

 

Thank you.


Deploying custom 2007 site definition to 2010

  
For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010.
After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration.

The simplified code for this is:
public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)
        {
SPSite site = null;
try
{
SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail);
newSiteCollection.Close();
newSiteCollection.Dispose();
site = GetRootS

how to validate a "Custom List" or "Picture Library" controls?

  

Hi

For validating "Custom List" or "Picture Library" controls i followed the follwing link

http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?List=676af157-7d96-4e15-a987-54b8a3e4d948&ID=83

after adding asp.net regularexpression validator control for alphanumeric validation. it is not working.

if it is proper also the validation error message doesn't disappear. any other way to fix this issue?

Thanks in advance..

 


SharePoint Form Authentication site showing Error for few actions in Picture library.

  

I have extended my web application (with zone Extranet) and enabled Form Authentication, Enabled Client Integration and SSL.

My problem is: In my picture Library 

     1. Actions - Download/Send to actions are not working, getting error message: "Picture Manager is unable to open   pictures over the internet that are not from a windows SharePoint Services picture Library. Please specify a valid picture library and try again".

    2. Actions - Open with Windows explorer getting the error message:"Documents in this folder are not available. The folder may have been moved or deleted, or network problems may be preventing a connection to the server".

   3. In the Explorer view i am getting : "Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it".


But when I open the same library and do the above actions in default zone (port 80), it is working perfectly.

I have SharePoint service pack 1 and infr

Adding custom list to site definition

  

Hello All:

First I will explain what I was trying to achieve.

I wanted to create a site definition or site template with some common features e.g. document library with custom columns and then create many sub sites using that template or site definition.

But the idea is that once all the sites have been created and up and running, if it is required in future to modify the document library to either add or remove some columns then I will simply modify the template/site definition and then apply it globally and all the sites will get updated automatically which were created using that template/definition.

I discovered that I can not get it done using site templates as they are just snap shot of sites and any modifcation can only be applied to new sites created based on template not the ones which were already created.

So, if I go with Site Definition option, what is the best way to do it. Create a custom document library and then create list template based on that and then add it on site definition ?

Or create a feature and do it via code in feature activation.?

Or perhaps there is another better way to do it?

Any help is appreciated

Merci

 


SharePoint Developer

Best method for creating a site definition containing a custom list instance

  

Hi,

I want to create a new site definition which, when provisioned, includes an instance of a custom list. The custom list definition is contained in a feature as part of the site definition project. What's the best method for creating an instance of this custom list?

I can think of a few ways to do it:

- Modify the onet.xml for my site definition to include an instance of the list

- Use feature stapling to enable my custom list defintion feature when a site is provisioned using my new site definition and include a list instance in the feature.

Is there another more suitable method?

Thanks,

Rob


Migrating Custom Site Definition to SharePoint 2010: Do i need to make any changes to existing site

  

Hi,

I am migrating from SharePoint 2007 to Sharepoint 2010.

We hae 2 custom workflows to be migrated.I have deployed the respective wsp which were used in Sharepoint 2007 site.But it did not help and i got errors.

Do i need to change my site definiton or my wso before deploying the same to Sharepoint 2010

Regards

Ram kiran


Create custom blog site definition

  

Hello,

I need to create a custom site definition for Blog(SharePoint 2010) using visual studio 2010. So can anyone please provide the steps to create that? Thanks in advance.


JAMAL
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend