locked
Code blocks are not allowed in this file RRS feed

  • Question

  • I ve modified the site definition for my template site by adding a custom page layout as a default page

    ............. 
    <Modules>
            <Module Name="Home" />
          </Modules>
        </Configuration>
    
      </Configurations>
      <Modules>
        <Module Name="Home" Url="$Resources:cmscore,List_Pages_UrlName;" Path="">
          <File Url="default.aspx" Type="GhostableInLibrary" >
            <Property Name="PublishingAssociatedContentType"
                        Value=";#$Resources:GRINTA.contenttype,GRINTAGenericGroup;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900a14ef63a4f50410aa11955c14967896d;#" />
            <Property Name="PublishingPreviewImage"
                      Value="~SiteCollection/_catalogs/masterpage/GRINTA.Preview.png, ~SiteCollection/_catalogs/masterpage/GRINTA.Preview.png" />
            <Property Name="ContentType"
                      Value="$Resources:GRINTA.contenttype,WLAOContentTypeName;" />
            <Property Name="Title"
                      Value="Content Page" />
          </File>
        </Module>
    .............
    the same page layout a ready exists in   /_layouts/masterpage/ when i create site i got all fine but when i edit the defaut.aspx page and then publish it i got an Exception in my page "code blocks are not allowed" . but when i create a page using the same layout in other part in site all works fine.
    The layout contains code barcket but got no error when i create a simple page. I search on net i found that
    <PageParserPath VirtualPath=”/*” CompilationMode=”Auto” AllowServerSideScript=”true”
    
    IncludeSubFolders=”true”/>
    but how to say that Code in page in trustfull in all my site collection, cause i create site where i want using this definition so
     VirtualPath  is not known in advance.
    Thank you
    ABT
    Wednesday, September 9, 2009 12:13 PM

Answers

All replies