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/
0
votes
How to map a datasource in DropList to a specific parameter on selection?
I think it would be like this. I hate doing logic in the view, but maybe it will get you to where you need to be. You could also get the Droplink item with Glassmapper.
@inherits Glass.Mapper.Sc.Web. …
1
vote
Accepted
Inner Exception: The model item passed into the dictionary is of type 'Sitecore.Mvc.Presenta...
I believe your rendering is currently is the template View Rendering - /sitecore/templates/System/Layout/Renderings/View rendering
You should be using the template Controller Rendering
- /sitecore/ …
3
votes
Accepted
Using the Security Disabler With Glass Mapper
The underlying service for GlassMapper is Sitecore. Just wrap it with a SecurityDisabler like normal.
You can find an example in the tutorials for GM. http://glass.lu/Mapper/Sc/Tutorials/Tutorial11
…
2
votes
How to register Glass Mapper ISitecoreService in my Ioc
Since what you want is for Glass to have the current user's Sitecore Context, I believe this is right. I just tested it local and it works.
serviceCollection.AddTransient<ISitecoreService>(provider = …
3
votes
Best practice for implementing a controller rendering using GlassController
In the example below, I am using DI to new up all the Glass Mapper glasses. We are using SitecoreContext and GlasHtml in our repositories to do the work.
Controller
private readonly ICartRepository …