umbraco

ASP.net Upload Limit Server timeout

杀马特。学长 韩版系。学妹 提交于 2019-12-07 03:44:27
I'm having a problem with uploading files in the media section of Umbraco. I'm not sure if the problem is size related as I don’t get an error that give too much details but I'll explain what I’ve done so far and see if you can help. I've added: <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> to the web.config within the tag I've added the same httpRuntime tag to the servers default web.config restarted all the app pools for the websites and the problems still persists. The error I receive when I try to upload files is: Explanation: The request timed out before the page could

How to set up Umbraco to default in a subpage?

雨燕双飞 提交于 2019-12-07 01:42:35
问题 I have this question about umbraco structuring and I can't find the answer anywhere. Typically in Umbraco it will default the root site to the first node of the tree. so if we have Home page 1 page 2 the default page will be home (so www.mysite.com will point to home). How do I change this however so that www.mysite.com will point to page1 or page2? What if I have this structure? wrapper index page 1 page 2 and I want www.mysite.com to go straight to www.mysite.com/index.aspx I couldn't find

Umbraco get dictionary item by language, how?

我只是一个虾纸丫 提交于 2019-12-07 01:15:18
问题 In Umbraco v6 it's possible to get a dictionaryitem with the following command: umbraco.library.GetDictionaryItem("EmailSubject"); This retrieves the proper value of "EmailSubject" depending on which culture the user is visiting the umbraco website. Now I'm writing a simple email class library where I don't care about System.Threading.Thread.CurrentThread.CurrentCulture and I don't want to set the CurrentCulture all the time, before getting the value. It works, but I don't like the approach.

How to setup Umbraco 6.1.2 in Visual Studio 2012 with MVC enabled to use in TFS? [closed]

痞子三分冷 提交于 2019-12-07 00:32:32
Closed . This question needs details or clarity . It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post . Closed 6 years ago . What I want is a development environment in Visual Studio 2012 for Umbraco version 6.1.2 (latest stable version at the moment) with MVC as rendering engine so I can use Razor and integrate a MVC project in Umbraco. I also want to be able to use a Team Foundation Sever to share and store the code. The problem lies here: When I just download the Umbraco files from Umbraco or use WebMatrix to install

Generate GUID in XSLT

旧巷老猫 提交于 2019-12-06 22:29:29
问题 I need to generate a GUID with XSLT and if needed C#, does anyone know how to best do this? It is to generate unique IDs for HTML items. 回答1: The XSLT generate-id function returns a string that uniquely identifies a node in the document. Note these warnings from the spec: An implementation is under no obligation to generate the same identifiers each time a document is transformed. There is no guarantee that a generated unique identifier will be distinct from any unique IDs specified in the

Umbraco AncestorOrSelf(int) - what does it do?

倖福魔咒の 提交于 2019-12-06 18:19:50
问题 When using: @Model.AncestorOrSelf(3) In a .cshtml template in Umbraco, this would presumably limit the node traversal to 3 levels. Is this correct, and if so can anyone also confirm if the current node has the index zero? 回答1: @Model.AncestorOrSelf(3) Model.Content is the current page that we're on. AncestorsOrSelf is all of the ancestors this page has in the tree. (level) means : go up to level 1/2/3/... and stop looking for more ancestors when you get there. Above is the comment that you

PredicateBuilder: OR condition nested inside .And()

僤鯓⒐⒋嵵緔 提交于 2019-12-06 16:04:37
I'm using PredicateBuilder to build a query against a List of Umbraco Nodes to filter search results. I have the searched ID value coming through as a String via the QueryString which I then compare to a string field on each of the Umbraco Nodes in the list to get matches. Currently, the code does the match against the target field in there is a value in the Query String which works fine. I need to add a conditional inside my .And() that tries to match the QS against the field String if the field has a value, but if the field has no value, then it should match that as well. if (!string

Umbraco - how to set the value of a property using razor script

寵の児 提交于 2019-12-06 06:35:58
问题 I'm trying to create a very simple polling form and I thought of having a go at it using razor instead of using an external control. I've created a form that lists one question and a list of answers and when we press submit we go to the page that calls the razor script that handles the results. What I want to do is loop through all the answers and increment their counter by one. There is a numeric property called "Counter" on each Answer object. However that keeps failing. If I do: var

Umbraco Imagegen GetCropUrl on Api

夙愿已清 提交于 2019-12-06 05:24:15
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: "{ "focalPoint": { "left": 0.5, "top": 0.5 }, "src": "/media/1828/bob-marley-thumbnail-update.jpg",

Visual Studio and TFS, detect changes outside Visual Studio [duplicate]

一笑奈何 提交于 2019-12-06 05:03:42
This question already has answers here : Force TFS to detect changes (7 answers) Closed 3 years ago . Im Working with Visual Studio 2015 with an ASP.NET Web Application, with Umbraco and uSync installed. It's not essential what uSync and Umbraco are, but when I start the project and create a Template in Umbraco, uSync writes "export"-files to a specific folder in the project path. Now Visual Studio doesn't list the new, changed or deleted files under pending changes, so i can't check-in my changes. Is there a way to tell Visual Studio to always track created, removed or changed files in