umbraco

umbraco public access error when authenticated

断了今生、忘了曾经 提交于 2019-12-10 16:01:10
问题 I have an issue with public access in Umbraco 7. I use a custom membership provider to authenticate the users by my CRM database. I set a rule to let access to authenticated (front-end) users only and I used a custom role provider to define authenticated users have the visitors role. If they are not authenticated, they are redirected to the login page. When I debug the website the user has the role : I am authenticated and the role for the current user is the good one. But I am still

Creating a multilingual site in Umbraco

随声附和 提交于 2019-12-10 15:24:56
问题 I am rather new to umbraco and currently building a web site for my employer. This site will need to support multiple languages. My question is how this should be implemented with umbraco. I am looking at the following approaches: Create the site structure once and entering different translations for each page. This is described here, although I am not exactly sure to what extent this applies to umbraco 4.5.2. Create different file trees for every language and fill in the pages with

how do i add a persian or other language Datatimepicker in umbraco?

人盡茶涼 提交于 2019-12-10 15:06:07
问题 i need to add a persian (shamsi) date time picker in my website.i know about persian data time picker in Asp.net or C# but i'm using umbraco and need to add persiandatetimepicker in umbraco that can use and change persiandatetimepickers code in my code. how do i do it? i found this link: http://our.umbraco.org/forum/developers/api-questions/19718-Using-Umbraco-Date-Time-Picker-in-ASCX-file but not useful. 回答1: You can create new datatypes in Umbraco to both store and render dates in your own

Umbraco usercontrol: Get usercontrol.property.Id within the usercontrol itself?

余生长醉 提交于 2019-12-10 11:36:11
问题 i'm having some trouble with the umbraco usercontrol.. I'm trying to develop a Photo Gallery.. I have a usercontrol with a mediapicker on it, and on save i would like to generate thumbnails of all mediafiles in the picked folder. So far so good.. It is possible that 1 document contains more than one of the Photo Gallery properties, so to determine the path for storing the thumbnails i have to do something like this: 'PhotoGalleryStorageFolder/{DocumentID}/{UsercontrolPropertyId}' Retrieving

Umbraco Imagegen GetCropUrl on Api

流过昼夜 提交于 2019-12-10 10:45:54
问题 I am using ImageGen on Umbraco v7.1. So far so good and am able to get crop urls through my Razor code. However, I need to get the crop url on my Api controller but am unsure how to do this. This is how I am currently trying to get it. ModelImage = Services.MediaService.GetById(galleryId).GetValue("modelImage").ToString() ...where ModelImage is an alias for the "Image Cropper" datatype. This returns the image url in the src property along with crop information (line breaks added): ModelImage:

xslt matching first x items of filtered result set

为君一笑 提交于 2019-12-10 09:54:28
问题 Quite new to xslt so forgive me if this is a basic question - I can't find the answer either on SO or by searching on Google. What I am trying to do is return a filtered set of nodes and then have a template match on the first 1 or 2 items in that set and another template match the remainder. However I don't seem to be able to do this without a <xsl:for-each /> loop (which is highly undesirable as I may be matching 3000 nodes and only treating 1 differently). Using position() doesn't work as

Copying an XSLT variable

我们两清 提交于 2019-12-10 03:48:54
问题 I'm working on an Umbraco XSL Stylesheet and I am pretty stuck. Basically, I have a parameter that I test and use it's value if it's present, otherwise I use the default parameter $currentPage . Here are the parameters <xsl:param name="source" select="/macro/sourceId" /> <xsl:param name="currentPage" /> Here's the variable <xsl:variable name="current"> <xsl:choose> <xsl:when test="$source > 0"> <xsl:copy-of select="umbraco.library:GetXmlNodeById($source)" /> </xsl:when> <xsl:otherwise> <xsl

Multi-tenancy support: Umbraco vs Orchard Project

一世执手 提交于 2019-12-10 01:21:22
问题 I am currently using an older version of Umbraco (4.03) and I have several basic sites (mostly 1 pagers) running under the same IIS Application. I have a shared hosting account with Winhost.com, which doesn't offer multiple site application roots, just domain pointers, so I'm limited to a single CMS installation that supports multi-tenancy. The Umbraco multi-tenancy setup is a bit hacky and I really need to upgrade. It seems that Orchard is more focused on multi-tenancy support. My Umbraco

Render LayoutGrid of child article in umbraco?

*爱你&永不变心* 提交于 2019-12-09 02:07:18
问题 I have a article witch has multiple related article. this related articles have a layout grid. now I want to render this grids below of my main article. I get this related article by this code: @{ var children = Model.Content.GetPropertyValue("relatedArticles").ToString().Split(','); } @foreach (var child in children) { Umbraco.Content(child).GetGridHtml("gridLayout"); } but GetGridHtml() function donot work. in umbraco documentation GetGridHtml only is accesible from @CurrentPage. how can I

Ignore special characters in Examine

心不动则不痛 提交于 2019-12-08 19:12:34
In Umbraco, I use Examine to search in the website but the content is in french. Everything works fine except when I search for "Français" it's not the same result as "Francais". Is there a way to ignore those french characters? I try to find a FrenchAnalyser for Leucene/Examine but did not found anything. I use Fuzzy so it return results even if the words is not the same. Here's the code of my search : public static ISearchResults Search(string searchTerm) { var provider = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"]; var criteria = provider.CreateSearchCriteria