سؤال

لدي قالب رئيسي بسيط مع علامات HTML وأريد وضع تذييل وإعادة رأسه.لسبب ما لا يعرض كل من الرأس والتذييل في نفس الوقت.هل أنا أستخدم Contentplaceholderid خطأ؟يجب أن لا يكونوا جميع القوالب؟

قالب ماجستير giveacodicetagpre.

ماجستير (عقدة الطفل: رأس) قالب: giveacodicetagpre.

ماجستير (عقدة الطفل: تذييل) قالب: giveacodicetagpre.

لدي 3 أنواع doc (ماجستير، رأس، تذييل الصفحة) مع معرف الرأس والتذييل.

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top