umbraco

Umbraco TinyMCE - not showing absolute URLs in Insert/Update link

泄露秘密 提交于 2019-12-01 21:05:42
this has been driving me crazy for a few hours, I managed to fix it on my local development machine and of course when I put it to live it's not working. Here is what I did in my Umbraco set up: in the Config/tinyMceConfig.Config I added: <config key="relative_urls">false</config> <config key="convert_urls">false</config> <config key="remove_script_host">false</config> I also amended the Javascript code in insertLink.aspx to set localUrl to blank as this made it work on the dev machine. Does anyone know how to fix this really stupid bug on my live server? Thanks Unfortunately, you could not

Using a custom MvcHttpHandler v2.0 Breaking change from 1.0 to 2.0?

爱⌒轻易说出口 提交于 2019-12-01 13:34:53
问题 I have a site where part is webforms (Umbraco CMS) and part is MVC This is the HttpHandler to deal with the MVC functionality: public class Mvc : MvcHttpHandler { protected override void ProcessRequest(HttpContext httpContext) { httpContext.Trace.Write("Mvc.ashx", "Begin ProcessRequest"); string originalPath = httpContext.Request.Path; string newPath = httpContext.Request.QueryString["mvcRoute"]; if (string.IsNullOrEmpty(newPath)) newPath = "/"; httpContext.Trace.Write("Mvc.ashx", "newPath =

Assigning hostnames in umbraco

拜拜、爱过 提交于 2019-12-01 06:42:34
I'm setting up af multi lingual page with the umbraco cms. I have a content structure that looks like this: Content da danish subpage 1 danish subpage 2 en english subpage 1 english subpage 2 I would like the routing to be something like: http://mysite.dk should go to http://mysite.dk/da/danish subpage 1 http://mysite.dk/da/ should go to http://mysite.dk/da/danish subpage 1 (as well) http://mysite.dk/en/ should go to http://mysite.dk/en/english subpage 1 I know I need to set up the hostnames in umbraco, but I can't figure out how to do that. I don't have access to IIS as it's in a hosted

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

How to show umbraco multiple media picker images on page with a macro

冷暖自知 提交于 2019-12-01 00:42:53
Hello stackoverflow people hope you can help me with maybe a simple question, but couldn't find a solution elsewhere and I have just been working with umbraco for a week now and have never used the mvc part before so all is new for me. So the big problem is how I make a macro to show these images I choose from the multiple media picker the macro should just end with showing. <img src="img1.gif" height="50" width="50"> <img src="img2.gif" height="50" width="50"> And so on depending on how many images there is. (the size is just an exempel) I tryed somthing like this @var selectedMedia3 =

XSLT, sort and group by year-date

孤人 提交于 2019-12-01 00:41:42
Regarding Umbraco XSLT version 1. I have aprox. 150 news items in XML. Lets say like this (all is pseudocode until I get more familiar with this xml/xslt): <news> <data alias=date>2008-10-20</data> </news> <news> <data alias=date>2009-11-25</data> </news><news> <data alias=date>2009-11-20</data> </news> etc. etc.... I would like to run through the XML and create html-output as a news archive. Something like (tags not important): 2008 Jan Feb ... 2009 Jan Feb Mar etc. etc. I can only come up with a nested for-each (pseudocode): var year_counter = 2002 var month_counter = 1 <xsl:for-each select=

Working with non-Umbraco data in MVC and Umbraco project?

巧了我就是萌 提交于 2019-11-30 20:51:15
I am working on a project that has MVC 4 and the Umbraco CMS installed. I apologise - being newbie, my question may be weird. My question is: how do I work with types which I don't want to manage through Umbraco back office?Rather, it will be simple data coming and being stored in SQL Server. Specifically I want to ask: Can I create a controller in MVC and bypass Umbraco? What controllers should be inherited from? Should they be standard MVC Controller, SurfaceController or RenderMvcController ? Again, it will not be an Umbraco document type or data. Will views be inherited from

How to show umbraco multiple media picker images on page with a macro

纵饮孤独 提交于 2019-11-30 19:08:55
问题 Hello stackoverflow people hope you can help me with maybe a simple question, but couldn't find a solution elsewhere and I have just been working with umbraco for a week now and have never used the mvc part before so all is new for me. So the big problem is how I make a macro to show these images I choose from the multiple media picker the macro should just end with showing. <img src="img1.gif" height="50" width="50"> <img src="img2.gif" height="50" width="50"> And so on depending on how many

Returning Json instead of XML with Umbraco Base

点点圈 提交于 2019-11-30 15:43:37
问题 I have a .NET method that adds a new member to my DB. It does this through an AJAX request. I have this working correctly, however I am having problems returning the correct response message so I can print the correct messages to the user. My method at the moment looks like this: public static string MemberRegister(int process) { //here we find form values posted to the current page HttpRequest post = HttpContext.Current.Request; //get values from ajax URL var name = post["name"]; var email =

Setting up local development environment for Umbraco

独自空忆成欢 提交于 2019-11-30 15:14:01
问题 I have inherited an Umbraco CMS project, the Umbraco instance and custom user controls exist on our test server as the initial build has been demo-ed to the client already. I now need to take this on, the initial build was done by a freelance dev before my time here and no documentation exists on set up, deployment, etc. The custom usercontrols were under source control and build ok, after a bit of bug fixing. I have followed the following to try and get an instance of the Umbraco install and