umbraco

How to create a project package for Umbraco?

人盡茶涼 提交于 2019-11-29 19:46:36
问题 I need to create a project for umbraco. I Don't know where to start and where to see about this. I googled and found nothing helpful instead I got confused what is umbraco project. To create a umbraco project whether I need to create web applications or class library in visual studio. I know these are basic but I'm confused in that only. would somebody help me to create the project for umbraco CMS. 回答1: If I understand you correctly, you are looking for resources on how to create an Umbraco

Async Controller Action with Umbraco 7 returns string

只愿长相守 提交于 2019-11-29 19:09:40
问题 Is it possible to use an async action within an Umbraco SurfaceController (and UmbracoApiController) I tried the following code public async Task< ActionResult> HandleLogin(LoginViewModel model) { await Task.Delay(1000); return PartialView("Login", model); } and although it compiled correctly when the action is called the action seems to return as soon as the await is hit, and returns a string System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult] the controller of course inherits from

How to make pagination in XSLT

て烟熏妆下的殇ゞ 提交于 2019-11-29 15:48:39
问题 I have the following XSLT: <xsl:template match="/"> <div id="dokumentliste"> <xsl:variable name="alleNyheder" select="$currentPage//node" /> <xsl:for-each select="$alleNyheder"> <xsl:sort data-type="text" select="@createDate" order="descending" /> <xsl:if test="./data[@alias='manchet'] != ''"> <div class="newsitem"> <h2> <xsl:value-of select="./data[@alias='title']"/> </h2> <xsl:if test="./data[@alias = 'manchet'] != ''"> <div class="nyhedContent"> <p> <span class="dokumentListeDato"> <xsl

XSLT For-Each Wrapping every nth item in a div

对着背影说爱祢 提交于 2019-11-29 11:59:14
I have a series of nodes that are direct child nodes to a parent I want to loop over those nodes but have them wrapped in 'groups' of 4... I'm probably not wording this very clearly so this might help; <span class="child01">@nodename</span> <span class="child02">@nodename</span> <span class="child03">@nodename</span> <span class="child04">@nodename</span> <span class="child05">@nodename</span> <span class="child06">@nodename</span> <span class="child07">@nodename</span> <span class="child08">@nodename</span> .. <span class="child32">@nodename</span> <span class="child33">@nodename</span> ..and

How to debug Azure 500 internal server error [closed]

☆樱花仙子☆ 提交于 2019-11-29 10:54:30
问题 My newly deployed site is getting a 500 internal server error. I'm trying to deploy Umbraco to Azure. I've turned off custom errors but that doesn't help. Is there anyway to see the error that Azure is throwing? SOLVED I was able to edit my configuration and setup RDP into my web role. Once on the box I couldn't go to it via IP because I'm using the umbraco accelerator. There was a binding in IIS to go to 0.mydomain.com. If I used that I could see the page from the server and the error came

Umbraco 4.6+ - How to get all nodes by doctype in C#?

余生颓废 提交于 2019-11-29 09:13:44
Using Umbraco 4.6+, is there a way to retrieve all nodes of a specific doctype in C#? I've been looking in the umbraco.NodeFactory namespace, but haven't found anything of use yet. I was just doing this today, something like the below code should work (using umbraco.presentation.nodeFactory), call it with a nodeId of -1 to get the root node of the site and let it work it's way down: private void DoSomethingWithAllNodesByType(int NodeId, string typeName) { var node = new Node(nodeId); foreach (Node childNode in node.Children) { var child = childNode; if (child.NodeTypeAlias == typeName) { //Do

301 Redirect one domain to another using web.config

浪尽此生 提交于 2019-11-29 06:07:48
问题 I have multiple domains pointing to one hosting location. I wish to establish one of the domains as my main domain and therefore I wish to perform a 301 redirect to this main domain whenever a user accesses my site from a secondary domain. For example: www.example.com This is my main domain. I want all other domains associated with my site to redirect to here. If a user comes in on: www.test.com or www.test.com/anypage etc. Then I want the user to be redirected to the example version of that

Umbraco 7 Update Umbraco Routes

杀马特。学长 韩版系。学妹 提交于 2019-11-29 05:41:26
问题 I am trying to create an Umbraco 7 MVC application. In doing so, I want to be able to create custom controllers that manage data behind the scenes. Through my research, I found using the SurfaceController was the most successful. However, the route adds "/umbraco/surface/" to the page. For example, my Test Controller and View would look like "/umbraco/surface/Test". Is there a way to manage these routes and have it simply go to "/Test" without adding the Umbraco route to it? Any guidance on

Setting errorPage in Umbraco

流过昼夜 提交于 2019-11-29 05:20:23
I am developing a web application using Umbraco. I create a content called PageNotFound and, in the errors section of umbracoSettings.config file, I put the node id of that for 404 error404. The problem is that, with IIS 7, IIS always looks for the HttpErrors section in web.config and does not pay attention to umbracoSettings.config. What should I do? In your web.config (system.webServer section) you can tell the site to pass all of the error handling through to the application: <httpErrors existingResponse="PassThrough" /> This has the disadvantage that Umbraco doesn't handle anything but

Publishing multiple sites on a single instance of umbraco

左心房为你撑大大i 提交于 2019-11-29 02:46:20
I am looking to setup a parallel site to one already that already uses umbraco for its content management system. The new site would share admins, templates, macros, and media resources, but not any content. If I setup multiple host headers pointing to the same directory with an umbraco install, how can I switch the top node (home vs home2) of the site based on which url is being accessed? I believe you first have to change a setting in umbracosettings.config: <useDomainPrefixes>true</useDomainPrefixes> Then I think you also have to right click on each top node and click 'Manage Hostnames',