Last active
December 31, 2015 02:58
-
-
Save DioVayne/7923871 to your computer and use it in GitHub Desktop.
Hoe pagina's site-wide te koppelen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<agn:Paragraphs ID="parRechterKolom" Location="[#rechterKolom#]" runat="server" LoadType="Manual"> | |
<Header> | |
<div class="rechterKolom"> | |
</Header> | |
<Paragraph/> | |
<Footer> | |
</div> | |
</Footer> | |
</agn:Paragraphs> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected AGN.UserControls.Paragraphs parRechterKolom;//optioneel wanneer het in de designer niet werkt | |
protected void Page_Load(object sender, EventArgs e)//deze page load staat er al | |
{ | |
int rechterKolom = this.Config.Get<int>("RECHTERKOLOM", -1); | |
PageItems pis = this.PageManager.GetPageItems(rechterKolom, false); | |
if (pis.Count > 0) { parRechterKolom.InitManual(pis); } else { parRechterKolom.Visible = false; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment