FAQ Database Discussion Community


How can I capture data from Umbraco Forms?

umbraco,umbraco7,umbraco-contour
I have a requirement to provide a GUI forms editor so that non-technical users can create forms. One of the tools I am looking at is the Umbraco Forms tool (formerly Umbraco Contour). I want to be able to capture submitted data in an Action Method, process it in some...

umbraco 7 log in successful check

c#,asp.net-mvc,razor,umbraco7
I'm using the built in umbraco log in system for allowing members to sign in. And my code looks like this: @using (Html.BeginUmbracoForm<UmbLoginController>("HandleLogin")) { <legend>Login</legend> @Html.ValidationSummary("loginModel", true) @Html.TextBoxFor(m => loginModel.Username, new { @class = "form-control", @placeholder = "Username" }) @Html.ValidationMessageFor(m => loginModel.Username, "", new { @class = "alert-danger", @role =...

Rich text editor (tinymce) images - how to disable auto height and width?

tinymce,umbraco,umbraco7
We're using Umbraco v7.2.1 to serve what is supposed to be responsive content. When you add an image from the media library to the tinymce editor, this is the html that is inserted by tinymce: <img style="width: 500px; height:500px;" src="/media/1007/jobs-block.jpg?width=500&amp;height=500" alt="undefined" rel="1097" /> I really don't want ANY w x...

Multiple Folders in Multiple Media Picker Umbraco 7

c#,umbraco,umbraco7
I'm trying to add multiple folders in a Multiple Media Picker but when i'm looping through it i'm only getting a single ID. This is the code i'm using to loop through the content: var tabList = Model.Content.GetPropertyValue<string>("containertab").Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse); Is it allowed to add multiple folders...

Umbraco: Check if current page is child of page with id or name of 'xxx' [closed]

c#,asp.net-mvc,razor,umbraco,umbraco7
I need to check if the current page is a child of another page. var myPage = Umbraco.Content(1086); if(Model.IsChildOf(myPage)) { } ?? ...

Ordering Members in Umbraco 7 Back Office

umbraco,umbraco7
We are currently utilising the Umbraco 7 membership service. Our site creates members as part of a sign-up process. In the CMS side of Umbraco I can see that the members should be sorted into folders alphabetically, however it would appear that the Name is being used to sort. This...

Umbraco webmatrix vs nuget

umbraco,umbraco7
Is there any difference in functionality between installing umbraco via the webmatrix installer compared to installing the nuget package?

Is it possible to download an sdf umbraco database from Azure and convert it to Azure SQL

database,azure,umbraco,webmatrix,umbraco7
I have a project that uses a local database(SDF) for umbraco which is hosted on azure, I would like to copy the data from that local database to a new one that will be hosted on Azure sql, then I want to update connection string to use that database, is...

Create Database table from model with enum using Umbraco.Core.Persistence

c#,umbraco,umbraco7
Want to create this table on application start if it does not exist. Code: public class Database : ApplicationEventHandler { protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { var db = applicationContext.DatabaseContext.Database; //Cant add this table due to the ENUM if (!db.TableExist("FormData")) { db.CreateTable<FormData>(false); } } } Model: [PrimaryKey("Id")] public...

how to use admin panel after upload project on server

sql-server,asp.net-mvc,content-management-system,umbraco7
I am new to umbraco development. In one of my projects I have used Umbraco with ASP.NET MVC. After publishing & uploading the project on a server, how do I access the Umbraco admin section?...

Umbraco 7 load content media picker in custom section

c#,angularjs,umbraco7
I've created a custom section in Umbraco 7 that references external urls, but have a requirement to extend it to use exactly the same functionality as the media picker from the 'Content' rich text editor. I don't need any other rich text functionality other than to load the media picker...

Run code when approving members

umbraco7
Is it possible to execute some C# code when checking the "Is Approved" checkbox for a Member? Our site has a registration form which programmatically creates a user in the Members section, however the new Members must be approved by an admin and we would like to send an email...

How to uninstall Umbraco 7

nuget,uninstall,umbraco7
I installed Umbraco 7.2.2. from the latest nuget package. However, annoyingly I just clicked install from the initial install wizard, as shown below. Unknowingly it wouldnt ask me for the DB connections. So my question is. Is there a clean way to revert the installation and start again. Or am...

Umbraco7 new backoffice section, edit date field, AngularJS

jquery,angularjs,plugins,umbraco7
I'm trying to create an edit screen for a new section in the back office. I've followed various tutorials on how to go about this and it is working fine for normal text fields. However, my model has 2 date fields as part of it and I would like to...

Manually deploying Umbraco website on IIS - dashboard, js and css not working

iis,iis-7,umbraco,webmatrix,umbraco7
I have an Umbraco website with an SQl db. I backed up the DB and imported it on the SQL server on the server here. I then copied all the files of my umbraco folder and placed them in a folder on the server here as well. I then made...

Null reference on creating table with foreign key in Umbraco on application start

c#,umbraco,umbraco7,petapoco
I am using Umbraco 7.2.1 and wanted to create table on application start. There are two tables project and students, classes are as follows. [TableName("Projects")] public class Project { [PrimaryKeyColumn(AutoIncrement=true)] public int Id { get; set; } [Required] public string Name { get; set; } } and [TableName("Students")] public class...

Use a html page as a custom section in Umbraco 7 without a tree

umbraco,umbraco7
I have a HTML page that I want to show in a custom section in Umbraco 7. I want to do this without having any tree within that section, as everything is already handled within the html file - It is being placed into the Umbraco back end for convenient...

C# Rest API returns string with double quotes

angularjs,rest,typescript,umbraco7
I have this silly problem, which I hope someone could help me enlighten. I am building an extension for Umbraco7's backoffice, for that I need to receive a simple string. My problem is the string return from the REST api contain double quotes and then AngularJS wont model bind. Here's...

Umbraco: Update Property on specific member

umbraco,umbraco7
I'm running a forum with Umbraco 7, and I wish to update a property on a specific member by hes Id. This is what I tried: var authorId = Model.Content.GetPropertyValue<int>("postAuthor", 0); var author = Members.GetById(authorId); umbraco.cms.businesslogic.member.Member member = umbraco.cms.businesslogic.member.Member.GetMemberFromEmail(author.GetPropertyValue("email").ToString()); member.getProperty("postCounter").Value = Convert.ToInt32(member.getProperty("postCounter")) + 1; member.Save(); But this dont work and...

AngularJs input[type=date] not showing value on load

c#,jquery,angularjs,date,umbraco7
I'm hoping you can help as I'm fairly new to AngularJs. I have created an edit form template that displays 3 fields; a name, a start date and an end date. The data is coming from a WebAPI controller written in C# with an entity framework data source. When the...

Umbraco 7 lists

content-management-system,umbraco,umbraco7
I am new to Umbraco, and am trying to get to grips with its concepts, in particular how to create lists. For example, you might want a news listing that appears on a page as a list of headlines with mouseover extra content, but you don't want to be able...

Create rest service Umbraco 7 backOffice

web-api,umbraco7
I read a lot on this issue. I read that I can use at web api asp.net to create rest service in Umbraco. Can I create this api in Umbraco back office? If not, how do I connect the service to my local Umbraco site? I can't find a simple...

How to deploy Umbraco local site to server?

sql-server,umbraco7
I don't know how can I deploy my local Umbraco 7.2 local website to a normal server (Windows 2012 VPS). I know I need to copy all files to the server, but I can't figure out how can I copy the database. I download an SQL Management Studio 2012, but...

Problems with multi-language site using Umbraco

href,multilanguage,umbraco7
I have set up a multi language site with Umbraco 7 based on this article:https://our.umbraco.org/Documentation/Using-Umbraco/Multilanguage-Setup/ I have managed to get the general layout and first level working but am having problems with the internal links. For example: <ul> <li><a href="/">@umbraco.library.GetDictionaryItem("Home")</a></li> <li><a href="/contact-us">Contact Us</a></li> <li><a...

umbraco public access error when authenticated

asp.net,authentication,umbraco,umbraco7,roleprovider
I have an issue with public access in Umbraco 7. I use a custom membership provider to authenticate the users by my CRM database. I set a rule to let access to authenticated (front-end) users only and I used a custom role provider to define authenticated users have the visitors...

Custom icon for umbraco section

umbraco7,custom-sections
I am using Umbraco 7. I have created a custom section using namespace MyUmbraco.Sections { [Application("CustomSection","mySection","myicon",8)] public class CustomSection: IApplication { } } I am able to create nodes in my section, CRUD operations for those items. only thing in my example is, i am unable to add a custom...