Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purpose of z.Glass.Mapper.Sc.ViewRender.config? #449

Open
kningyi opened this issue Apr 28, 2022 · 0 comments
Open

Purpose of z.Glass.Mapper.Sc.ViewRender.config? #449

kningyi opened this issue Apr 28, 2022 · 0 comments

Comments

@kningyi
Copy link

kningyi commented Apr 28, 2022

Hi there,

I'm upgrading the GlassMapper references for a project I took over, and I notice that there's a config file z.Glass.Mapper.Sc.ViewRender.config.exclude present after installing the latest nuget package (sc 10.0.2, Glass.Mapper.Sc.100, v5.8.180).

Can I check what's the purpose of this file, and why is it optional? (I would have thought it would be mandatory after reading its related issues?)

I also see a comment in the config file <!--After including this file in your project update the code in the GlassMapperScCustom --> - do I still need to update any code if I'm not using a customised GlassMapperScCustom.cs?

Here's my custom config patched after the original Glass.Mapper.Sc.Start.config file:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <pipelines>
      <initialize>
        <processor type="MyCompany.Foundation.Orm.App_Start.GlassMapperSc, MyCompany.Foundation.Orm">
          <patch:delete />
        </processor>
        <processor type="Glass.Mapper.Sc.Pipelines.Initialize.GlassMapperSc, Glass.Mapper.Sc" />
      </initialize>
      <glassMapper.addMaps help="Processors should derive from Glass.Mapper.Sc.Pipelines.AddMaps.AddMapsProcessor">
        <processor type="MyCompany.Foundation.Orm.Processors.CustomAddMapsProcessor, MyCompany.Foundation.Orm" />
      </glassMapper.addMaps>
    </pipelines>
  </sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant