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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

how to use root site collection spurl in css stylesheet in sharepoint 2010

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

how to use root site collection spurl in css stylesheet in sharepoint 2010

I want to give image url and all images reside in sitecollection images folder and url should be given from css and not from actual page layout using spurl.

How to use spurl tag in css. I tried it  $SPUrl:~sitecollection/Sitecollectionimages/ in css file but it does not work. It works from actual page layout.

View Complete Post

More Related Resource Links

Video: Site Collection Solution Galleries in SharePoint 2010

This demonstration shows the solution gallery and solution management features of SharePoint 2010. (Length: 4:01)

how to hide root site node in top/global navigation in sharepoint 2010

how to hide root site node in top/global navigation in sharepoint 2010? I tried to use below provider but it sharepoint asp menu still shows root site as first item. We would like to show only subsites on top nav bar which is Out of box. <asp:SiteMapDataSource      ShowStartingNode="False"      SiteMapProvider="SPNavigationProvider"      id="topSiteMap"      runat="server"      StartingNodeUrl="sid:1002"/>

SharePoint 2010 new site collection display blank page

I'm using Windows Vista SP2 and trying to learn Sharepoint 2010. I'm new to Sharepoint and I'm sorry if I'm asking something very simple. I've successfully installed Sharepoint foundation 2010 and VS 2010. According to the installation instruction if the installation is successful I should see the new sharepoint website home page or ask for login info which will take to the home page. But for me it displayed a blank web page. I was able to get to Sharepoint Central administration page by clicking the browse option from IIS, it asked me login info and when I provided that I was able to see the Sharepoint central administration page. Now I am trying to create a new site collection, it is succesfully creating the new site collection and showing the link, but when I access the link I see a blank webpage. I think it is some permission issue and if the program prompts login, it should work, but how can I get to the login window or how can I see the home page and not a blank page? Thanks

How to create a new site collection in Sharepoint 2010?



How to create a new site collection in Sharepoint 2010 from Central Administration ?

SharePoint 2010 CMIS Repository Web Service returns site collection repositories

Hi. Recently configured the 2010 CMIS Producer for a SharePoint Site Collection. I have enabled the Producer at each site under the collection e.g.
 CaseManager (Master Site)
   Europe (Sub Site)
   Asia (Sub Site)
If I configure the CMIS repository service URL as http://CaseManager/_vit_bin/cmis/SOAP/

Cant create WebApp and site collection in Sharepoint 2010.Invalid URL



I try create WebApp and site collection and used for this PowerShell.

I am use this post http://www.thomasmaurer.ch/2010/09/powershell-create-a-new-sharepoint-2010-webapplication-and-site-collection/

I make the following


Add-PsSnapin Microsoft.SharePoint.PowerShell
# Set variables
$WebAppName = "Portal"
$WebAppHostHeader = "portal.contosto.com"
$WebAppPort = 80
$WebAppAppPool = "Portal"
# This User has to be a Sharepoint Manager Account
$WebAppAppPoolAccount = "corp\admin"
$WebAppDatabaseName = "MOSS_Content"
$WebAppDatabaseServer = "DataBase_instance"
$SiteCollectionName = "Corporate_portal"
$SiteCollectionURL = ("http://" + $WebAppHostHeader)
$SiteCollectionTemplate = "STS#0"
$SiteCollectionLanguage = 1033
$SiteCollectionOwner = "corp\admin"
# Create a new Sharepoint WebApplication
New-SPWebApplication -Name $WebAppName -Port $WebAppPort -HostHeader $WebAppHostHeader -URL ("http://" + $WebHostHeader) -ApplicationPool $WebAppAppPool -ApplicationPoolAccount (Get-SPManagedAccount $WebAppAppPoolAccount

Video: SharePoint 2010 Web Applications, Site Collections, and Sites

This demonstration shows how to work with Web Applications, Site Collections and Sites programmatically. (Length: 4:02)

SharePoint Search not working on one site collection

I am running into some weird behavior with how SharePoint is crawling site/list data.  Let's say our main intranet site is http://www.intranet.com: Most of our older sites are setup with URLs like http://www.intranet.com/sites/sitename .  Crawling is working fine on these sites and I can execute a search and find all of the results I would expect.  At some point recently (before I joined this firm), they made a decision that all new sites would have the URL http://www.intranet.com/SiteDirectory/sitename .  Any sites which fall into this bucket are not being crawled, it would seem. If I check Central Adman>Shared Services>Search Administration, I can see that the first content source being crawled is http://www.intranet.com so I would imagine this crawl should pick up anything under /SiteDirectory/ but it is not.  I also checked the Crawl Settings on this page and it is set to "Crawl everything under the hostname for each start address".  Lastly, I see that there were only 21 errors in the last full crawl but none of these errors apply to a /SiteDirectory/ site. In short, what could be causing the crawl to apparently skip all of the sites within /SiteDirectory/ and how can this best be fixed?

Sharepoint 2010-Site Anonymous access

i have enabled Anonymous access for my site , and also turned the option 'Entire Site' under Anonymous Access but still i am prompted for the authentication when i try to access the Site. is there any solution for this .....???

SharePoint 2010 Publishing Site : Operation is not valid due to the current state of the object.

  I think as usual, the new version of SharePoint 2010 has a lot of problems. the below messege appear in a publushing site (FBA) enabled and when I try to access the pages list or even approve a page of accessing the SiteCollectionImages list and ......... etc every link produce the below error. I'm very frustrated with 2010.  Server Error in '/' Application. <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [COMException (0x8107058a): <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object.] Microsoft.SharePoint.Library.SPR

Cannot crawl sharepoint site and mysite after database attach upgrade form sharepoint 2007 to 2010.

After database attach upgrade site and mysite from sharepoint 2007 to 2010 , I have full crawl and get "The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly. If the repository was temporarily unavailable, an incremental crawl will fix this error. ( Error from SharePoint site: HttpStatusCode ServiceUnavailable The request failed with HTTP status 503: Service Unavailable. )" for mysite and get "Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled." for sharepoint site. The content access account for search is "db_owner" of both of site and mysite. How do I solved this problem ?

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?

how to display bread-crumb always starting from the root-web of the site collection, not the current

Hello all, In sharepoint 2010, the breadcrumb shown in the title area starts from the site you are currently into. Suppose my root web is Home and I have a subsite called Child1 and under this subsite I have another subsite called GrandChild1 My requirement : when I am at Home site .. currently the bread crumb shows Home .. as expected it shows Home when I am at Child1 site .. currently the bread crumb shows Child1 .. expecting it to be Home > Child1 when I am at Child1 site .. currently the bread crumb shows GrandChild1 .. expecting it to be Home > Child1 > GrandChild1   How can I achieve this ? Thanks mano   Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com 

Custom XSL stylesheet rendering for a XSLTListViewWebPart in SharePoint 2010

Hi, How can I apply the custom XSL rendering for the XSLTListView web part in SharePoint 2010? So, for example, I have a list of "Employees". Here is the list of columns I have for this Employee list - Full name, Job Title, Team, Contribution, Project. For this list I have created a new "List View" which has a grouping by Job Title. Then I have created a new page. In that page, I have added the Employees List and then in web part properties I have changed it to use the new List View (grouped by Job Title). I would like to control the HTML rendering of this web part and I don't know how do I achieve this? I do understand that by default a list view web part uses vwsytles.xsl and fldtypes.xsl stylesheets which are located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\XSL on the server. Should I grab these stylesheets and then change it and then point the web part to use these new ones? How do I change the web part to point to the stylesheets that I want to use instead of the default ones? I have also noticed that you can not even export the list view web part and change the properties and then import it back. I had a look at the web part properties (by clicking on "Edit Web Part"). The properties panel has "Miscellaneous" category which has the following properties - Sample Data, XSL Link etc

When Upgraded a site from Wss 3.0 to Sharepoint foundation 2010, subsites are not working

HI ALL, I recently migrated an old Sharepoint site from WSS 3.0 to Sharepoint foundation 2010. There were no problems during the upgrade and the stsadm command displayed the message that upgrade completed successfully. However when I am accessing the sub-sites from outside the server, I am able to see the content, but when I go to Site Settings, I get an error "File not found". Also the Views for the sub-sites are not working. However on accessing the sub-sites from the Server everything is working fine. Can anyone please help me?  

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

Unique quotes site Sharepoint 2010

Hello. Sharepoint Server 2010 Standart. There are sites collection, with a quota template to 5Gb. Some sites require different quotes than the rest of the family. Question: how these sites change the quota template to a non-quota template the entire sites collection. Structure: sitecollection (quoteSC) | site1 (inherits quoteSC) | site 1.1 (inherits quoteSC) | site 1.1.1 I want custom quote for this site!
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