Unanswered Can't edit pre-made template through browser.

  • 2010년 11월 4일 목요일 오전 11:34
     
     

    Ok, I know I am definitely doing something wrong, but can't figure it out and no search results as well (Which leads me to think it must be very obvious what I am doing wrong :-))

    I have created a wiki page template in Sharepoint designer. In this I have defined all headers, picture holders, table layouts etc. in a CSS file, to make it easier for me to modify the layout at any time in the future.

    My issue is that once I select the new page layout for an enterprise wiki page and press edit, all headers, texts etc. are unwritable, and cannot be changed.

    I had kind of hoped I could have saved a lot of time by pre-defining everything possible in a document, so I only had to change the sample text itself, but that might not be the case?

    Example. All headers, sample texts etc. are pre-defined with the correct styles/colors for my documents. So the first header on the page reads "1. Header". I had hoped I could just have changed this to "1. New Product" and not mess around with applying styles.

    What have I done wrong, and how do i correct this? :-)

    Thanks in advance.

모든 응답

  • 2010년 11월 11일 목요일 오전 11:41
     
     

    Time for an update on this matter.

    As I quickly found out, the issue I had was due to the fact I was using Sharepoint Designer as a WYSIWYG editor, which was a big mistake. By looking at other templates, I discovered that I have to use RichHtmlField's where I want to have text. if I don't use this I can't edit the fields later.

    However this is just a small step in the right direction, as I am still not able to pre-define text, inserting tables and define the font styles for the entire document. (I can set a certain style for a RichHtmlField, but I can't define one style/color for headers and another for text etc. within the same field. Unless I am supposed to use a RichHtmlField for each entry. One for each header, and one each text block?)

    I been looking at the Publishing Web Controls, and it seems to me that the only way to use these, is by knowing the code, as they can't be inserted through the UI? Is that correct or?

     

    EDIT: re: the web controls, I am aware of that I can type Class= and a list with options drops down. I am just interested in if this could be done through the ribbon interface

    Is there any site available where I can see what the actual codes are, and what they do? I can see a brief explanation on MS's site but the code examples are for VB, which I can't use here.

    Would be nice if I could see code examples for using the different classes. (As in how to place image boxes, tables etc. in certain places of a page) I can figure some of it out, by looking at the source for other pages, but I end up guessing where to place the different div tags...

     

    So much for easy page editing eh :-)

  • 2011년 1월 24일 월요일 오후 3:30
     
     

    My understanding is that you want to set a pre-defined structure for Wiki Content field, which is a web control <PublishingWebControls:RichHtmlField>.

    Like other publishing page layout, you can add content fields to Enterprise Wiki Page content type, then you will be able to add the content field(s) into the page layout for this content type. You can set default style for individual content fields. This idea is similar to use multiple RichHtmlFields in page layout. 

    To answer your question about Publishing Web Controls, they cannot be inserted through the UI.

    Regards,
    Jing Wang
    Microsoft Online Community Support