Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relating to the Glass.Mapper.Sc ORM framework. More information about the framework is available here: http://www.glass.lu/
3
votes
Accepted
Glass Mapper doesn't return null?
You need to set the EnforceTemplate setting when mapping your interface to either SitecoreEnforceTemplate.Template or SitecoreEnforceTemplate.TemplateAndBase.
public enum SitecoreEnforceTemplate
{
…
1
vote
Accepted
Map text field to nested object
You can use the attribute [SitecoreSelf] to continue mapping the current item on a nested object:
public class Market
{
[SitecoreSelf]
public virtual Text Name { get; set }
}
Then on the …
5
votes
Sitecore Glass.Mapper VersionCountDisabler is disposed of too early
I believe linked items by default are loaded lazily, which is probably what is causing this.
If you first access the property outside the VersionCountDisabler then the items are loaded without it.
A …
1
vote
Adding Custom (non sitecore field) property or method to Glass Mapper Class Returns Null
If you are using Glass Mapper to map an item to an interface it will create a proxy class implementing that interface, but it will have no connection to the concrete class (or any other implementation …
4
votes
Best practice for implementing a controller rendering using GlassController
If your controller inherits fromt the GlassController<T> then you have access to several properties and methods to access either the context item or the datasource item.
Item ContextItem
Item DataS …
0
votes
Accepted
Creating Glassmapper Models Programmatically with Standard Values
When you create the item directly from the model GlassMapper has no way of knowing if the values of the item's properties are to be overwritten by the standard values or if you intended them to be n …