Apply custom template on a site in programming

Hi;
I search a code in VS (programming) to apply a custom template (WSP) on a SharePoint site empty (black site).
Like in power shell :
$SubWeb = New-SPWeb $SubSiteName -Name $SiteName -UseParentTopNav
$SubWeb.ApplyWebTemplate($SiteTemplate.Name)
Regards;

Here is an example which shows how to create a site collection using a webtemplate:
SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://win2008"));
using (SPSite site = webApp.Sites.Add("/sites/site1", "SharePoint", null, 1033, null, "administrator", "Administrator", "[email protected]"))
    SPWeb rootWeb = site.RootWeb;
    // Get Solutions Gallery
    SPDocumentLibrary solutions = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType.SolutionCatalog);
    // Upload Solution File with the Web Template
    SPFile solutionFile = solutions.RootFolder.Files.Add("test.wsp", File.ReadAllBytes(@"..\..\test.wsp"));
    // Activate Solution
    SPUserSolution solution = site.Solutions.Add(solutionFile.Item.ID);
    // Activate Features
    Guid solutionId = solution.SolutionId;
    // Activate Site Collection Features
    SPFeatureDefinitionCollection siteFeatures = site.FeatureDefinitions;
    var features = from SPFeatureDefinition f
                   in siteFeatures
                   where f.SolutionId.Equals(solutionId) && f.Scope == SPFeatureScope.Site 
                   select f;
    foreach (SPFeatureDefinition feature in features)
        site.Features.Add(feature.Id, false, SPFeatureDefinitionScope.Site);
    // Get Web Template
    SPWebTemplateCollection webTemplates = site.RootWeb.GetAvailableWebTemplates(1033);
    SPWebTemplate webTemplate = (from SPWebTemplate t
                                 in webTemplates
                                 where t.Title == "test"
                                 select t).FirstOrDefault();
    if (webTemplate != null)
        site.RootWeb.ApplyWebTemplate(webTemplate.Name);
The main thing here is that the site on which a webtemplate is to be applied should be created from a blank template first.
See this for more information:
http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/
Nadeem Yousuf

Similar Messages

  • Applying customized template

    I have a problem trying to apply a customised template.
    1 I customized the Modern Type template by changing the cover image and chapter 1 image to a different jpg, and also by changing the font and font colour, and finally by changing the colour of the dividing lines in the section pages
    2 I gave this template a name and saved it, and it now shows up in the Template Chooser
    3 when I choose it, it opens correctly
    4 however, when I insert a chapter from a Word or Pages document and I am prompted to pick a layout for the imported content, the only options I see are those for the original Modern Type template (teal, blue, orange etc, with black Helvetica font) - it doesn't offer me my customised version
    5 therefore, I can't choose the customised chapter page (= with the new background), nor can I choose the customised Sections (= with the new font & font colour etc) - all I'm offered are the pre-set versions (= the teal, blue, orange etc chapter pages, and the black Helvetica font, with black lines)
    So, how do I apply a customised template so that when I import a document and create a new chapter, this new chapter (and its sections) follow the customised template?
    Thanks in advance.

    K T wrote:
    Not sure what happened, exactly, but....when you made changes and worked towards your custom template, did you apply them throughout in any manner or did you just drop them in and saved w/new template name?
    The latter - I just made the changes and saved with a new template name.
    I've been doing some research, and I've seen that I should follow a different process at least as far as sections and pages are concerned, by using the View > Show layouts path. 
    However, I still haven't managed to get the cover page and chapter pages to adopt the new background image - View > Show layouts offers only the stock covers/colours.

  • Custom Templates to Discoverer Reports in BI Publisher (after Integration)

    Hi All,
    I have successfully managed to integrate Oracle Discoverer and Oracle BI Publisher.I also can access the Reports from Discoverer in Oracle BI Publisher. I was trying to apply custom templates to the Discoverer reports.Is it possible to apply custom templates (.rtf) to Oracle BI publisher reports? Is this possible?

    Hi, thanks for quick response. We have huge numer of reports, we copied them one after the other still doesn't work. Below are details.
    Repository path(xml-server-config.xml) : /app/oracle/oracle/xmlp/XMLP
    under this we have a folder structure : FCReports, in which we copied all the folders.
    After logging onto BI URL, click on more... you will see the folder FCReports name but nothing shows up under this. Any file or any other permissins to be checked.? This folder does have read/executable permissions.

  • How do you make a customized template?? When I customize an original template it does not apply it to the whole document! How do you apply style changes permanently to your document???

    When one customize text styles or spacing between paragraphs. How do you apply settings permanently to a document???
    Should you create a new template???

    Happily, when you edit a document created by a given template, the changes aren't stored in the template.
    If you want to get a template embedding your changes, you need to use :
    File > Save as Template
    then use the newly created custom template as starting point.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Applying a new template to entire site?

    Is there an easy way to apply a new template to the entire
    site? I created a new template and I can open each page
    individually and click MODIFY/TEMPLATES/APPLY TEMPLATE TO PAGE but
    there has to be an easier way to apply the new template to the
    entire site without having to open every single page in the
    site.

    That would be true ONLY on pages that are already child pages
    of templates.
    Try it on a page that is not a child page, but that has
    existing content.
    This is what the OP was asking.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "TheTechChik" <[email protected]> wrote in
    message
    news:[email protected]...
    > As long as you don't change the title of each editable
    region, it should
    > know
    > exactly where to put everything. When I changed
    templates on individual
    > pages
    > it worked flawlessly, I don't see why doing a batch
    process would
    > introduce any
    > new issues as you suggest.
    >
    > Mandy
    >
    > Originally posted by: Newsgroup User
    > > MODIFY/TEMPLATES/APPLY TEMPLATE TO SITE
    >
    > I don't see how it could be done. Imagine a template
    with 3 or more
    > editable regions. How would it know where to put which
    content.
    >
    > Just for fun, take a page with existing content and
    apply a template with
    > a
    > single editable region to it. How'd it work?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "TheTechChik" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Thanks Alan!
    > >
    > > I too like Raizel have had things go haywire when I
    tried something
    > > similar in
    > > the past but I'm sure I just selected to update
    pages at the wrong time
    > > and/or
    > > didn't update them when I should have.
    > >
    > > You would thing there would be a tool/feature in DW
    to do this easily
    > > like
    >
    > > MODIFY/TEMPLATES/APPLY TEMPLATE TO SITE. Hint Hint
    Adobe ;-)
    > > Changing
    > > file
    > > names and determining when to update and when not
    to can be dangerous
    > > for
    > > many.
    > >
    > > Mandy
    > >
    >
    >
    >
    >
    >
    >

  • What is the best way to apply a template to the rebranded partner site?

    My partner site got severely jacked up when I was brand new to BC.
    Since then I've overwritten it in Muse while attempting to "try' it as well.
    Apparently does some "cleaning" meaning the template files I once had access to in the templates folder got deleted. bleh.
    Is there a quick way to apply another template I own to that site such as publishing a trial site and re-pointing dns or anything that direct and smart; or is the only way to do it a manual, one by one by one of files, modules, content holders and so on?

    Hey there,
    If you want to access those partner site templates, layouts and everything else, here are some FTP details you can use:
    host: maxdesigncompany.businesscatalyst.com
    username: maxdesigncompany.businesscatalyst.com/[email protected]
    password: password
    Feel free to log in through FTP and download the whole site. All the modules should work since the module IDs on your site will match those on this site.
    Cheers,
    -mario

  • Apply template to entire site?

    Is there a way to apply a template to all pages of a site in a single operation? I have over 800 pages converted to HTML from FrameMaker and hope I don't have to apply the template 800+ times--or even find/replace great chunks of code in multiple steps--to accomplish this. All content on every page would be applied to the same editable region. Using GL 8/CS2, Mac OS 10.4.11.
    Thanks,
    Karen

    Success! As it turns out, find-and-replace on large chunks of code--from the template to the page files--took fewer steps and less time than I had imagined (previous search-and-replace on a site of similar content had been very sluggish). The problem was never organization, just application. By simply applying the template to one file the regular way, I could check for errors and locate just where to insert the replacement (template) code. Once complete, GL does recognize the files as belonging to a template.
    There is still an annoying glitch wherein GL keeps the path to the template in the extras area. Were I uploading through FTP this would magically disappear; but I drag-and-drop to a mounted staging drive that replicates to live servers. So I must still repair the wayward path at the end of the process. Luckily, maintenance on the publication is exceptionally low and I usually don't have to repeat this task.
    Thanks again to all.

  • Applying templates to entire site in DW 8

    I administer a large Intranet and currently all the pages are
    attached to a single template.
    As part of a rebranding exercise, I have created new
    templates for each specific area of the site. I know that I
    can’t do a find and replace on the .dwt file in the pages but
    how can I apply specific templates to specific folders in the site
    without having to open each file individually and apply the
    appropriate template manually?
    Any advice gratefully received.
    Sam

    Open one of the child pages, and then force a sitewide update
    MODIFY | Templates > Update Pages...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "so1234" <[email protected]> wrote in
    message
    news:ej9o38$raj$[email protected]..
    > Alan, I've tried this and it just replaces the line of
    code - not the
    > template itself.
    >

  • Update content type template for existing sites in sharepoint 2010 ?

    Hi,
    I created one custom document library (list definition) and associated 3 content types which has docment template path (\_layouts.template1.docx). I rollout nearly 200 sites with this definition. now i want to update my document template and also i want
    to change template docx to dotx.
    what is the best approach to apply these changes for existing sites ?
    Thanks,
    Surya.
    suryakumarp

    Hi suryakumar,
    As I understand, you want to update the template 
    for existed content type.
    It can be achieved by programming. There is a
    SPContentType.DocumentTemplateUrl Property, which can be used to update content type.
    Here is a demo:
    http://officepoint.blogspot.com/2008/06/sharepoint-relink-infopath-forms-relink.html

  • Custom Template for Third Party Balance Summary Report(Java type executable

    Hi Al,l we have a requirment to have a layout with some of the fields from
    Third Party Balance Summary Report( Which is a Java type executable and
    Data definition has Data Template attached(.xml)).
    I tried in below way.
    Coppied the Third Party Balance Summary Report program with same application and parameters
    with. Then defined a Datadefinition with my concurrent prog short name
    attached the same standard .xml file(Not sure what it is) and developed a custom template with
    a custom rtf(excel output type), and submitted the program
    the output is generated in excel but my custom .rtf layout is not getting applied
    rather it is showing same layout as in standard.
    Some thing I am missing here or else it is not the way of changing the
    template.
    If any one know how to do this please let me know.
    My client want only some files from the standard report(no need of new fileds)
    with output type xls.
    Thanks in Advance.
    The same content is posted in Custom Template for Third Party Balance Summary Report(Java type executable sorry for duplicating the thread, just for increase the visibility for my issue I did this.

    I gave up on using a different font or figuring out if I could use Times New Roman's built-in fractions visible in Font Book (as unicodes) and did a work-around based on Michael Wasley's tips in this discussion.
    https://discussions.apple.com/message/11622842#11622842
    I adapted it however and think it looks a little better.
    Font: Times New Roman 12 point
    I used the fraction bar in 12-point (Shift-Option-1) for automatic kerning.
    For the numerator, I changed the font style to superior (12-point).
    For the denominator, I changed the font style to subscript (Shift-Command-hyphen) and reduced the font size to half, or 6-point using the short-cut Shift-Command-<.
    When the fractions occured in my footnotes (9-point), I used 4-point in the denominator; 10- and 11-point, I used 5-point in the denominator. This seemed to produce the best result when printing.
    Thank you, Michael.
    -Dottie

  • Edit custom templates

    I have some template that I made that show up in the Custom tab in the Temaplates window. I want to change some of these to replace the old ones. Is my only option to apply the template, make my changes, and save it as a different name? I know I can save them as the same name, but then it just gets confusing as DVDSP doesn't overwite the old one, just appends a number to the filename

    Honestly, as a pro, I never use templates anyway.
    The ability to customize a template-based menu is the reason that menus cannot be updated from templates - this I understand. I'm sure there is a similar reason why existing templates cannot be edited, having to do with the way they work within the program, but I can't quite wrap my brain around it right now.
    I have been teaching this technique in my DVD Studio classes, and I can see lots of good potential in using templates, particularly for creating chapter index menus, etc. It does take an extra second to create the new template from the menu, but once you get used to the workflow it's not too bad.
    cheers -
    Max Average

  • SolMan 7.1 Setup Monitoring - Custom Template is not display to Assign

    Hi All,
    SAP Solution Manager Configuration: Technical Monitoring - System Monitoring
    While creating custom template, i am facing issue, Please check it out below screens,
    After done, all setup, the custom template should display to apply and active.But it is not displaying
    This is the error msg below,
    Please help me out
    Regards
    Jay

    Hello Jagadish,
    thanks for your support.
    I went with Visual Admin tool to node SID - Server - Services - SLD Data Supplier.
    I saw some information - how can I check here?
    Afterwards I went to node SID - Server - Services - JCo RFC Provider and saw informations about client, user password. How can I check these informations? I stopped the SAPSLDAPI_SID RFC listener and started again. This worked without problems.
    I closed visual administrator and tried to login again via http://hostname:50000/sld. After cklick on button "Administration" there is no reaction - I get a blank site with no information on it.
    When I start configuration again through SOLMAN_ADMIN system hangs now in step 107 " SLD Server Configuration".
    Regards,
    Julia
    Edited by: Julia Bayrhammer on Oct 26, 2011 9:04 AM

  • Issue with Apply A Template

    Hi -
    I have a template called index.dwt created for my site, below is the top code from the template.  I've created a new file called index.html and tried to apply index.dwt but somehow it's applying old code not in the template anymore.  I've removed any file that have that old code listed below, so I have no idea how the template is applying the old code that from what I can tell doesn't exist in a file anymore anywhere in site.  It almost seems like it's cached because I did a preview of the site in chrome but I've restarted my desktop and it still populates the old code.
    Template code:
    <!DOCTYPE HTML>
    <html>
    <head>
                        <script src="../js/jquery1.js" type="text/javascript" ></script>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Traditional Karate Promotional Fund</title>
    <!-- TemplateEndEditable -->
                        <link href="../css/styles.css" rel="stylesheet" type="text/css" media="screen">
                        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
    <script type="text/javascript"> 
                        $(document).ready(function() {
                                  $('#slider').s3Slider({
                                            timeOut: 4000
              </script>
    <script type="text/javascript" src="../js/slider.js"></script>
    <link href="../css/slider.css" rel="stylesheet" type="test/css" media="screen">
    </head>
    When I try to apply the template to a blank html page in the side, this is what gets applyied:
    <!DOCTYPE HTML>
    <html><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
                        <script src="js/jquery1.js" type="text/javascript" ></script>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Traditional Karate Promotional Fund</title>
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script><!-- InstanceEndEditable -->
                        <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
                        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
    <script type="text/javascript"> 
                        $(document).ready(function() {
                                  $('#slider').s3Slider({
                                            timeOut: 4000
              </script>
    <script type="text/javascript" src="js/slider.js"></script>
    <link href="css/slider.css" rel="stylesheet" type="test/css" media="screen">
    </head>

    Ok - sorry about that. 
    From the template:
    <!DOCTYPE HTML>
    <html>
    <head>
                        <script src="../js/jquery1.js" type="text/javascript" ></script>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Traditional Karate Promotional Fund</title>
    <!-- TemplateEndEditable -->
                        <link href="../css/styles.css" rel="stylesheet" type="text/css" media="screen">
                        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
    <script type="text/javascript"> 
                        $(document).ready(function() {
                                  $('#slider').s3Slider({
                                            timeOut: 4000
              </script>
    <script type="text/javascript" src="../js/slider.js"></script>
    <link href="../css/slider.css" rel="stylesheet" type="test/css" media="screen">
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body onLoad="MM_preloadImages('../images/TKPF Booster Club &amp; Lakewood Dojo_Smallsepia.gif','../images/Side_Picutre_Small.JPG','../images/TKPF Booster Club &amp; Lakewood Dojo_Small.jpg')">
    <div id="wrapper">
    <div id="top">
                        <div id="logo">
                    <img src="../images/TKPF_Logo.gif" width="200" >
        </div>
      <div id="social-media">
        <p> For Additional Information<br>Please Call (253) 589-6924</p>
            <ul>
                      <li><a href="https://www.facebook.com/washingtonkarate.lakewooddojo?fref=ts"><img src="../images/icons/facebook_32.png"></a></li>
                <li><a href="http://www.twitter.com"><img src="../images/icons/twitter_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.linkdn.com"><img src="../images/icons/linkedin_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.yelp.com"><img src="../images/icons/yelp_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.youtube.com"><img src="../images/icons/youtube_32.png" width="32" height="32" /></a></li>
            </ul>
      </div>
    </div>
        <div id="topnav">
                         <ul>
                      <li><a href="#">Welcome</a></li>
                <li><a href="#">Programs</a></li>
                <li><a href="#">About TKPF</a></li>
                <li><a href="#">Newletter</a></li>
                <li><a href="#">Gallery</a></li>
                <li><a href="#">Fund Raisers</a></li>
                <li><a href="#">Our Incredible Kids</a></li>
            </ul>
        </div>
        <div id="banner">
                  <div id="slider">
                        <ul id="sliderContent">
                        <!-- use this list item if you don NOT want to include a link -->
                                  <li class="sliderImage">
                                            <img src="../images/banner/Leadership_201207262012_0579.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="../images/banner/West_Coast_Open_102713_2062.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="../images/banner/Leadership_Graduation_0558.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="../images/banner/Leadership_Graduation_0742.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                                  <div class="clear sliderImage"></div>
                        </ul>
                        </div>
              </div>
        <div id="content-wrapper">
                           <div id="content"><!-- TemplateBeginEditable name="Content" -->Content
                  <h1> Welcome To TKPF</h1>
            <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi. Aenean fermentum elit eget tincidunt condimentum eros ipsum rutrum orci sagittis tempus lacus enim ac dui. Donec           non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus neque id cursus faucibus tortor neque egestas augue eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
                       <h2>Manchester Design Collections </h2>
                       <p>lorem pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam feugiat vitae ultricies eget tempor sit amet ante. Donec eu libero sit amet egestas posuere gravida non dui vestibulum lacus cras orci quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra enim in turpis pulvinar facilisi. </p>
              <div id="box1"> <a href="../images/TKPF Booster Club & Lakewood Dojo.pdf" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Rainier Rollover Image','','../images/TKPF Booster Club &amp; Lakewood Dojo_Small.jpg',1)"><img border=2px color red; src="../images/TKPF Booster Club & Lakewood Dojo_Smallsepia.gif" alt="Tacoma Rainiers Fund Raiser Flyer" width="250" height="200" id="Rainier Rollover Image"></a>
                   <h2>Latest Fundraisers</h2>
                   <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi.  Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
            </div>
            <div id="box2">
              <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Side Image 2','','../images/Side_Picutre_Small.JPG',1)"><img src="../images/Side_Picutre_Smallsepia.gif" width="250" height="200" id="Side Image 2"></a>
    <h2>Tournament Results</h2>
                <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi.  Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
            </div>
        <h2>More About TKPF</h2>
        <a href="https://goo.gl/maps/5j3TO"><img class="imag-right" src="../images/Dojo_Google_Map.JPG" width="300" height="300" /></a>
                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam feugiat vitae ultricies eget tempor sit amet ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
              <p>Integer imperdiet interdum laoreet enim vel purus massa morbi vel in consequat turpis ut l Nam vestibulum adipiscing sed curabitur illum tempus est sit velit vitae lorem at nulla quis mi donec arcu nunc nec id sollicin.</p>
              <p>Final Text For This Page</p>  
              <!-- TemplateEndEditable -->
               </div>
        <div id="right-side">
                    <h2 align="center">Washington Karate  Lakewood </h2>
              <p>The WKA Lakewood Dojo is a member of the International Hayashi-ha Shito-ryu Federation as well as the USA National Karate-do Federation. The USANKF is the governing body (NGB) for the sport of Karate in the USA.</p>
              <p><strong>Facility</strong></p>
          <p>Modern, clean, spacious facility with 5000 square feet of space containing:</p>
          <blockquote>
                <p><strong>4 practice areas:</strong></p>
                <p>2 - 1000 sf matted areas</p>
                <p>1 - 1000 sf traditional wood floor area</p>
                <p>1 - 1000 sf workout area with weights and treadmill</p>
                <p>Spacious lobby and waiting area</p>
          </blockquote>
              <div align="center"><a href="http:///www.lakewooddojo.com"><img src="../images/WKA-Logo.gif" width="300" height="300" /></a>
              </div>
              <p> In mauris id platea semper bibendum et tristique ut in vulputate cursus eu nec. Eget scelerisque ante malesuada eros amet per lobortis phasellus.</p>
              <h2>Sidebar Heading 2</h2>
              <ul>
                      <li><a href="#">Colorado</a></li>
                <li><a href="#">New Mexico</a></li>
                <li><a href="#">California</a></li>
                <li><a href="#">Nevada</a></li>
                <li><a href="#">Oregon</a></li>
                <li><a href="#">Washington</a></li>
                <p>Tesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
        </ul>
       </div>
    </div>
        <div id="footer">
              <p align="center"><strong>&copy;Copyright 2014 | All Rights Reserved| TKPF </strong></p>
        <p align="center"><strong>5610 75th Street West | Lakewood, WA 98499 | Phone: (253) 589.6924</strong></p>
        </div>
    </div>
    </body>
    </html>
    From the file created from the template:
    <!DOCTYPE HTML>
    <html><!-- InstanceBegin template="/Templates/tkpf.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
                        <script src="js/jquery1.js" type="text/javascript" ></script>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Traditional Karate Promotional Fund</title>
    <!-- InstanceEndEditable -->
                        <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
                        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
    <script type="text/javascript"> 
                        $(document).ready(function() {
                                  $('#slider').s3Slider({
                                            timeOut: 4000
              </script>
    <script type="text/javascript" src="js/slider.js"></script>
    <link href="css/slider.css" rel="stylesheet" type="test/css" media="screen">
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script><!-- InstanceEndEditable -->
    </head>
    <body onLoad="MM_preloadImages('images/TKPF%20Booster%20Club%20&amp;%20Lakewood%20Dojo_Smallsep ia.gif','../images/Side_Picutre_Small.JPG','../images/TKPF Booster Club &amp; Lakewood Dojo_Small.jpg')">
    <div id="wrapper">
    <div id="top">
                        <div id="logo">
                    <img src="images/TKPF_Logo.gif" width="200" >
        </div>
      <div id="social-media">
        <p> For Additional Information<br>Please Call (253) 589-6924</p>
            <ul>
                      <li><a href="https://www.facebook.com/washingtonkarate.lakewooddojo?fref=ts"><img src="images/icons/facebook_32.png"></a></li>
                <li><a href="http://www.twitter.com"><img src="images/icons/twitter_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.linkdn.com"><img src="images/icons/linkedin_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.yelp.com"><img src="images/icons/yelp_32.png" width="32" height="32" /></a></li>
                <li><a href="http://www.youtube.com"><img src="images/icons/youtube_32.png" width="32" height="32" /></a></li>
            </ul>
      </div>
    </div>
        <div id="topnav">
                         <ul>
                      <li><a href="#">Welcome</a></li>
                <li><a href="#">Programs</a></li>
                <li><a href="#">About TKPF</a></li>
                <li><a href="#">Newletter</a></li>
                <li><a href="#">Gallery</a></li>
                <li><a href="#">Fund Raisers</a></li>
                <li><a href="#">Our Incredible Kids</a></li>
            </ul>
        </div>
        <div id="banner">
                  <div id="slider">
                        <ul id="sliderContent">
                        <!-- use this list item if you don NOT want to include a link -->
                                  <li class="sliderImage">
                                            <img src="images/banner/Leadership_201207262012_0579.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="images/banner/West_Coast_Open_102713_2062.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="images/banner/Leadership_Graduation_0558.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                <li class="sliderImage">
                                            <img src="images/banner/Leadership_Graduation_0742.jpg" />
                                            <span class="top"><strong>This is an image title</strong><br />Lorem pellentesque habitant morbi tristique.<br />Estibulum erat wisi, condimentum, commodo <br />ornare sit wisi. Aenean fermentum, elit eget<br />tinciduntcondimentum.Vestibulum erat wisi<br />condimentum sed, commodo vitae, ornare <br />sit amet, wisi. Aenean fermentum, elit eget <br />tincidunt condimentum.</span>
                                  </li>
                                  <div class="clear sliderImage"></div>
                        </ul>
                        </div>
              </div>
        <div id="content-wrapper">
                           <div id="content"><!-- InstanceBeginEditable name="Content" -->Content
                  <h1> Welcome To TKPF</h1>
            <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi. Aenean fermentum elit eget tincidunt condimentum eros ipsum rutrum orci sagittis tempus lacus enim ac dui. Donec           non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus neque id cursus faucibus tortor neque egestas augue eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
                       <h2>Manchester Design Collections </h2>
                       <p>lorem pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam feugiat vitae ultricies eget tempor sit amet ante. Donec eu libero sit amet egestas posuere gravida non dui vestibulum lacus cras orci quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra enim in turpis pulvinar facilisi. </p>
              <div id="box1"> <a href="images/TKPF%20Booster%20Club%20&%20Lakewood%20Dojo.pdf" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Rainier Rollover Image','','images/TKPF Booster Club &amp; Lakewood Dojo_Small.jpg',1)"><img border=2px color red; src="images/TKPF%20Booster%20Club%20&%20Lakewood%20Dojo_Smallsepia.gif" alt="Tacoma Rainiers Fund Raiser Flyer" width="250" height="200" id="Rainier Rollover Image"></a>
                   <h2>Latest Fundraisers</h2>
                   <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi.  Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
            </div>
            <div id="box2">
              <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Side Image 2','','images/Side_Picutre_Small.JPG',1)"><img src="images/Side_Picutre_Smallsepia.gif" width="250" height="200" id="Side Image 2"></a>
    <h2>Tournament Results</h2>
                <p>Vestibulum erat wisi condimentum sed commodo vitae ornare sit amet wisi.  Aliquam erat volutpat. Nam dui mi tincidunt quis accumsan porttitor facilisis luctus metus</p>
            </div>
        <h2>More About TKPF</h2>
        <a href="https://goo.gl/maps/5j3TO"><img class="imag-right" src="images/Dojo_Google_Map.JPG" width="300" height="300" /></a>
                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam feugiat vitae ultricies eget tempor sit amet ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
              <p>Integer imperdiet interdum laoreet enim vel purus massa morbi vel in consequat turpis ut l Nam vestibulum adipiscing sed curabitur illum tempus est sit velit vitae lorem at nulla quis mi donec arcu nunc nec id sollicin.</p>
              <p>Final Text For This Page</p>  
              <!-- InstanceEndEditable -->
               </div>
        <div id="right-side">
                    <h2 align="center">Washington Karate  Lakewood </h2>
              <p>The WKA Lakewood Dojo is a member of the International Hayashi-ha Shito-ryu Federation as well as the USA National Karate-do Federation. The USANKF is the governing body (NGB) for the sport of Karate in the USA.</p>
              <p><strong>Facility</strong></p>
          <p>Modern, clean, spacious facility with 5000 square feet of space containing:</p>
          <blockquote>
                <p><strong>4 practice areas:</strong></p>
                <p>2 - 1000 sf matted areas</p>
                <p>1 - 1000 sf traditional wood floor area</p>
                <p>1 - 1000 sf workout area with weights and treadmill</p>
                <p>Spacious lobby and waiting area</p>
          </blockquote>
              <div align="center"><a href="http:///www.lakewooddojo.com"><img src="images/WKA-Logo.gif" width="300" height="300" /></a>
              </div>
              <p> In mauris id platea semper bibendum et tristique ut in vulputate cursus eu nec. Eget scelerisque ante malesuada eros amet per lobortis phasellus.</p>
              <h2>Sidebar Heading 2</h2>
              <ul>
                      <li><a href="#">Colorado</a></li>
                <li><a href="#">New Mexico</a></li>
                <li><a href="#">California</a></li>
                <li><a href="#">Nevada</a></li>
                <li><a href="#">Oregon</a></li>
                <li><a href="#">Washington</a></li>
                <p>Tesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
        </ul>
       </div>
    </div>
        <div id="footer">
              <p align="center"><strong>&copy;Copyright 2014 | All Rights Reserved| TKPF </strong></p>
        <p align="center"><strong>5610 75th Street West | Lakewood, WA 98499 | Phone: (253) 589.6924</strong></p>
        </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>

  • Restoring Custom Templates

    Business Catalyst:  I was working on a template in Site Manage/Module Templates/Online Shop Templates/ and wanted to cancel my changes so I clicked "Restore to Default".  This wiped out all of our custom templates.  Does anyone know how to restore them?  I am taking over where someone left off and am new at this.  Please help and thank you.

    Hitting "Restore to Default" should only restore the layout or template you are on, not everything.  Did you do this multiple times?
    Did you ever download a copy of the site from BC via FTP or Dreamweaver?  If so, you've got copies of those layouts in your local project directory. If you have a local download of your site, then goto /Layouts/OnlineShop/ and you should see all your layouts that you downloaded. Upload these files back to BC in DW or by SFTP.
    If you didn't download the files locally from your site you might not have any recourses to restore those layouts.  There's no versioning system to restore those layouts for most modules.  You can do it for Pages and Page Templates but not for module layouts like Online Shop...
    In the future, you should definitely consider downloading your site first to a local directory on your computer for just this type of incident.  Create a backup of your site before you start making changes on BC so you can restore layouts or pages that are irrevocably lost. 
    If you have DW you can use the Business Catalyst feature to login and download your site with DW's site manager or you can use any old FTP program to connect and download your files. Follow the directions outlined here: http://helpx.adobe.com/business-catalyst/partner/connecting-site-using-ftp-client.html

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

Maybe you are looking for