Frage

Ich habe eine einfache Master-Vorlage mit HTML-Tags und möchte eine Fußzeile und einen Kopfzeilen darin legen.Aus irgendeinem Grund zeigt es sowohl den Header als auch die Fußzeile gleichzeitig an.Bin ich ContentSplaTerID falsch?Sollten sie nicht alle Vorlagen sein?

Master-Vorlage generasacodicetagpre.

Master (Kinderknoten: Header) Vorlage: generasacodicetagpre.

Master (Kinderknoten: Fußzeile) Vorlage: generasacodicetagpre.

Ich habe 3 doc-Typen (Master, Header, Fußzeile) mit der ID von Header und Fußzeile.

War es hilfreich?

Lösung

Do one thing. Create a template and inside

< asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">

< div>header< /div>

< div>body< /div>

< div>footer< /div>

< /asp:Content>

add your html code which will contain the header,body and footer.

Andere Tipps

Sounds like you've set up your header/footer templates as children of your "site master" template, which means you can only pick either header or footer template. Also sounds like you've set them up as sub-nodes of your homepage... I'm not sure why you'd do this.

You should be putting header and footer content inside your main template. If you want it to be content-editable (which it sounds like you might), set up a document type with the rich text fields "bodyHeader" and "bodyFooter", then use <umbraco:Item Field="bodyHeader" runat="server" /> to insert the content into your template.

HTH,

Benjamin

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top