umbraco

How to install Umbraco on Windows 7

点点圈 提交于 2019-12-12 13:13:06
问题 i want to learn umbraco,and for start step,i need to know How to install Umbraco on Windows 7? i found my answer and made this link for farsi(persian) language 回答1: Best thing to do is grab WebMatrix, after install click on app gallery and choose umbraco, and that will walk you through it. Or if you have IIS running you can use the web platform installer(just click on applications and scroll down to umbraco) both of these will install 4.9 you'll have to upgrade to 4.10 manually. 来源: https:/

Error when trying to cast anonymous object, Razor

自闭症网瘾萝莉.ら 提交于 2019-12-12 09:17:53
问题 I am trying to cast an array of anonymous objects, where each object looks like this: new {type="internal",title="Linktitle",target="_blank",link="http://www.google.se"} I have declared a Class "Link", to which the anonymous objects should be casted class Link{ public string type {get;set;} public string target {get;set;} public string title {get;set;} public string link {get;set;} } Now i am trying to cast the objects, like this List<Link> links = Model.relatedLinks.Select(l => new Link{type

Umbraco CMS(.NET): Logging errors loading xslt/User controls

。_饼干妹妹 提交于 2019-12-12 08:53:55
问题 I was wondering if there's a way in Umbraco to log errors that we get when it fails to load xslt or user-controls. Generally it shows a red box saying it couldn't load the control and stuff. Is there a way to properly log this? Thanks in advance. 回答1: First off, it's not really supported... When errors occur it outputs html and writes to the asp.net trace log. Heres how I would approach this. Most of my Umbraco installations use Elmah for exception logging and log4net for application logging.

Database connection in umbraco

强颜欢笑 提交于 2019-12-12 06:46:01
问题 I was installing umbraco and installed successfully, but forgot to configure with database and now i don't know how to connect with database in which file. can somebody explain me whole process of database connection with details 回答1: It is in your web.config, see the connectionStrings default it use the \App_Data\Umbraco.sdf <connectionStrings> <remove name="umbracoDbDSN" /> <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName=

Async Controller Returning “System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult]”

孤街浪徒 提交于 2019-12-12 06:13:45
问题 I'm trying to work out why Umbraco 7.2.4 just doesn't seem to handle asynchronous tasks in my ASP.NET MVC controller. I feel like I've read almost every possible stack overflow and umbraco q&a, and tried many possible methods to try narrow down the problem. This is both for Umbraco 7 & MVC 4 and & MVC 5. It works just fine in an MVC project without Umbraco. HomeController.cs: using System.Threading.Tasks; using System.Web.Mvc; using Umbraco.Web.Models; using Umbraco.Web.Mvc; namespace Umbraco

Can I change URL of content?

跟風遠走 提交于 2019-12-12 05:51:56
问题 I have created some contents. I have noticed URL of content is generated automatically based on name of content. Can you please guide me if I can edit URL or enter a custom URL ? Thanks 回答1: You can do it in 2 ways: 1 Setup these rules in UrlRewrite.config in /config folder in your umbraco websites root. To add new rule: <add name="produktidrewrite" virtualUrl="^~/product/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/product.aspx?productid=$1" ignoreCase=

display grid value using webforms in umbraco

两盒软妹~` 提交于 2019-12-12 02:49:11
问题 I am trying to display a document property in my webform template in umbraco, like this: <%@ Master Language="C#" MasterPageFile="~/umbraco/Masterpages/Default.master" AutoEventWireup="true" %> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <umbraco:item field="content" runat="server" /> </asp:Content> But on the content i am getting a json description of the field, not the value, here is the output: { "name": "1 column layout", "sections": [ { "grid": 12, "rows

Umbraco - Try to read document properties programatically but always getting null

无人久伴 提交于 2019-12-12 01:04:28
问题 I am writing a console application to read content from my umbraco database. I am unable to get following simple code to work var doc = new Document(1081); Console.WriteLine("Package Id: {0}", doc.getProperty("packageId").Value); There is a document in Umbraco and I have created content against that document. The content node is published and has id of 1081. The first line works fine and returns me the correct content node but second line fails to retrieve the property named packageId . There

Umbraco configured with IIS 7 having hard time with the site URL?

拥有回忆 提交于 2019-12-12 00:11:53
问题 I am having a problem with my Umbraco installation on IIS. The site is working, apart from my home button. When I push the home button, the URL should be http:/myserver.mysite instead the URL is http:/myserver When I type in the link it serves me the home page but when I click on the Home button it wont and the scenario described above occurs. I am using IIS 7 and Umbraco 6.1.1. 回答1: If you are able to get to the homepage with both hostnames but then clicking on the Home link takes you to the

Uploading umbraco site on server from local host

岁酱吖の 提交于 2019-12-11 18:37:30
问题 I've successfully created site using Umbraco now its time to upload it on hosting server.. i've searched and got one paid product for the same..and i dont want to use it. Has any body tried developing Umbraco site on local and then uploading it on server? If yes then please help me doing that. 回答1: First I run the umbraco install from a local IIS website. Then I setup my visual studio solution for that website (and my souce control). Then I work, until I reach a beta version, then I go