umbraco

TinyMCE plugin in umbraco

随声附和 提交于 2019-12-24 03:16:52
问题 I'm trying to add a custom button for umbraco richtext datatype, so i made a simple plugin for TinyMCE... But i cant seem to get it working, it shows up in the datatype, but not when i open the editor for some page... //File: umbraco_client/tinymce3/plugins/addarrowheader/editor_plugin_src.js //Same content in editor_plugin.js (just minified) (function () { tinymce.create('tinymce.plugins.mceAddArrowHeader', { init: function (ed, url) { ed.addCommand('addHeader', function () { alert('hello!')

Umbraco V6 404 not handled properly according to culture

情到浓时终转凉″ 提交于 2019-12-24 03:08:34
问题 I have an umbraco site (umbraco v6), and I have set up custom 404 handling as per http://our.umbraco.org/Documentation/Using-Umbraco/Config-files/umbracoSettings/index. My content tree is as follows: Content Root Greek-Homepage Greek-Content Greek-Not-found (id: 1303) English-Homepage English-Content English-Not-found (id: 1304) And I've set up the <errors> tag as follows: <error404> <errorPage culture="default">1303</errorPage> <errorPage culture="el-GR">1303</errorPage> <errorPage culture=

Rich Text Editor and Inserting Images getting error

混江龙づ霸主 提交于 2019-12-24 00:34:34
问题 When i click on 'Insert Picture' in a Rich Text Editor, the box that comes up displays a server error ... (see below) Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of

PredicateBuilder: OR condition nested inside .And()

我怕爱的太早我们不能终老 提交于 2019-12-23 02:32:41
问题 I'm using PredicateBuilder to build a query against a List of Umbraco Nodes to filter search results. I have the searched ID value coming through as a String via the QueryString which I then compare to a string field on each of the Umbraco Nodes in the list to get matches. Currently, the code does the match against the target field in there is a value in the Query String which works fine. I need to add a conditional inside my .And() that tries to match the QS against the field String if the

Deploying Umbraco v8 app to Azure using Azure DevOps

末鹿安然 提交于 2019-12-23 01:47:29
问题 Has anyone used Azure DevOps to deploy an Umbraco v8 application to Azure? I can successfully deploy via Visual Studio, but Azure DevOps only seems to copy over all the dlls to the target, no views or anything, and a zip does not get generated. If anyone has managed this could they share the steps they took please? The steps I have in the pipeline are: Build Test Deploy Publish Symbols Copy File to Publish Artifact What I did notice is that I need a publish profile to successfully publish

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, or one of its dependencies

我们两清 提交于 2019-12-21 20:51:47
问题 Please somebody help me fix this issue. Umbraco application as parent on IIS6 has the following version of System.Web.WebPages.Razor. <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral,

How to add a property to a document type in Umbraco from code?

廉价感情. 提交于 2019-12-21 14:46:51
问题 Could anyone give me an example of how to programatically add a property to an existing document type in Umbraco CMS? This is what I tried: var dt = DocumentType.GetByAlias("TestDocType"); dt.AddPropertyType(new DataTypeDefinition(-49),"testprop", "test prop"); But it throws an exception: Method not found: 'Void umbraco.cms.businesslogic.ContentType.AddPropertyType(umbraco.cms.businesslogic.datatype.DataTypeDefinition, System.String, System.String)'. Any ideas? 回答1: I managed to fix it. The

How to add a property to a document type in Umbraco from code?

对着背影说爱祢 提交于 2019-12-21 14:46:42
问题 Could anyone give me an example of how to programatically add a property to an existing document type in Umbraco CMS? This is what I tried: var dt = DocumentType.GetByAlias("TestDocType"); dt.AddPropertyType(new DataTypeDefinition(-49),"testprop", "test prop"); But it throws an exception: Method not found: 'Void umbraco.cms.businesslogic.ContentType.AddPropertyType(umbraco.cms.businesslogic.datatype.DataTypeDefinition, System.String, System.String)'. Any ideas? 回答1: I managed to fix it. The

Unit Testing a RenderMvcController even possible?

我与影子孤独终老i 提交于 2019-12-21 02:35:07
问题 So I'm working with Umbraco 6.12 and having great difficulty been able to test a RenderMvcController . I have implemented IApplicationEventHandler in my Global.ascx and Ninject is working fine and as expected when running the application - all good. However, unit testing these controllers is a different matter. I found this, and have added the latest reply: http://issues.umbraco.org/issue/U4-1717 I now have this lovely hack in my SetUp: Umbraco.Web.UmbracoContext.EnsureContext(new

Umbraco: List Child Nodes in User Control

时间秒杀一切 提交于 2019-12-20 12:08:47
问题 I have a user control in which I need to return child nodes based on parentID. I am able to get the parentID, but don't know the syntax for returning child nodes. 回答1: Getting child nodes is pretty straightforward. Not sure how far you are with your code so here's a complete example with the various options: using umbraco.presentation.nodeFactory; namespace cogworks.usercontrols { public partial class ExampleUserControl : System.Web.UI.UserControl { protected void Page_Load(object sender,