Hi guys,
I am trying to replace a block in the MasterpageFooterContent.
I have tried to follow the guidelines in the documentation but whatever I do, it does not seem to replace the block.
I am probably doing something wrong.
Considering that I am using a standard Rapido with DW 9.6.3 and I am trying to replace the block for the first colum in the footer, here is my code:
@{ BlocksPage masterBlocksBlocksPage = BlocksPage.GetBlockPage("Master"); Block masterFooterColumnOneCustom = new Block { Id = "MasterFooterColumnOne", SortId = 10, Template = RenderFooterColumnCustom(footerColumnOneHeader, footerColumnOneContent) }; masterBlocksBlocksPage.ReplaceBlock(masterFooterColumnOneCustom); }
What am I doing wrong?
Thank you,
Adrian