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
0
votes
0 answers

Render Anchor by using Glassmapper in sitecore mvc

I am facing problem for rendering the anchor by using the glass mapper in sitecore mvc. This is the code I have used to render the link: @RenderLink(promoWidget, x => promoWidget.Link, new System.Collections.Specialized.NameValueCollection { {…
0
votes
1 answer

Umbraco, Controller and Glass Mapper for Macros

I cant find that much documentation regarding MVC and Macros in Umbraco. Does anyone know if its possible to use controllers for the Macros before they are passed down to the view? Also.. does anyone know if Glass Mapper has support for Macros?…
Inx51
  • 1,911
  • 3
  • 24
  • 44
0
votes
0 answers

Glass mapper page editor mode

I have an issue with glass mapper in page editor mode. when i am trying to open the page in the page editor mode i got below error. The same code is working properly in local machines. When the code deployed to dev and qa we are getting the below…
0
votes
1 answer

Sitecore IndexField: resulting IEnumerable is empty

I have the following fields in my model: public virtual IEnumerable Authors { get; set; } public virtual IEnumerable External_Contributors { get; set;…
Emanuele Ciriachi
  • 2,216
  • 2
  • 26
  • 39
0
votes
1 answer

How to map to Sitecore Rules Field

I'm having some trouble mapping to a Rules data field in Sitecore. I've got a rendering parameters template that has a data field named "Redirect Rules." I'm using TDS and Glass to map the objects back to Sitecore. In the generated class, I get…
Craig Taylor
  • 1,173
  • 1
  • 7
  • 20
0
votes
1 answer

Sitecore convert MediaItem to Image in glass mapper

So, I am creating a content importer to pull content in from an external source into sitecore. I create an image like so: MediaCreatorOptions options = new MediaCreatorOptions(); options.FileBased = false; …
Lee Cook
  • 3
  • 1
  • 2
0
votes
2 answers

Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex. No matching constructor was found

I just upgraded my Sitecore 7.2 instance to use the latest Glass Mapper SC Nuget packages (3.5.2.0). I noticed when I try to rebuild my indexes Sitecore throws an error now: Could not create instance of type:…
0
votes
1 answer

Serious Sitecore MVC/Glassmapper issue

We have a Sitecore site for a client that is throwing an error that seems related to MVC and/or Glassmapper. It happening on the content delivery server when under some load during load testing (not massive). It appears to happen when the site is…
Scott
  • 1,011
  • 1
  • 15
  • 30
0
votes
2 answers

Glass Mapper errors in Page Editor mode when using @RenderLink or @Render when you view / partial takes an IEnum and you iterate over it

We are using GlassMapper. We are passing an Ienum of a GlassType generated by TFS To a partial view from a controller. In the controller we are iterating over our Ienum and then using @RenderLink or @Render syntax. When you view the page its…
0
votes
2 answers

Model a link in umbraco using Glass Mapper

I am using Glass Mapper for Umbraco. While trying to model something I have a class like: [UmbracoType(AutoMap = true)] public class ImageWithLink : BaseUmbracoItem { public virtual Image Image { get; set; } public virtual ??…
Lee Cook
  • 573
  • 4
  • 18
0
votes
2 answers

Glass Mapper t4 null or empty string

I'm trying to setup Glass Mapper to generate my Sitecore items. I've followed every tutorial I could find, but receive this error when attempting to generate the code: "Loading the include file 'Helpers.tt' returned a null or empty string. The…
Kris B
  • 3,436
  • 9
  • 64
  • 106
0
votes
1 answer

In Sitecore, how does the Glass Mapper Editable feature work when iterating through a collection of objects?

I am using Glass Mapper v3.2.3 with Sitecore v7.5. I see in this tutorial how easy it is to handle a field like a MultiList and get back a list of objects that I can iterate through on my sublayout like this:
    <% foreach…
Corey Burnett
  • 7,312
  • 10
  • 56
  • 93
0
votes
1 answer

Sitecore Glass Mapper : "Duplicate type name within an assembly" Error

I'm having a problem fetching an item using the Glass Mapper SitecoreService. The item definitely exists and the type is correct. (It's being generated by TDS). var language = Language.Parse("en-GB"); var service = new SitecoreService("master"); …
anon
0
votes
1 answer

can we render image sitecore mvc view using itemID

In my MVC view i'm able to get Image ItemID now want to render it i'm doing this as: // Getting ImageItemID ID myImageItemId = new ID(image.Substring(image.IndexOf('{', 0), 38)); // Getting ImageItem according myImageItemId Item…
0
votes
1 answer

view does not inherit from 'System.Web.WebPages.WebPage' in sitecore MVC

in my application i have a view where i giving ViewModel Name that time it's giving an error on console as: MyViewName does not inherit from 'System.Web.WebPages.WebPage' i'm giving ViewModelName as @using Glass.Mapper.Sc.Web.Mvc; @using…