SharePoint 2013 ¡El código de marcado funciona dentro de PlaceholderMein, pero no como código incrustado en WebPart (EMBEDDEDFORFIELD)?

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

Pregunta

en SPO 2013 tratando de implementar un código de marcado personalizado para enlazar una lista

El código de markup funciona cuando se coloca en PlaceholderMain a través de SPD vs incrustando la página web de la página del sitio del código (EMBEDDEDFORFIELD)

Tengo este código perfectamente cuando uso SPD 2013 y colóquelo en el PlaceholderMain con SPD 2013. Pero si uso SPO Editar página Insertar código, no vinculará los datos al control desplegable.No consigue nada en el control.

<div id="uploadDiv">
   <label id="fileSelectorLabel">Select a file: </label>
   <input id="uploadInput" type="file"/>
   <script id="selection-options" type="text/x-jsrender">
    <option value="{{>#data.get_item('Name')}}#{{>#data.get_item('Title')}}#{{>#data.get_item('Department')}}">
      {{>#data.get_item('Name')}} 
    </option>
   </script>
   <select id="FacultyLookup">
   </select>
   <input id="clearUploadFormButton" type="button" value="Reset"/>
   <input id="uploadFileButton" type="button" value="Upload"/>
</div>
<div id="message">

</div>

O es el problema que no puede tener llamadas a los archivos jquery desde el fragmento de inserción.

¿Fue útil?

Solución

One technique you might try is using a Content Editor Web Part. To ensure SharePoint doesn't mess with the code, you could add the code in a text file to the site. Then in the properties of the CEWP, reference the URL to the text file. This will render the contents of the text file in the web part.

enter image description here

Licenciado bajo: CC-BY-SA con atribución
scroll top