Настроить вывод фрагментов диспетчера дизайна в SharePoint 2013

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/90748

  •  10-12-2019
  •  | 
  •  

Вопрос

Есть ли способ редактировать или настроить выходные фрагменты диспетчера дизайна в 2013 году?

Если я создаю фрагмент для недвижимости, содержащей таксономию поле, я получаю это

<div data-name="Page Field: Categories">
    <!--CS: Start Page Field: Categories Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldTaxonomyFieldControl" Namespace="Microsoft.SharePoint.Taxonomy" Assembly="Microsoft.SharePoint.Taxonomy, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldTaxonomyFieldControl:TaxonomyFieldControl FieldName="b009868e-1574-4327-b1da-488660ade3f4" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
    <div align="left" class="ms-formfieldcontainer">
        <div class="ms-formfieldlabelcontainer" nowrap="nowrap"><span class="ms-formfieldlabel" nowrap="nowrap">Categories</span>
        </div>
        <div class="ms-formfieldvaluecontainer"></div>
    </div>
    <!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldTaxonomyFieldControl:TaxonomyFieldControl>-->
    <!--CE: End Page Field: Categories Snippet-->
</div>
.

Что делает следующие

<div data-name="Page Field: Categories">
    <span title="Design Manager">Design Manager</span>
    ; 
    <span title="SharePoint 2013">SharePoint 2013</span>
</div>
.

Не именно то, что я хотел, давайте скажем, я хочу неупорядоченный список (ul) вместо этого, есть ли способ настроить выход этих фрагментов?

Спасибо

Это было полезно?

Решение

Ultimately these snippets are basically just for preview purposes - they would not change the actual server side rendering of the final components! You could change various settings, but mainly styling via CSS (http://msdn.microsoft.com/en-us/library/office/dn205275.aspx) but this won't affect the final results.

Exactly for the Metadata publishing field (PageFieldTaxonomyFieldControl:TaxonomyFieldControl is unfortunately Sealed - so no chance in overriding behavior of the rendering).

You should rather use the TaxonomyWebTaggingControl as described here http://pholpar.wordpress.com/2010/02/15/build-your-own-user-interface-components-using-the-taxonomy-controls/ - which should give you more control into the final rendering.

Still, with regards to the actual snippets themselves, there is not much you could do.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top