sitecore

Sitecore Role Security Make Access Overriding Deny

微笑、不失礼 提交于 2019-12-30 10:38:22
问题 I have user roles that work as follows: Admin is a role in Manger which is a role in Logged in User. I want this to work this way so that if a user has an Admin role, then they will also have a Logged in User role. This reason for this is checks in the code. I don't really want to have to write something that incrementally checks each role to see if a user has access to something when I can just check if they are a Logged in User. Now I want to be able to apply security to sitecore items. The

Sitecore Glass Mapper always null

时光总嘲笑我的痴心妄想 提交于 2019-12-29 08:41:40
问题 I am using Sitecore Glass Mapper for a new project I'm setting up. We are using Sitecore 7.2, latest version of Team Development for Sitecore (TDS) code generation and the latest version of glass. The code I am trying to execute: var b = new SitecoreContext(); var c = b.GetCurrentItem<T01_Homepage>(); b is not null. c is null. var d = b.GetItem<T01_Homepage>("path") d is null. I added my assembly in GlassMapperScCustom: public static IConfigurationLoader[] GlassLoaders(){ var attributes = new

Azure a connection attempt failed

試著忘記壹切 提交于 2019-12-25 18:38:40
问题 I've a sitecore azure deployment 2.0. Unfortunately, when I try to run this from company network I get the error below: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 213.199.180.206:80 When I try below on the same machine it works: http://www.google.com https://www.google.com Wondering what exactly is causing the above issue given both 443 and 80 works well

How to assign templates to another template dynamically in sitecore?

岁酱吖の 提交于 2019-12-25 16:54:04
问题 I know how to add or create Item programmatically. My doubt is how to assign the template as below programmatically? Sitecore.Data.Database masterDatabase = Sitecore.Configuration.Factory.GetDatabase("master"); //This is master item.I want to add some items in this template.like below programatically Item MasterItem = masterDatabase.GetItem("/sitecore/templates/DynamicTemplates/Employees"); //This is folder which has two templates[Developers,Tester].I want to assign these two as in image

Sitecore WFFM checkbox values on Create Item

Deadly 提交于 2019-12-25 16:52:42
问题 I'm using the Create Item save action in a web form. I have a checkbox list that points to a folder containing category items. This is mapped to a Multilist field on the item template that it will create when the user submits the form. But it's passing the checkbox text, not the value, so the multilist for each new item created has bad data in it. Does anyone know how to set the checkbox list to pass the values instead? I'm kind of surprised it's doing this in the first place. 回答1: I haven't

Replacing sitecore layout in parent and child items

怎甘沉沦 提交于 2019-12-25 16:27:13
问题 I am creating a new footer sublayout in sitecore for use in multiple sites (we run a multi site environment). Currently a sublayout called StandardLayout is used, but I would like to change this across several of our sites to a new layout GlobalFooter. The problem is that child items of the Home Page have overridden layout components, so what I would like to know is if there is an easy way to change the layout without losing all of the overridden components (as I expect that I may need to

how to customize publish action - sitecore

北城余情 提交于 2019-12-25 16:02:42
问题 I created a user in sitecore with 2 roles assigned to him i.e author and publisher When this user who is both author and publisher creates any content he shouldn't be able to publish it. Can i overwrite the publish action? check on the user who submitted the content and the roles he is assigned to and restrict him with a popup message or something like that? Any help is appreciated. Thanks. 回答1: Follow the below steps to write custom publish actions For customizing the publish action, Write a

How can I do a partial page update with ajax using Sitecore?

别来无恙 提交于 2019-12-25 12:25:35
问题 I have a specific page (sitecore content item) in my web application composed of a sitecore layout and many sublayouts. One of those sublayouts is a user control that I would like to have refreshed once a certain button is clicked. I would like only that sublayout to be refreshed and the rest of the page to remain unchanged (typical ajax situation here). How do I accomplish this with sitecore when all of my sitecore content items are directly related to a full page in my web application

While Installing Sitecore Active Commerce-SC80 3.2, I get an error “Unable to load one or more requested types”

╄→гoц情女王★ 提交于 2019-12-25 09:15:46
问题 Following is stack trace: [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 System.Reflection.Assembly.GetTypes() +118 Glass.Mapper.Configuration.Attributes.AttributeConfigurationLoader.LoadFromAssembly(Assembly assembly) +172 [ConfigurationException: Failed to load types Could not load file or assembly 'Sitecore.Ecommerce.Apps, Version

Command “timing out” during Sitecore automated item creation

巧了我就是萌 提交于 2019-12-25 07:49:03
问题 I have a command that I've added to a "national" node in the Sitecore Editor. The command generates a list of the 50 state nodes beneath it. It then goes through the state nodes (1 at a time) and generates a list of local nodes under each state node. Within the lists of local nodes, I iterate through them and check if the new item exists - if it does not, I add (create) it as a child under the local node. Ultimately, there are nearly 300 local items that are being added during the course of