Forum

WSS 3.0 sitelere de...
 
Bildirimler
Hepsini Temizle

WSS 3.0 sitelere degisik masterpage yukleme

3 Yazılar
2 Üyeler
0 Reactions
527 Görüntüleme
(@EnverSabit)
Gönderiler: 84
Estimable Member
Konu başlatıcı
 

Bizde calisan WSS 3.0 vardi bizde birden cok site collection ve siteler var, ama bir siteye baska bir master page eklememi istediler, ben oni Feature olarak stsadm ile ekledim gayet basarli ama aktive ederken bu hatayi verdi. ben o yeni master page o birden fazla olan sitelrimden birsine yani (team site) a ekleyecektim.

  “Failed to
instantiate file "Verd.css" from module
"OSGCoreStyles": The specified list does not exist.
”.

 sonra formlara baktim google amcadan sordum dedi powershell 2.0 yukle ve calistir dedi yaptim gine olmadi. WSS 3.0 default.master page den baska master page i kabul etmiyor mu? yaki bedava oldugu icin Publishing feature si olmadigi icin publish edemiyor mu?.

HATA: 

New-Object : Exception calling ".ctor" with
"1" argument(s): "The Web application at http://SERVER/ could not be found. Verify that
you have typed the URL correctly. If the URL should be serving existing
content, the system administrator may need to add a new request URL mapping to
the intended application."

powershell 2.0 COMMANDLARI

1.

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint");

$site = new-object
Microsoft.SharePoint.SPSite("
http://SERVER/ ");

$web = $site.OpenWeb();

$web.MasterUrl =
"/_catalogs/masterpage/
Branding.master";

$web.Update();

 

2.

$web.MasterUr: web = Get-SPWeb http://SERVER

$web.MasterUrl =
"/_catalogs/masterpage/
Branding.master"

$web.Update()

3.

$Host_URL = " http://SERVER "

$web = Get-SPWeb $Host_URL

if ($web.ServerRelativeUrl -eq
"/")

{

$web.CustomMasterUrl = 
"/_catalogs/masterpage/
Branding.master"

$web.MasterUrl = 
"/_catalogs/masterpage/
Branding.master"

}

else

{

$web.CustomMasterUrl =
$web.ServerRelativeUrl+
"/_catalogs/masterpage/
Branding.master"

$web.MasterUrl =
$web.ServerRelativeUrl+ "/_catalogs/masterpage/
Branding.master"

}

$web.Update()

 

Yardimlirinizi beklerim Saygilar

 

 
Gönderildi : 22/07/2011 23:02

(@serkankonak)
Gönderiler: 1339
Noble Member
 

Kabul ediyor 3.0 masterpage editi. CSS lerin varlığını kontrol edermisiniz. Sanki yollarını bulamadığından yok diyor.

 
Gönderildi : 23/07/2011 18:46

(@EnverSabit)
Gönderiler: 84
Estimable Member
Konu başlatıcı
 

Oncelikle Cevabiniz icin tessekur ederim, ben feature i bu linkten idirdigim Brandingle test ettim oda ayni hata verdi, Ama MOSS 2007 de catir catir calisiyor. CSS gine nereye eklesem dogru olur?

indirdigim link: http://www.expertsharepointconsulting.com/Free-SharePoint-Online-Master-Pages-Step1.aspx
Dosya:  https://rapidshare.com/files/2879889292/Blue_Master_Page.rar

element.xml
************************************************************************************************************************************

<!-- _lcid="1033" _version="12.0.6211" _dal="1" -->
<!-- _LocalBinding -->
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="OSGMasterPages" Url="_catalogs/masterpage" Path="MasterPages" RootWebOnly="TRUE">
        <File Url="Branding.master" Type="GhostableInLibrary">
            <Property Name="ContentType" Value="Branding" />
        <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;
/Preview Images/CSS.PNG, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/SurreyCSS.PNG" />
            <Property Name="MasterPageDescription" Value="Branding Master Page" />
        </File>
   </Module>
   <Module Name="PublishingLayoutsPreviewImages" Url="_catalogs/masterpage" IncludeFolders="??-??*" Path="" RootWebOnly="TRUE">
        <File Url="CSS.PNG" Name="Preview Images/CSS.PNG" Type="GhostableInLibrary">
        </File>
   </Module>    
   
   <Module Name="OSGCoreStyles" Url="Style Library" IncludeFolders="??-??*" Path="" RootWebOnly="TRUE">
           <File Url="Verd.css" Name="Core Styles/Verd.css" Type="GhostableInLibrary" />
   </Module>
</Elements>

******************************************************************************************************************************

Feature.xml
*****************************************************************

<!-- _lcid="1033" _version="12.0.4518" _dal="1" -->
<!-- _LocalBinding -->
<Feature  Id="0581CEB3-0FAA-49e1-A5CC-8517087DE932"
          Title="Branding Master Page"
          Description="This custom master page features a  CC Branding"
          Version="12.0.0.0"
          Scope="Site"
          Hidden="False"
          DefaultResourceFile="core"
          xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
        <ElementManifest Location="elements.xml"/>
    </ElementManifests>
</Feature>

*************************************************************************

css dosyasini o indirdigim dosya da  "Branding\en-us" a eklemis ben granti olsun diye "Branding\Style" Feature klasorine de ekledim.

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Branding\en-us

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Branding\Styles

Yardimlirinizi esirgimeyeniz, simdiden tesekkurler

 

 
Gönderildi : 25/07/2011 16:27

Paylaş: