umbraco7

Umbraco route definition-ajax form

て烟熏妆下的殇ゞ 提交于 2019-12-25 07:15:17
问题 Hi :) I've got error "Cannot find the Umbraco route definition in the route values, the request must be made in the context of an Umbraco request" and return this wrong peace of code - "return RedirectToCurrentUmbracoPage();". After seding ajax form. This is my cotroller: public class ContactController : Umbraco.Web.Mvc.SurfaceController { private string GMAIL_SERVER = "smtp.gmail.com"; private int PORT = 587; [ChildActionOnly] public ActionResult ContactForm() { var model = new

RedirectToAction is not working correctly in SurfaceController?

浪子不回头ぞ 提交于 2019-12-25 04:23:17
问题 I m submiting a form to SurfaceController's action 'Submit'. Where after saving data it Redirect to another action 'LeadContact' using MVC RedirectToAction and pass Id as a paramter to it. In 'LeadContact' model is being populating and passed to 'LeadContact' view. Not sure if I m doing correctly or not but when 'LeadContact' renders in browser it amends URL. Browser shows URL like http://name:50656/umbraco/Surface/HealthInsurance/LeadContact?leadOptionId=70 while I m expecting it should be

Unable to access Login form in Umbraco 7.5.4 after deploying the web-application on Internet

本秂侑毒 提交于 2019-12-25 04:17:09
问题 After deploying my web application on internet, I cannot access to Login form for umbraco admin back-office [http://www.cake-and-art.de//umbraco][1] I've encountered an error. How can I solve it? Please help me. I've used Umbraco 7.5.4 and ASP.NET MVC Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security

Umbraco and Indexing

流过昼夜 提交于 2019-12-25 03:15:00
问题 I have a Visual Studio project with 2 solutions: Solution 1: UmbracoCms (Umbraco 7.2 code base) Solution 2: SeachIndexer (lucene.net spatial - Windows Console Application) In my solution 2 I have reference to the following .dlls from the Umbraco solution: UmbracoCms.dll cms.dll businesslogic.ddl umbraco.dll umbraco.DataLayer.dll In the Program.cs file I have the following code: Node rootNode = new Node(1103); string nodeTypeAlias = "articlePage"; if (node.NodeTypeAlias == nodeTypeAlias)

UmbracoTemplatePage and strongly typed view not working together

微笑、不失礼 提交于 2019-12-25 02:25:35
问题 I don't quite understand why I can't use both strongly typed view and umbraco template in one view. I have a script importing excel data. My website is in umbraco 7. I use Import.cshtml view which calls upload.cshtml partial @inherits UmbracoTemplatePage @{ Layout = "~/Views/Master.cshtml"; var locations = new List<SelectListItem> { new SelectListItem {Selected = false, Text = "location 1", Value = ""}, }; var fileTypes = new List<SelectListItem> { new SelectListItem {Selected = false, Text =

Passing a custom model into a Umbraco Partial View and getting object casting error

寵の児 提交于 2019-12-24 14:34:47
问题 I am trying to create a custom model and pass it to my partial view but I keep getting this error Unable to cast object of type 'Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent' to type 'BlogPostModel' and cant understand why. I have 3 models, BlogPostModel which inherits from HomeModel which inherits from BaseLayoutModel. BlogPostModel.cs public class BlogPostModel : HomeModel { public BlogPostModel(RenderModel model) : base(model) { } public IPublishedProperty MainBlogImage

Umbraco - members creating back-end content

坚强是说给别人听的谎言 提交于 2019-12-24 09:16:25
问题 I am trying to build an intranet where thousands of employees could create,edit and publish documents to the site. These documents will be fairly simple (possibly one rich text field and a few other simpler fields). I want to treat them as Umbraco back-end documents (rather than say data in separate SQL tables) so they can be included in partial views. There will be other, more complex documents but these will be managed by a smaller number of back-end users , so that is fine. I don't believe

Session Start and Session End in Umbraco

点点圈 提交于 2019-12-23 20:39:55
问题 I am using umbraco 7.0 and I need to add some custom code on application start, session start and session end. As for registering events in umbraco we have to inherit from Umbraco.Core.ApplicationEventHandler , I have sone so. But in that we can only override ApplicationStarted and not Session related as we can do in Global.asax. I have seen Global.asax in Umbraco 6 but I can not access Session as shown in that answer if (Session != null && Session.IsNewSession) , maybe it was umbraco 6 and

Umbraco MySQL upgrade issue “can't specify target table for update in FROM clause”

不打扰是莪最后的温柔 提交于 2019-12-23 05:38:05
问题 Update It looks like the issue is due to the following MySQL statement: UPDATE cmsTemplate SET master = NULL WHERE 'master' IS NOT NULL AND 'master' NOT IN (SELECT nodeId FROM (SELECT * FROM cmsTemplate a) b) Any ideas on how to make the above query compatible with MySQL? Original Issue We are having the following error when trying to upgrade our Umbraco installation (Server Core 2012 R2 / MySQL Database): 2016-12-07 15:49:25,532 [P5184/D5/T42] ERROR Umbraco.Web.Install.Controllers

Umbraco: Create CheckBoxList property with prevalues from mvc model

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 05:52:47
问题 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,