umbraco7

Umbraco 7: Could not load type Umbraco.Web.UmbracoApplication

我们两清 提交于 2019-12-05 09:36:57
问题 Created an ASP.NET empty web application in Visual Studio Installed Umbraco 7.1.5 via NuGet Package Manager When asked to overwrite the web.config file, typed Y(Yes) Built the project F5 When I run the project I get the following error in Chrome: How can I solve this problem and get to the installation page? 回答1: I also encountered same problem few days ago..i solved that...Just change the name of MVC project from 'Umbraco' to something else and then it will work fine.. 回答2: The solution,

Umbraco 7 Working with languages/Dictionary

孤街浪徒 提交于 2019-12-05 05:47:42
Our project has finally come to a point where we can add translations. I just cant seem to figure out how to actually work with languages in Umbraco 7. Ive added a language and a few dictionary items in the backend, but how do i select the givent language in my code? Are there any helpers to get translations in the API? Like DictionaryHelper.Translate("Answers","da-DK"); ? Or similar? Is there a way to set the language, etc in the startup controller, and just always get that language from the dictionary? Thanks in advance. Jonas. First, you have to create your languages under Settings >

How can I display a Media picker image

笑着哭i 提交于 2019-12-04 14:49:55
Sorry this might be a newbie question but I am quite new to Umbraco. I have a media picker set up on a document type, and it all works fine. So I go to the template and enter @Umbraco.Field("bottomRightLarge") this only gives me the ID of the image, how can I get this to show the actual image the user has selected? I am using UMBRACO 7 - and I have tried http://our.umbraco.org/projects/website-utilities/social-bookmarking-button/general-discussions/19360-Displaying-an-image-from-Media-Picker-in-a-web-page - but the XSLT ERRORS bug time. Try using the umbraco image item if using webforms or

Umbraco 7: Could not load type Umbraco.Web.UmbracoApplication

自闭症网瘾萝莉.ら 提交于 2019-12-03 22:27:14
Created an ASP.NET empty web application in Visual Studio Installed Umbraco 7.1.5 via NuGet Package Manager When asked to overwrite the web.config file, typed Y(Yes) Built the project F5 When I run the project I get the following error in Chrome: How can I solve this problem and get to the installation page? I also encountered same problem few days ago..i solved that...Just change the name of MVC project from 'Umbraco' to something else and then it will work fine.. The solution, when I encountered it after installing Umbraco 7.2.12 into an existing but empty project, was to change the assembly

Display Image from Media Library in Umbraco 7

回眸只為那壹抹淺笑 提交于 2019-12-03 08:26:45
问题 This should be something embarrassingly simple, but I can't get it to work: I'd simply like to display an image that was uploaded to the Umbraco Media Library (Umbraco 7.1.1) within a Partial View template. The code is @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ var imgNode = CurrentPage.BannerBackgroundImage; var imgUrl = umbraco.library.NiceUrl(imgNode); <div id="banner-wrapper" style="background: url('@imgUrl') center center no-repeat;"> <!-- some irrelevant content --> </div> } where

Display Image from Media Library in Umbraco 7

扶醉桌前 提交于 2019-12-02 22:12:38
This should be something embarrassingly simple, but I can't get it to work: I'd simply like to display an image that was uploaded to the Umbraco Media Library (Umbraco 7.1.1) within a Partial View template. The code is @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ var imgNode = CurrentPage.BannerBackgroundImage; var imgUrl = umbraco.library.NiceUrl(imgNode); <div id="banner-wrapper" style="background: url('@imgUrl') center center no-repeat;"> <!-- some irrelevant content --> </div> } where BannerBackgroundImage is a custom property of the page. When this is displayed, however, the @imgUrl

How to change URL names in Umbraco

試著忘記壹切 提交于 2019-12-02 19:44:36
This is my first time round using Umbraco and I have created Document Types / Pages using the wrong naming format and now this has transpired into my page URL's, for instance /about-page/ . How would I go about changing them to /about as I have searched the back-end admin panel and there dose't seem to be an option to change their link to document values. Would anyone be able to provide a simple code based example using umbracoUrlAlias or umbracoUrlName how I could change this preferably in Razor. Thanks c0demaster Editing @run yards Solution by digbyswift help in comment Correct Solution:

Umbraco: Create CheckBoxList property with prevalues from mvc model

若如初见. 提交于 2019-12-02 10:08:38
What I want to do is create a CheckBoxList property so the editor could choose facilities specific for current page (hotel name) in BO, and render content based on what is checked. I've created a model: public class Facility { public int Id { get; set; } public string Description { get; set; } public string IconUrl { get; set; } public List<Facility> GetFacilities() { return new List<Facility>() { new Facility() { Id = 4, Description = "Free parking", IconUrl = "" }, new Facility() { Id = 6, Description = "Spa", IconUrl = "" }, new Facility() { Id = 7, Description = "Free Wifi", IconUrl = "" }

Umbaco Archtype rendering images (MediaPicker2)

余生颓废 提交于 2019-12-02 03:31:54
I'm building a image slider using Archtype in Umbraco. I was using umbraco 7.5.9 and Umbraco.MediaPicker when I started this but in the mean time I started a new project with the newest version Umbraco (7.6.2) which uses Umbraco.MediaPicker2 It was no problem rendering images with the old MediaPicker but with the MediaPicker2 it seems impossible. Here is my setup. The Archtype: Here is the partial view that rendered the old MediaPicker <div class="fullWidthSlider"> @foreach (var image in @CurrentPage.SliderImages) { <div>Id: @image.GetValue("image")</div>@*Line added for debug*@ var media =

Sending data by using AngularJS to an action method of ASP.NET MVC 5 controller

老子叫甜甜 提交于 2019-12-01 06:40:40
问题 I've used Umbraco 7.3 and ASP.NET MVC 5 in my project. I want to Send data from AngularJS to ASP.NET MVC 5 controller. How can I do it? reply.html : <div ng-controller="Reply.controller"> <input type="button" name="Send Reply" ng-click="SendReply()"/> </div> Reply.controller.js: angular.module("umbraco") .controller("Reply.controller", function ($scope) { $scope.SendReply = function () { var SendTo = $("#Email").val(); var TextMessage = $("#TextMessage").val(); //TODO: It's need to write some