Questions tagged [glass-mapper]

Glass.Mapper is a Sitecore module that provides an ORM solution for the Sitecore CMS.

Glass.Mapper is an open source object mapping framework for .NET CMS systems

302 questions
1
vote
2 answers

No component for supporting the service Sitecore.Mvc.Controllers.SitecoreController was found - Sitecore 7.2

Trying to Register the dependency that need to be passed to the Controller Methods as an Interface and after doing some research the below needs to done but after setting it Sitecore throws this…
T Malik
  • 45
  • 1
  • 7
1
vote
1 answer

Glass mapper and Drop Link field in Page Editor

I have a state field, a drop link type field, that points to a section of the reusable content area in my content tree. I'm trying to use glass mapper and edit frame to get this field to show me the list of states in the Page Editor mode. I haven't…
Gabbar
  • 4,006
  • 7
  • 41
  • 78
1
vote
1 answer

Glass.Mapper not applies additional parameters in BeginRenderLink method

For Glass.Mapper BeginRenderLink described as method to render a link that should contain multiple HTML elements: http://glass.lu/docs/tutorial/sitecore/tutorial22/tutorial22.html What I'd like to add is custom attributes (class, style) to that…
valikvs
  • 60
  • 2
  • 8
1
vote
1 answer

How not to render link title with Sitecore Glass Mapper

I'm rendering Sitecore Link with this method of GlassMapper:
  • <%=GlassHtml.RenderLink(icon, x => x.Link, null, true, string.Empty) %>
  • but don't want to display Link description in Editing mode, so even if Link…
    valikvs
    • 60
    • 2
    • 8
    1
    vote
    1 answer

    Glass Models and Sitecore ItemCache issue

    We are using Glass Mapper models with Sitecore 7.1 (MVC Renderings), we recently deployed this project to live environment, but our client noticed that performance is degrading over time, for example, after 8~12 hours, some pages start to take 20…
    Ahmed Okour
    • 2,392
    • 1
    • 16
    • 31
    1
    vote
    1 answer

    Sitecore Glass data model inheritence

    I am using the Glass Mapper on a Sitecore instance where I have a basic data template structure of Base BaseWithList BaseWithExtraContent BaseWithExtraContentAndCallToActionLink I have added model classes in my project to follow this structure…
    chrishey
    • 451
    • 6
    • 11
    1
    vote
    1 answer

    Sitecore MVC with Glass: The view at must derive from WebViewPage, or WebViewPage

    I followed the Glass tutorial (http://glass.lu/docs/tutorial/sitecore/tutorial14/tutorial14.html) to get Page Editor working with Glass and Sitecore MVC. I have a basic View Rendering which shows up fine when I have basic HTML and Sitecore Helper…
    Sean Holmesby
    • 2,135
    • 3
    • 23
    • 34
    1
    vote
    1 answer

    Issue Unit Testing Sitecore and Glass with NUNIT

    We've been testing our Sitecore code with the codeflood but wanted to do more to automate our tests on local and CI builds. I've been following the solution laid out by Mike Edwards on how to use NUNIT to run Sitecore tests…
    Jason Booth
    • 185
    • 1
    • 10
    1
    vote
    2 answers

    Sitecore MVC Controller and Forms - ActionResult not rendering Layout on postback

    Sitecore 7.1v1, most recent Glass Mapper, MVC4. When we submit the form POST, we get no layout with the return View. I'd prefer not to have to redirect to another page since this is supposed to be a wizard-like experience. This is also lightweight…
    Jon Upchurch
    • 450
    • 4
    • 12
    1
    vote
    1 answer

    Glass.Mapper exception when rendering item is unavailable?

    I have a placeholder that contains a collection of promos (view renderings). The promos in this collection are in Workflow, so on occasion, the page with the placeholder will get published before the promos do. When this occurs, the page throws the…
    Derek Hunziker
    • 12,996
    • 4
    • 57
    • 105
    1
    vote
    2 answers

    Getting an Internal Link with Glass.Mapper

    I've got an Internal Link set up in Sitecore, and I'm trying to map the field using Glass.Mapper, but it just keeps coming back empty, and I'm not sure what I'm doing wrong. The template in Sitecore is pretty simple: The Source of the link is set…
    zeonic
    • 97
    • 10
    1
    vote
    2 answers

    After upgrading Sitecore & Glass mapper ISitecoreContext.GetCurrentItem() returns null

    We are upgrading to the latest version of Sitecore and at the same time upgrading to the latest version of glass mapper available on nuget. Our code which worked up until we started the glass mapper upgrade has started to fail because our custom…
    Skyler
    • 341
    • 2
    • 10
    1
    vote
    1 answer

    Using value inheritance with Glass.Mapper

    I'm using Glass.Mapper for an actual project and need to implement value inheritance. I have for example meta keywords, which i want to map into a Glass.Mapper model. If the field is empty, i want to find the nearest parent item which has a value…
    Pascal Mathys
    • 609
    • 1
    • 9
    • 17
    1
    vote
    2 answers

    Editable Sitecore text field within a Sitecore Glass link field renderer

    Using standard sitecore controls (Link and Text), you can embed a text field within a link in the following way: That will give you the ability…
    Dan
    • 12,808
    • 7
    • 45
    • 54
    1
    vote
    1 answer

    How to solve could not load assembly using Sitecore7 and Glassmapper

    For a project I'm using Sitecore version 7 and the latest version of GlassMapper. It's an ASP.net MVC3 project. When I try to add a new controller, an error occured: Microsoft Visual Studio Could not load file or assembly 'Sitecore.Kernel,…
    Jordy
    • 661
    • 7
    • 26