ActiveTopics https://our.umbraco.org Tue, 24 Apr 2018 16:22:08 +00:00 umbraco Latests topics from the forum on our.umbraco.org en Deployment using Umbraco courier with octopus Integration https://our.umbraco.org/forum/using-umbraco-and-getting-started/91734-deployment-using-umbraco-courier-with-octopus-integration https://our.umbraco.org/forum/using-umbraco-and-getting-started/91734-deployment-using-umbraco-courier-with-octopus-integration Hi ,

i am using umbraco courier tool for deploying umbraco related things in staging site. I want to atomize this courier sync in Octopus tool,as i have deployed all the files as well as content in one single place. can anybody suggest me how to integrate/configure courier in octopus.

please let me know the configuration setup needed on this.

Thanks. Pradeep.

]]>
Yajamanam Tue, 24 Apr 2018 15:47:01 +00:00
Prevent automatically url generating in rich text editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91733-prevent-automatically-url-generating-in-rich-text-editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91733-prevent-automatically-url-generating-in-rich-text-editor Hi everyone! If I put in rich text editor something like "fxcn.com", I'll get this html:

<a class="vglnk" href="http://fxcn.com" rel="nofollow"><span>fxcn</span><span>.</span><span>com</span></a>

How can I prevent this behavior?

]]>
Konstantin Tue, 24 Apr 2018 15:11:05 +00:00
Publishing content to a JSON file https://our.umbraco.org/forum/using-umbraco-and-getting-started/91732-publishing-content-to-a-json-file https://our.umbraco.org/forum/using-umbraco-and-getting-started/91732-publishing-content-to-a-json-file We have a requirement that when our site is published, the client wishes to have certain nodes published to a JSON file so that their app that compliments the website can read the data.

The nodes in question are simple ones (document with several children)

To create the data in a JSON format, how could I create a publish event to do this?

Thanks

]]>
Mike Poole Tue, 24 Apr 2018 15:09:11 +00:00
Intermittent CreateAsync SqlException while Creating an Umbraco Member https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91731-intermittent-createasync-sqlexception-while-creating-an-umbraco-member https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91731-intermittent-createasync-sqlexception-while-creating-an-umbraco-member Intermittently I see that CreateAsync method throws the following SqlException while creating Umbraco members. Has anybody seen this before and hopefully fixed it please? This looks like an Umbraco bug which hasn't been reported, yet.

enter image description here

Details:

Umbraco version 7.5.7 assembly: 1.0.6219.11990

Method that throws the exception intermittently:

    private static async Task<UmbracoApplicationMember> CreateMember(UmbracoMembersUserManager<UmbracoApplicationMember> uMgr, string loginName, string properName, UserLoginInfo loginInfo)
    {
        var user = new UmbracoApplicationMember
        {
            Name = properName,
            UserName = loginName,
            Email = loginName
        };

        var result = await uMgr.CreateAsync(user); // This is where the exception is thrown intermittently
     // The rest of the code...

Further Details:

CreateAsync:

Assembly Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
        //
        // Summary:
        //     Create a user with no password
        //
        // Parameters:
        //   user:
        [AsyncStateMachine(typeof(UserManager<,>.<CreateAsync>d__0))]
        [DebuggerStepThrough]
        public virtual Task<IdentityResult> CreateAsync(TUser user);

UmbracoIdentity:

  #region Assembly UmbracoIdentity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// D:\tfs\MYPROJECT\DEV\WEB\MYPROJECT.Web\packages\UmbracoIdentity.Core.5.0.0\lib\net45\UmbracoIdentity.dll
#endregion

using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Umbraco.Core.Logging;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.SqlSyntax;
using Umbraco.Core.Services;
using UmbracoIdentity.Models;

namespace UmbracoIdentity
{
    public class UmbracoMembersUserManager<TUser> : UserManager<TUser, int> where TUser : UmbracoIdentityMember, IUser<int>, new()
    {
        public UmbracoMembersUserManager(IUserStore<TUser, int> store);

        public override bool SupportsQueryableUsers { get; }
        public override bool SupportsUserLockout { get; }
        public override bool SupportsUserSecurityStamp { get; }
        public override bool SupportsUserTwoFactor { get; }
        public override bool SupportsUserPhoneNumber { get; }

        public static UmbracoMembersUserManager<TUser> Create(IdentityFactoryOptions<UmbracoMembersUserManager<TUser>> options, ILogger logger, ISqlSyntaxProvider sqlSyntax, UmbracoDatabase database, IMemberService memberService, IMemberTypeService memberTypeService, IMemberGroupService memberGroupService, IdentityEnabledMembersMembershipProvider membershipProvider = null);
        public static UmbracoMembersUserManager<TUser> Create(IdentityFactoryOptions<UmbracoMembersUserManager<TUser>> options, IMemberService memberService, IMemberTypeService memberTypeService, IMemberGroupService memberGroupService, IExternalLoginStore externalLoginStore = null, IdentityEnabledMembersMembershipProvider membershipProvider = null);
        public static UmbracoMembersUserManager<TUser> Create(IdentityFactoryOptions<UmbracoMembersUserManager<TUser>> options, UmbracoMembersUserStore<TUser> customUserStore, IdentityEnabledMembersMembershipProvider membershipProvider = null);
        protected override void Dispose(bool disposing);
    }
}

UmbracoApplicationMember:

    using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using UmbracoIdentity;
using UmbracoIdentity.Models;

namespace MYPROJECT.Web.Presentation.Models.UmbracoIdentity
{
    public class UmbracoApplicationMember : UmbracoIdentityMember
    {
        public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<UmbracoApplicationMember, int> manager)
        {
            // Note the authenticationType must match the one 
            // defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);

            // Add custom user claims here
            return userIdentity;
        }
    }
}
]]>
Nurhak Kaya Tue, 24 Apr 2018 14:56:01 +00:00
Umbraco Cloud? https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/91730-umbraco-cloud https://our.umbraco.org/projects/backoffice-extensions/terratype/bugs-questions/91730-umbraco-cloud Hello. Does anyone have any experience using Terratype on Umbraco Cloud? Any info about other people's experience with it in Cloud would be appreciated.

Thanks,
David

]]>
David Zweben Tue, 24 Apr 2018 13:17:25 +00:00
Error code https://our.umbraco.org/forum/using-umbraco-and-getting-started/91729-error-code https://our.umbraco.org/forum/using-umbraco-and-getting-started/91729-error-code Hi

i have written this code. It is displying some error.

see i attached template code because i am passing some values, see blow.

enter image description here

see below code

enter image description here

see error enter image description here

]]>
Jhon Tue, 24 Apr 2018 12:55:52 +00:00
Plumber Content Buttons not changing based on permissions https://our.umbraco.org/projects/backoffice-extensions/plumber-workflow-for-umbraco/plumber-workflow-for-umbraco-discussion-and-troubleshooting/91728-plumber-content-buttons-not-changing-based-on-permissions https://our.umbraco.org/projects/backoffice-extensions/plumber-workflow-for-umbraco/plumber-workflow-for-umbraco-discussion-and-troubleshooting/91728-plumber-content-buttons-not-changing-based-on-permissions Hi,

I am using the latest (.7.7-Beta) version of plumber, and i am not sure if I've misunderstood something or configured it wrong. but the selection of options provided to a user in my workflow group is the same as someone who isn't in any groups.

All users see the buttons like below:

enter image description here

but I thought my non-admin users would have their Save and Publish Permissions removed ?

Is that right or have I missed something ?

My site the top level node has a one stage workflow with a 'site admins' group set as approval. and in the settings I have 'site admins' as default group and the flow set to implicit.

Kevin

]]>
Kevin Jump Tue, 24 Apr 2018 12:52:42 +00:00
Best practice storing booking data https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91727-best-practice-storing-booking-data https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91727-best-practice-storing-booking-data Hi all!

Im about to reengineer an old booking system built on Umbraco 4.7 and Webforms into Umbraco 7.10 and MVC and looking at the best practice to store booking data.

In the old version I created a separate table to store the information as I was afraid that the node system would crumble as there are about 4000-5000 bookings that will be registered. And when the booking system is opened everybody is booking in a very short of time, so the website is under hard pressure.

In the latest version of Umbraco, what if I create nodes with the information instead of a separate table? The benefits would be that its easier to work with the booking info inside Umbraco instead of building a separate admin for that, its also easier to search and its easier to work with the Umbraco API.

Are there any problems of creating a ton of nodes?

]]>
Fredrik Esseen Tue, 24 Apr 2018 11:55:46 +00:00
Weird issue - Dashboard backoffice url giving 404 error for some users but not others https://our.umbraco.org/forum/using-umbraco-and-getting-started/91726-weird-issue-dashboard-backoffice-url-giving-404-error-for-some-users-but-not-others https://our.umbraco.org/forum/using-umbraco-and-getting-started/91726-weird-issue-dashboard-backoffice-url-giving-404-error-for-some-users-but-not-others Hi

I've just started getting reports on an issue that causing the dash to generate a ton of red 404 errors, however I cant repeat them - I've tried on my PC, the server and other machines - no errors. However, the client plus others can see them, I've even teamviewed them on their machine!

The only thing I can see diff in the urls is the addition of a tilde in the backoffice url on their machine

https://www.website.co.uk/~/umbraco/...

vs

https://www.website.co.uk/umbraco/....

Actual urls:

https://www.website.co.uk/~/umbraco/backoffice/doctypegrideditorapi/doctypegrideditorapi/getcontenttypeicon/?contentTypeAlias=contentBlockCopy

while on mine

https://www.website.co.uk/umbraco/backoffice/doctypegrideditorapi/doctypegrideditorapi/getcontenttypeicon/?contentTypeAlias=contentBlockCopy

I've done all the usual, iisreset, clear cache, republished, rebuilt indexes, updated clientdependency, set debug=true, diff browser - nothing, still happens, driving me insane!

Dash Errors

Help!

Thanks

Ian

]]>
TikTakToe Tue, 24 Apr 2018 11:50:50 +00:00
It is displaying error https://our.umbraco.org/forum/using-umbraco-and-getting-started/91725-it-is-displaying-error https://our.umbraco.org/forum/using-umbraco-and-getting-started/91725-it-is-displaying-error Hi

I have written this code . It is getting some error. Caan you please look at my code and error.

enter image description here

See errror output:

enter image description here

]]>
Jhon Tue, 24 Apr 2018 10:45:53 +00:00
reCAPTCHA v2 for a noob https://our.umbraco.org/forum/umbraco-forms/91724-recaptcha-v2-for-a-noob https://our.umbraco.org/forum/umbraco-forms/91724-recaptcha-v2-for-a-noob Hi. I'm pulling my hair out over this now. I have Umbraco 7.4.3 and using Umbraco forms 4.3.0-beta and installed reCAPTCHAfieldforUmbracoForms_1.0.4

I have added the following lines to web.config:

<add key="RecaptchaSiteKey" value="6LooDFIUAAAAAFoo-o9ooooooo_64-p_oUAo4" /><add key="RecaptchaPrivateKey" value="6LooDFIUOOOOOOGoV3fZOoooooooo1tV1zLISlv4x" />

After creating the account for the website on google and added the:

<script src='https://www.google.com/recaptcha/api.js'></script>

to the section of the page in question but i'm still getting the:ERROR for site owner: Invalid domain for site key

What am I missing?

]]>
Oliver Boardman Tue, 24 Apr 2018 09:27:02 +00:00
Get all strongly-typed document of a certain type https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91723-get-all-strongly-typed-document-of-a-certain-type https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91723-get-all-strongly-typed-document-of-a-certain-type Hi,

I have a web service in which I want to retrieve all document of a certain content type but as strongly typed object. I tried to use this:

var contentType = Services.ContentTypeService.GetContentType(PensionPoint.ModelTypeAlias);
var points = Services.ContentService.GetContentOfContentType(contentType.Id).ToList();

However, I get IContent object on which I can't do Object.Property. How can I retrieve the same items but as strongly-types object ?

]]>
ssougnez Tue, 24 Apr 2018 09:09:14 +00:00
Bug macro not rendering in Grid Layout richtext editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91722-bug-macro-not-rendering-in-grid-layout-richtext-editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91722-bug-macro-not-rendering-in-grid-layout-richtext-editor Umbraco 7.10.3

When I insert a macro in a Richtext Editor in a Grid Layout, the macro is not being rendered, I just get "Macro alias: CallToActionLink" on the website???

For the moment the macro only contains the following. It also has 2 macro parameters that are not being used yet (1x textbox and 1x content picker):

@inherits Umbraco.Web.Macros.PartialViewMacroPage
<div>Hello world</div>

A bug in Umbraco?

Here you see the rendered website on the left and the Grid Layout with inserted macro on the right. Funny thing, the preview in the Grid Layout shows the correct content.

Umbraco macro bug

]]>
K.Garrein Tue, 24 Apr 2018 09:00:23 +00:00
Good to know: alias are useless in forms... https://our.umbraco.org/forum/umbraco-forms/91721-good-to-know-alias-are-useless-in-forms https://our.umbraco.org/forum/umbraco-forms/91721-good-to-know-alias-are-useless-in-forms So we were facing a problem in the Forms workflow as our client copied and translated a form to another language with a different name for the email like in french "Adresse électronique". The copy email sent to the client that was {email} suddenly stopped working even though the alias was correct.

Result: It's not using the alias BUT the name of the field all lowercase and no capital letters and accents should stay!

I can understand for backward compatibility but this should be mapped on the alias or at least have an option somewhere for that. This is not documented and it's a paying plugin! We've lost almost a day trying to find the right way to use it in our 25 forms in all languages.

Where the hell is this documented ? I'm still thinking that Forms should be either open source or much more well documented or with a better support...

]]>
MrFlo Tue, 24 Apr 2018 08:46:38 +00:00
ImageHelpers is not working after Upgrading https://our.umbraco.org/forum/using-umbraco-and-getting-started/91720-imagehelpers-is-not-working-after-upgrading https://our.umbraco.org/forum/using-umbraco-and-getting-started/91720-imagehelpers-is-not-working-after-upgrading Hi everyone, good day!

I got a problem after upgrading my UmbracoCms 7.5.6 to UmbracoCms 7.10.3

'System.Web.HtmlString' does not contain a definition for 'SafeMediaPath'

Here is my helpers code : Helpers/ImageHelpers.cs/ImageHelpers/

....
public static string SafeMediaPath(this IHtmlString id)
{
   return id.ToSafeString().UmbracoMediaPath();
}

Any ideas about this?

Appreciate any help!

Jin

]]>
Jin Botol Tue, 24 Apr 2018 07:05:24 +00:00
Custom member profile page with external data https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91719-custom-member-profile-page-with-external-data https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91719-custom-member-profile-page-with-external-data Hi, I'm new to Umbraco. How would you implement custom page that represents Member Profile (personal), but also can be accessible by Admin with some additional "edit" buttons? Also some data from this page should be loaded from different database.

I may implement my own API for data load/update, but I have no idea how to implement profile page in the right way.

Thanks in advance

]]>
Kostya Mon, 23 Apr 2018 20:24:19 +00:00
Updating from 7.6.1 bun fight https://our.umbraco.org/forum/using-umbraco-and-getting-started/91718-updating-from-761-bun-fight https://our.umbraco.org/forum/using-umbraco-and-getting-started/91718-updating-from-761-bun-fight I tried to update from 7.6.1, perhaps my 10th manual Umbraco update. All done "manually" on my test machines for reasons not relevant here.

This one failed, with "bad request 400" errors which I tried to fix following about a dozen posts I read here. I tried migrating to various different versions of Umbraco (the joys of having everything backed up...) and nothing worked.

Eventually I tried the next incremental version 7.6.4 and with some hassle I managed to get that to upgrade. 7.6.4 seems stable, but I want to get up to date, I don't want to stop here.

I have two issues which I hope someone can help. Assume I've read everything here and tried every combination of stuff, but nothing's working.

(1) I'd like to migrate from 7.6.4 -> 7.10.3 When I do that, and kick the server into life, I get a big old error 500 in the client on /umbraco/backoffice/UmbracoApi/Authentication/PostLogin {"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: rawPasswordValue","ExceptionType":"System.ArgumentNullException","StackTrace":" at Umbraco.Core.Models.Membership.User..ctor(Int32 id, String name, String email, String username, String rawPasswordValue, IEnumerable`1 userGroups, Int32[] startContentIds, Int32[] startMediaIds)\r\n at Umbraco.Core.Persistence.Factories.UserFactory.BuildEntity(UserDto dto)\r\n at ...... And in the log file I see a bunch of not obviously broken stuff, but it does say: Umbraco.Core.CoreBootManager - Umbraco 7.10.3 application starting...

Which suggests it thinks it's been upgraded, although I did not see the Umbraco "we're upgrading your system" screen.

Any ideas? What is that all about - rawPassword?

(2) Note that this has "use legacy encoding" set to true. That's because I've been using Umbraco so long. I don't care about the encoding, I'd love to dump the legacy stuff and I don't care if I break users to do it. If I set the thing to false (yay, let's move forward!), how to I get back into my system? Just write a new password into the user's table (with suitable encoding)? I can do that already with the current "encoding" - how do I get out of this legacy trap which is making these upgrades harder than I need.

thanks for any help..

]]>
philw Mon, 23 Apr 2018 20:19:16 +00:00
OpenAM IIS Agent https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91717-openam-iis-agent https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91717-openam-iis-agent We have an IIS server that uses an OpenAM Agent for providing SSO. We have the agent configured to protect the /umbraco path of our Umbraco instance. What we aren't sure about is how to get Umbraco to bypass the login form and use the current User in the HttpRequest? How would one programmatically log the current user into their Umbraco user account?

]]>
Quentin Lindsey Mon, 23 Apr 2018 17:55:54 +00:00
how do i add multinodetreepicker2 values to a lucene index? https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91716-how-do-i-add-multinodetreepicker2-values-to-a-lucene-index https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91716-how-do-i-add-multinodetreepicker2-values-to-a-lucene-index ok chaps, this feels like it should be easy but it's being a pain!

how do i add multinodetreepicker2 node property values to a lucene index?!

my initial thinking was to do something like this:

public class Examine : IApplicationEventHandler
{
    public void OnApplicationInitialized(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
    }

    public void OnApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
    }

    public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
        var helper = new UmbracoHelper(UmbracoContext.Current);
        ExamineManager.Instance.IndexProviderCollection["MyIndexer"].GatheringNodeData += (sender, e) => indexerSite_GatheringNodeData(sender, e, helper);
    }

    private void indexerSite_GatheringNodeData(object sender, IndexingNodeDataEventArgs e, UmbracoHelper helper)
    {
        var content = helper.TypedContent(e.NodeId);

        var nodes = content.GetPropertyValue<IEnumerable<IPublishedContent>>("entries");

        var entries = string.Join(",", nodes.Select(x => x.Name));
        e.Fields.Add("entry", entries);
    }
}

i'd expect 'nodes' to be a 'IEnumerable

so i did some debugging and the property 'entries' is being returned as:

Value = {Umbraco.Core.Udi[4]}

expanding that has 4 entries:

{umb://document/3457a1b68ef6471fb681d4fc8f864f8b}
{umb://document/e0a41a0d11a5467480d33da3fadf6d5}
{umb://document/90115d54778a47208fe8a95afc1a131}
{umb://document/28904ea23b0040bcb0610a4b202af8}

wtf?!

i've dropped the above code into a controller to debug it and it works as expected so i'm guessing it's possibly something to do with how the helper is getting the typed content?

without wanting to reinvent the wheel, i'm guessing there's a more standard way to do this what with the mntp being such a useful property datatype?!

any suggestions on how to dig myself out of this one would be blardy amazing ;)

cheers,

jake

]]>
jake williamson Mon, 23 Apr 2018 17:33:56 +00:00
JS error when aligning content (left, center, right, justify) in richtext editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91715-js-error-when-aligning-content-left-center-right-justify-in-richtext-editor https://our.umbraco.org/forum/using-umbraco-and-getting-started/91715-js-error-when-aligning-content-left-center-right-justify-in-richtext-editor Hey guys.

I have an Umbraco 7.10.3 website. In the Grid Layout, in a Richtext Editor, I get a javascript error when I try to align the content (left, center, right or justify).

Is this a known bug? How can I fix it? The possibility to manually center content is a requirement for this website.

Javascript error:

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
at HTMLDocument.document.createElement (<anonymous>:348:18)
at Object._ [as create] (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at a (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at Object.xv [as applyFormat] (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at toggle (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at Object.toggle (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at d (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at Mm.execCommand (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
at YC.execCommand (tinymce.min.js?umb__rnd=402a3f7dde65ccb5db6fbb1935eb6129:2)
]]>
K.Garrein Mon, 23 Apr 2018 15:21:12 +00:00
sessionState in Azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/91714-sessionstate-in-azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/91714-sessionstate-in-azure Not sure it is Umbraco related, but I cannot find solution elsewhere.

We're using asp.net Session object to store some data, we would like to expend the timeout from the default 20 minutes. Usually I would use the system.web.sessionState timeout on the web.config, but this doesn't seem to work since we're hosting our Umbraco on Azure.

Did not find any simple solution for extending the session state timeout on Azure, any idea anyone ?

Thanks

]]>
Ran Chen Mon, 23 Apr 2018 15:17:42 +00:00
Recaptcha - Invalid domain for site key https://our.umbraco.org/forum/umbraco-forms/91713-recaptcha-invalid-domain-for-site-key https://our.umbraco.org/forum/umbraco-forms/91713-recaptcha-invalid-domain-for-site-key I'm trying to get rid of the the "Invalid domain for site key" message in reCAPTCHA 2 from a form. I've tried the following:

  • Added the site key inside <umbracocontour> as a <setting key="RecaptchaPublicKey" value="myKey" in App_Plugins/UmbracoForms/UmbracoForms.config.
  • Added the site key inside <appSettings> as a add key="RecaptchaSiteKey" value="myKey" in Web.config.
  • I've cleared the site cache in Chrome (the browser I'm using).

I know the key is correct because if I add the recaptcha field to the page like this it works fine: <div class="g-recaptcha" data-sitekey="myKey"></div> but it is not a viable solution as it lands outside the form and is not checked before submitting.

The recaptcha field I'm using was added using the form builder in the backoffice.

Any ideas on how to solve this?

Cheers

]]>
Daniel Mon, 23 Apr 2018 15:13:01 +00:00
moment.defineLocale is not a function https://our.umbraco.org/forum/using-umbraco-and-getting-started/91712-momentdefinelocale-is-not-a-function https://our.umbraco.org/forum/using-umbraco-and-getting-started/91712-momentdefinelocale-is-not-a-function Hello,

I've just upgraded a CMS from 7.5.13 to 7.10.3. I've now noticed in the console log a javascript error:-

Uncaught TypeError: moment.defineLocale is not a function

var en_gb = moment.defineLocale('en-gb', {

I can't seem to get rid of it.

Has anyone seen this error before and if so did you manage to fix it?

Thanks

Paul

]]>
Paul de Quant Mon, 23 Apr 2018 14:05:00 +00:00
Set multinode treepicker value programmatically in Umbraco 7.10 https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91711-set-multinode-treepicker-value-programmatically-in-umbraco-710 https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/91711-set-multinode-treepicker-value-programmatically-in-umbraco-710 How do I set the value for a multinode treepicker in c#. I found the post from 2015: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/71722-setvalue-in-multi-node-tree-picker but it doesn't seem to work. Here is my code:

                var doc = contentServices.GetById(item.Id);
                doc.SetValue("schedule", page.Id+",7190");
                contentServices.SaveAndPublishWithStatus(doc);
                umbraco.library.RefreshContent();
                var asd = doc.GetValue("schedule");

I get 'doc' properly and when I check the value of 'asd' with a breakpoint, it is as I set it with 'SetValue', but when i finish the process and look at my backoffice, multinode treepicker is still empty.

]]>
Remi Martel Mon, 23 Apr 2018 14:04:55 +00:00
Panel headline shows incorrect version number https://our.umbraco.org/projects/website-utilities/seo-checker/bugs/91710-panel-headline-shows-incorrect-version-number https://our.umbraco.org/projects/website-utilities/seo-checker/bugs/91710-panel-headline-shows-incorrect-version-number I've upgraded SEO Checker from version 1.10.1 to 1.10.4 using NuGet. The upgrade process worked fine, but the panel headline in the Umbraco back-office still shows the old version number:

enter image description here

Is there any way I can fix this?

]]>
Arjan H. Mon, 23 Apr 2018 13:51:23 +00:00
Error when saving "Color Picker" https://our.umbraco.org/forum/using-umbraco-and-getting-started/91709-error-when-saving-color-picker https://our.umbraco.org/forum/using-umbraco-and-getting-started/91709-error-when-saving-color-picker Fresh installation (7.10)

http://{url}/umbraco/backoffice/UmbracoApi/DataType/PostSave

{"Message":"The request is invalid.","ModelState":{"Properties.items.item0":["The value #2bac3a is not a valid hex color"],"Properties.items.item1":["The value #212d22 is not a valid hex color"]}}

Anyone with the same problem?

Thx

]]>
Olivier Casteleyn Mon, 23 Apr 2018 12:41:53 +00:00
Nested content https://our.umbraco.org/forum/using-umbraco-and-getting-started/91708-nested-content https://our.umbraco.org/forum/using-umbraco-and-getting-started/91708-nested-content Hello,

I am using nested content and it works fine when I use the below :

var items = Model.GetPropertyValue<IEnumerable<IPublishedContent>>("myPropertyAlias");

foreach(var item in items)
{
    // Render your content, e.g. item.GetPropertyValue<string>("heading")
}

However when I try to get the values of a child node as below :

  foreach(var cat in CurrentPage.Children.Where("Visible"))
        {
            var items = cat.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("director");
            foreach(var item in items)
                {

                    <h3>@item.GetPropertyValue("test")</h3>

                }
        }

I get nothing from "cat"

Can someone please help me with the right syntax ? Please help me find what I am doing wrong.

Thanks,

Kusum

]]>
k Mon, 23 Apr 2018 11:51:33 +00:00
Svg spritesheet file/format https://our.umbraco.org/projects/backoffice-extensions/svg-icon-picker/support/91707-svg-spritesheet-fileformat https://our.umbraco.org/projects/backoffice-extensions/svg-icon-picker/support/91707-svg-spritesheet-fileformat Hi,

I have a problem that svg spritesheet is not showing in property dialog. For test I created svg spritesheet from icomoon (icon- prefix). I can open spritesheet normaly in browser. Also path to svg is correrct. Spritesheet is like this:

<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="32" viewBox="0 0 96 32">
<svg id="icon-c" width="32" height="32" viewBox="0 0 32 32" x="0" y="0">
<path d="M5 14l1-13 24 29-22-6z"></path>
</svg>
<svg id="icon-b" width="32" height="32" viewBox="0 0 32 32" x="32" y="0">
<path d="M5 14l22-7-6 12-13 5z"></path>
</svg>
<svg id="icon-a" width="32" height="32" viewBox="0 0 32 32" x="64" y="0">
<path d="M8 7h19v17h-19z"></path>
</svg>
</svg>

Any hint?

/Asembli

]]>
Asembli Mon, 23 Apr 2018 10:57:37 +00:00
Some codes is not working in latest version of UmbracoCms https://our.umbraco.org/forum/using-umbraco-and-getting-started/91702-some-codes-is-not-working-in-latest-version-of-umbracocms https://our.umbraco.org/forum/using-umbraco-and-getting-started/91702-some-codes-is-not-working-in-latest-version-of-umbracocms Hi

I upgrade my UmbracoCms from 7.5.6 to 7.10.3 and after upgrading, some of my codes is not working anymore. like for example below:

var stories = Model.Content.GetPropertyValue<string>("stories").TypedContentList();
var root = UmbracoExtensions.GetRootNode();
var footerNames = new List<string>();
var footerNodes = new List<IPublishedContent>();
   if (root != null)
   {
            footerNames = root.GetPropertyValue<string>("footerColumnNames").NodeSpliter();
            footerNames = root.GetPropertyValue<string>("footerColumnNames").ToSafeString().Split(',');

    }

Any ideas about this? Help me please.

Regards,

Jin

]]>
Jin Botol Mon, 23 Apr 2018 06:46:12 +00:00
Upgrade to Umbraco 7.7.0+ returns error Invalid object name 'umbracoUser2UserGroup'. https://our.umbraco.org/forum/using-umbraco-and-getting-started/91701-upgrade-to-umbraco-700plus-returns-error-invalid-object-name-umbracouser2usergroup https://our.umbraco.org/forum/using-umbraco-and-getting-started/91701-upgrade-to-umbraco-700plus-returns-error-invalid-object-name-umbracouser2usergroup Attempting to upgrade Umbraco from version 7.2.1. Upgrading the database separately from the code:

  1. Create empty ASP.NET Web Application (.NET Framework)
  2. Add NuGet package for version 7.3.0
  3. Add connection string.
  4. Run the upgrade.

Rinse and repeat the above steps for additional upgrades. However, unable to get past version 7.7.0 - the highest I could get was version 7.6.13 because of error Invalid object name 'umbracoUser2UserGroup' in the UmbracoTraceLog.

Because I'm using a clean web site for my database upgrade, I am confident the issue is not due to third-party add-ons or the like.

I have a solution which I will post in a reply. Adding this forum post in the hopes it will help others, as I see multiple similar unresolved tickets.

]]>
Kevin Thomas Mon, 23 Apr 2018 05:58:38 +00:00
Need advise on getting content https://our.umbraco.org/forum/using-umbraco-and-getting-started/91687-need-advise-on-getting-content https://our.umbraco.org/forum/using-umbraco-and-getting-started/91687-need-advise-on-getting-content Currently I have my web project and in same solution wrote controller which is using Umbracohelper and Typecontent to get content .

But I want to isolate above as Umbraco Web just for managing the the content and another webapi project to get content.

Is there any way I can call UmbracoHelper.TypedContent from my webapi project Please advise me.

]]>
vijaya shivgand Fri, 20 Apr 2018 17:19:05 +00:00
Blog function of standard template https://our.umbraco.org/forum/templates-partial-views-and-macros/91681-blog-function-of-standard-template https://our.umbraco.org/forum/templates-partial-views-and-macros/91681-blog-function-of-standard-template Hey guys,

I would like to use the blog function of the standard template in my template. And although I use the exact same code, it does not work in my template.

I always get this error message: "Compiler Error Message: CS1061: 'Umbraco.Web.PublishedContentModels.Blog' does not contain a definition for 'howManyPostsShouldBeShown' and no extension method 'howManyPostsShouldBeShown' accepting a first argument of type 'Umbraco.Web.PublishedContentModels.Blog' could be found (are you missing a using directive or an assembly reference?)"

The code is:

@Umbraco.RenderMacro("latestBlogposts",
Line 13:                      new
Line 14:                      {
Line 15:                          numberOfPosts = Model.Content.howManyPostsShouldBeShown,
Line 16:                          startNodeId = Model.Content.Id
Line 17:                      })

Unfortunately I'm lost at this point.

Does anyone havean idea? Thanks a lot! Simeon

]]>
Simeon Ostberg Fri, 20 Apr 2018 10:27:45 +00:00
Archetype - unable to get the fieldset property values https://our.umbraco.org/forum/using-umbraco-and-getting-started/91675-archetype-unable-to-get-the-fieldset-property-values https://our.umbraco.org/forum/using-umbraco-and-getting-started/91675-archetype-unable-to-get-the-fieldset-property-values Umbraco Version: 7.10.1 Archetype Version: 1.18.0

    public ActionResult RenderGallerySection()
    {
        List<GalleryItem> model = new List<GalleryItem>();
        IPublishedContent homePage = CurrentPage.AncestorOrSelf(1).DescendantsOrSelf().Where(x => x.DocumentTypeAlias == "home").FirstOrDefault();
        ArchetypeModel GalleryItems = homePage.GetPropertyValue<ArchetypeModel>("galleryItems"); 

        foreach (ArchetypeFieldsetModel fieldset in GalleryItems)
        {
            string imageCategory1 = fieldset.GetValue("name").ToString();

            //Get the URL of the Image
            var imageIdsmall = fieldset.GetValue<IPublishedContent>("shortImage");
            var mediaItemSmall = Umbraco.Media(imageIdsmall);
            string smallImgUrl = mediaItemSmall.Url;

This line of code returns null: var imageIdsmall = fieldset.GetValue

However when I add a watch to "fieldset" i can see the image URL

Please help

]]>
praveen Fri, 20 Apr 2018 07:27:24 +00:00
dynamic drop down menu https://our.umbraco.org/forum/using-umbraco-and-getting-started/91595-dynamic-drop-down-menu https://our.umbraco.org/forum/using-umbraco-and-getting-started/91595-dynamic-drop-down-menu Hello all,

I'm setup a dynamic navigation menu. Single items work fine however I'm just wondering if someone can point me in the direction of how I can setup dynamic drop down items within the nav?

Here is my code which I used for the dynamic nav bar.

@inherits Umbraco.Web.Macros.PartialViewMacroPage
@{ 
    var homePage = Umbraco.TypedContentAtRoot().FirstOrDefault();
    var menuPages = homePage.Children().Where(f=>f.IsVisible());
    var isHomePage = homePage.Id == Model.Content.Id;
 }
  <div data-collapse="medium" data-animation="default" data-duration="400" class="navbar w-nav">
        <div class="nav-container w-container">
            <nav role="navigation" class="nav-menu w-nav-menu">


                <a href="@homePage.Url" class="@(isHomePage ? "active" : string.Empty) nav-link w-nav-link">@homePage.Name</a>



    @foreach (var item in menuPages)
    {
        //set active class if current page is in this section
        var activeClass = !isHomePage && Model.Content.Path.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Contains(item.Id.ToString()) ? "active" : string.Empty;



                        <a href="@item.Url" class="@activeClass nav-link w-nav-link">@item.Name</a>



    }
    </nav>
<div class="menu-button w-nav-button">
<div class="mobile-icon w-icon-nav-menu"></div>
    </div>
    </div>
</div>

What I'm trying to achieve is the following format;

  • Nav Item
  • Nav Item
  • Nav Item
    • Sub Nav Item
    • Sub Nav Item
  • Nav Item

    ect ect

]]>
Matt Mon, 16 Apr 2018 10:22:56 +00:00
"Server Error in '/' Application. An item with the same key has already been added" on Image after upgrade to 7.10.0 https://our.umbraco.org/forum/using-umbraco-and-getting-started/91437-server-error-in-application-an-item-with-the-same-key-has-already-been-added-on-image-after-upgrade-to-7100 https://our.umbraco.org/forum/using-umbraco-and-getting-started/91437-server-error-in-application-an-item-with-the-same-key-has-already-been-added-on-image-after-upgrade-to-7100 Hi all,

I've just upgraded from Umbraco 7.9.3 to 7.10.0

Now, when I run the project, I get the error below. I've seen this error appear lots on the forum, and it seems to point to a duplicate alias in the doc types, but I've checked, and I don't have any.

Oddly, I only get the error on first load - when I Continue and then refresh the page, I don't get the error. I can then navigate around the site and back to the original page with no errors.

You'll see in the code below that there's a commented out line where I tried just .Url instead of GetCropUrl, but I still got the same error.

I also tried deleting the image from the back-end, and assigning a new image, but I still got the same error.

Any ideas would be appreciated.

Server Error in '/' Application.
An item with the same key has already been added.
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.ArgumentException: An item with the same key has already been added.

Source Error: 


Line 25:         {
Line 26:             var image = item.GetPropertyValue<IPublishedContent>("image");
Line 27:             var responsiveImage = image.GetCropUrl("Hotspot portrait");
Line 28:             //var responsiveImage = image.Url;
Line 29:             <a href="@Umbraco.NiceUrl(item.GetPropertyValue<int>("linkURL"))" class="hotspot-item">

Source File: c:\Users\paul\source\repos\PaulMcGSite\PaulMcGSite\Views\Home.cshtml    Line: 27 

Stack Trace: 


[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +183
   Umbraco.Core.Services.IdkMap.Populate(IEnumerable`1 pairs, UmbracoObjectTypes umbracoObjectType) +319
   Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.EnsureIdkMap(UmbracoContext umbracoContext) +294
   Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Guid nodeKey) +40
   Umbraco.Web.PublishedCache.ContextualPublishedContentCache.GetById(Boolean preview, Guid contentKey) +71
   Umbraco.Web.PublishedContentQuery.TypedContent(Guid id) +158
   Umbraco.Web.PublishedContentQueryExtensions.TypedContent(ITypedPublishedContentQuery contentQuery, Udi id) +96
   Umbraco.Web.PropertyEditors.ValueConverters.ContentPickerPropertyConverter.ConvertSourceToObject(PublishedPropertyType propertyType, Object source, Boolean preview) +260
   Umbraco.Web.Models.DetachedPublishedProperty.<.ctor>b__7_1() +49
   System.Lazy`1.CreateValue() +411
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   Umbraco.Web.Models.DetachedPublishedProperty.get_Value() +9
   Umbraco.Web.PublishedPropertyExtension.GetValue(IPublishedProperty property, Boolean withDefaultValue, T defaultValue) +68
   Umbraco.Web.PublishedContentExtensions.GetPropertyValue(IPublishedContent content, String alias) +30
   ASP._Page_Views_Home_cshtml.Execute() in c:\Users\paul\source\repos\PaulMcGSite\PaulMcGSite\Views\Home.cshtml:27
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +113
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +290
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748665
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0
]]>
Paul McGillivray Wed, 04 Apr 2018 20:22:06 +00:00
Integrating Umbraco members with OpenID connect https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90635-integrating-umbraco-members-with-openid-connect https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90635-integrating-umbraco-members-with-openid-connect Hello everybody,

I'm trying to integrate my umbraco 7.6 with a custom Identity Service based on OpenID connect (OIDC). The goal is to allow the members of the website (not the back end user) to login/change password, etc.

I have no prior experience of OIDC but I've found this package: https://github.com/Shazwazza/UmbracoIdentity and this site: https://vxcompany.com/2017/04/26/login-to-umbraco-backoffice-using-identityserver4. However none of them is doing exactly what I need.

Did anybody have a similar requirement and is keen to share some code/ideas?

Thanks a lot :)

]]>
Annio Sun, 18 Feb 2018 13:46:53 +00:00
MediaSection doesn't delete files physically from server https://our.umbraco.org/forum/using-umbraco-and-getting-started/89996-mediasection-doesnt-delete-files-physically-from-server https://our.umbraco.org/forum/using-umbraco-and-getting-started/89996-mediasection-doesnt-delete-files-physically-from-server If I delete an image from the MediaSection and then deleted it from the Recycle bin, the file still exists on the server. Tested on version 7.6.4 and 7.7.8.

I checked the log for System.IO errors, but there are no errors.

Is this behaviour by design?

I have an Umbraco website with a large amount of photo albums with a total of over 10.000 images which are updated/deleted regularly. Because of this behaviour/bug I have thousands of unused folders in the Media-directory which take up a lot of space and causing storage problems.

]]>
Luc van Soest Wed, 10 Jan 2018 14:59:59 +00:00
Alignment https://our.umbraco.org/forum/using-umbraco-and-getting-started/89110-alignment https://our.umbraco.org/forum/using-umbraco-and-getting-started/89110-alignment Hello Team,

Please help me anyone.

This is my website: http://deo.dk/

In the front page , it is displaying some alignment problem. I tried many times but I can not find it. I attached sample picture. Please you can see in the front page bottom. I want to display three and three rows.

Please help me, it is very urgent.enter image description here

]]>
malar Thu, 09 Nov 2017 08:36:10 +00:00
Using Google Groups with Umbraco members https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/88562-using-google-groups-with-umbraco-members https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/88562-using-google-groups-with-umbraco-members My son's boy scout troop currently has a site built using Google Sites, and I would love to move them over to Umbraco. The first issue is that the vast majority of the site will only be available to authenticated members. The troop already has an active Google Group, and I would love to use membership in that group to determine if a user has access. (I'd also like to still leverage other Google features - calendar, drive, etc, but that's another issue.) Any thoughts on how / where to start?

Thanks!

]]>
Andrew Cullen Sun, 08 Oct 2017 00:42:41 +00:00
Umbraco for Intranet https://our.umbraco.org/forum/using-umbraco-and-getting-started/87683-umbraco-for-intranet https://our.umbraco.org/forum/using-umbraco-and-getting-started/87683-umbraco-for-intranet Has anyone used Umbraco as an Intranet tool? If so, were there any caveats? If it was considered and not used, why?

]]>
DrewMac Wed, 23 Aug 2017 22:00:51 +00:00
How to configure the Document Type's Icon? https://our.umbraco.org/forum/using-umbraco-and-getting-started/82279-how-to-configure-the-document-types-icon https://our.umbraco.org/forum/using-umbraco-and-getting-started/82279-how-to-configure-the-document-types-icon How do you set the icon that would displayed in the content tree when the document is created?

Is there something special I need to do, I cannot seem to locate any material how to do this, but I see lots of cases where this has happened?

]]>
John Bergman Thu, 12 Jan 2017 04:17:24 +00:00
Copying page shows wrong CreatedBy https://our.umbraco.org/forum/using-umbraco-and-getting-started/77063-copying-page-shows-wrong-createdby https://our.umbraco.org/forum/using-umbraco-and-getting-started/77063-copying-page-shows-wrong-createdby When creating a copy of a page the "Created By" of the copy always seems to be the site admin even if the original was not created by this user.

Surely, created by should show the person who created the copy or at the very least the author of the original page?

]]>
Dan Evans Thu, 05 May 2016 12:12:09 +00:00
Custom language file for Package not loaded https://our.umbraco.org/forum/developing-packages/76711-custom-language-file-for-package-not-loaded https://our.umbraco.org/forum/developing-packages/76711-custom-language-file-for-package-not-loaded Hello, I want to create my custom language file for my package.

When I create my custom area and key into /Umbraco/Config/Lang/en.xml file, the localization function properly.

Now I created my custom Lang folder with my custom en.xml file

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<language alias="en" intName="English (UK)" localName="English (UK)" lcid="" culture="en-GB">
    <creator>
        <name>ADRIANO</name>
        <link></link>
    </creator>
    <area alias="sections">
        <key alias="ADRIANO">ADRIANO</key>
    </area>
    <area alias="ADRIANO">
        <key alias="Button">Button</key>
    </area>
</language>

I put my custom Lang folder into my Package folder.

App_Plugin
    |=>ADRIANO
        |=>backoffice
            |=>test

I tried to put the "Lang" folder in

App_Plugin/ADRIANO

and also in

App_Plugin/ADRIANO/backoffice/test/

but the text of my button is always

[ADRIANO_Button]

What's wrong?

]]>
Adriano Fabri Tue, 19 Apr 2016 14:25:48 +00:00
Remove "/archive" from post URLs... https://our.umbraco.org/projects/starter-kits/articulate/discussions/72443-remove-archive-from-post-urls https://our.umbraco.org/projects/starter-kits/articulate/discussions/72443-remove-archive-from-post-urls Hi All

Our client would like to remove "/archive" from blog post URLs...how is this best achieved and why is it like this out of the box?

Cheers Paul

]]>
Paul Brown Mon, 26 Oct 2015 15:42:07 +00:00
Error: ContentTypeService failed to find a content type with alias "ContentPage". https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72423-error-contenttypeservice-failed-to-find-a-content-type-with-alias-contentpage https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72423-error-contenttypeservice-failed-to-find-a-content-type-with-alias-contentpage My client is in the process of finalising content for a site I just built, and is getting this error when making some changes. It seems to resolve itself after a while, but when it's showing a full site publish doesn't resolve it.. i'm not sure what does to be honest.

Any pointers as to the cause of this would be great. The site is on Umbraco 7.2.8 using MVC. Error is:

Server Error in '/' Application.

ContentTypeService failed to find a content type with alias "ContentPage".

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.Exception: ContentTypeService failed to find a content type with alias "ContentPage".

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: ContentTypeService failed to find a content type with alias "ContentPage".] Umbraco.Core.Models.PublishedContent.PublishedContentType.CreatePublishedContentType(PublishedItemType itemType, String alias) +569 Umbraco.Core.Cache.<>cDisplayClass91.<GetCacheItem>b__8() +15 Umbraco.Core.Cache.<>c__DisplayClass1a.<GetCacheItem>b__19(String key) +15 System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +83 Umbraco.Core.Cache.StaticCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem) +98 Umbraco.Core.Cache.CacheProviderExtensions.GetCacheItem(ICacheProvider provider, String cacheKey, Func1 getCacheItem) +180 Umbraco.Core.Models.PublishedContent.PublishedContentType.Get(PublishedItemType itemType, String alias) +252 Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Initialize() +2214 Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.get_SortOrder() +27 System.Linq.EnumerableSorter2.ComputeKeys(TElement[] elements, Int32 count) +147 System.Linq.EnumerableSorter1.Sort(TElement[] elements, Int32 count) +38 System.Linq.<GetEnumerator>d__0.MoveNext() +338 System.Linq.Enumerable.Any(IEnumerable1 source) +109 Cosec.Repository.Umbraco.HomeRepository.GetHomeViewModel() +992 Cosec.Umbraco.Controllers.HomeController.Home(RenderModel model) +156 lambdamethod(Closure , ControllerBase , Object[] ) +127 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +258 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +39 System.Web.Mvc.Async.<>cDisplayClass42.

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248

]]>
Greg Berlin Mon, 26 Oct 2015 02:39:50 +00:00
Passing data to angularjs controller from MenuItem https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/71959-passing-data-to-angularjs-controller-from-menuitem https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/71959-passing-data-to-angularjs-controller-from-menuitem Hello again :)

Is it possible to pass data from a MenuItem to an angularjs controller?

Example:

 MenuItem mi = new MenuItem( "productcategories-edit","New product category" );
 mi.Icon = "icon icon-add";
 mi.AdditionalData.Add( "parent", "0" );            
 menu.Items.Add( mi );

How do I retrieve the "AdditionalData" in the angularjs controller?

Thanks. Kris.

]]>
K.Garrein Wed, 07 Oct 2015 08:02:12 +00:00
Umbraco 7.2.x https://our.umbraco.org/projects/website-utilities/multi-language-tools/multi-language-tools/64941-Umbraco-72x https://our.umbraco.org/projects/website-utilities/multi-language-tools/multi-language-tools/64941-Umbraco-72x So is this not working in 7.2.5 at all?

]]>
Amigo Tue, 19 May 2015 19:20:31 +00:00
troble while installing on server https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type/questions-bugs-issues-feedback/56812-troble-while-installing-on-server https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type/questions-bugs-issues-feedback/56812-troble-while-installing-on-server Request error: The URL returned a 404 (not found): 
/app_plugins/u7dtg/propertiesPrevalues/textbox.html

i am new to umbraco so please bare with me.

I am having a lot for trouble installing this package in Umbraco 7.01 on server. the package is working fine on my local machine but not on server. Firstly, everytime i upload this package i am not able to see new data type. if i manually upload the files in the plugins folder, i am able to see the content grid data type but everytime i add a column the above mentioned error pops up.

Kindly suggest.

]]>
Rajiv Mon, 22 Sep 2014 14:37:45 +00:00
Get actual name of member https://our.umbraco.org/forum/developers/api-questions/55037-Get-actual-name-of-member https://our.umbraco.org/forum/developers/api-questions/55037-Get-actual-name-of-member I'm trying to send an e-mail to a newly created member using the new MemberService in 7.1 but I seem to be unable to find the actual name of the user (like many others it seems) and it doesn't seem like any of the 'similar topics' provides an answer.

Here's what I do. In application startup I add a listener to the created event like so:

MemberService.Created += MemberService_Created;

And in MemberService_Created I have access to the newly created IMember

void MemberService_Created(IMemberService sender, NewEventArgs<IMember> e) {
    try {
        var name = e.Entity.Name; // No it's not!!
        var email = e.Entity.Email;
        var username = e.Entity.Username;
        SomeHelper.SendEmail(name, email, username);
    } catch (Exception ex) {
        LogHelper.Error<ApplicationStartup>("Error sending new member email.", ex);
    }
}

Unfortunately in the code sample above the name variable is just the Username. I've looked at all the properties of the IMember but there is none that contains the value I've entered as the name of the user when creating it in the Umbraco backend.

Am I completely missing something or is there just no easy way to get to the user name from the Created event?

]]>
Robert Mulder Mon, 28 Jul 2014 16:37:03 +00:00
Getting member ID from login name or username https://our.umbraco.org/forum/developers/api-questions/23781-Getting-member-ID-from-login-name-or-username https://our.umbraco.org/forum/developers/api-questions/23781-Getting-member-ID-from-login-name-or-username Hello,

I'm having a problem that seems like it should be easy but it's not.

Using the Umbraco API, I've just created a member. I want to use member ID as a foreign key in some tables for another app I've built. But I'm having a very difficult time getting this value; or more generally, the umbraco.cms.businesslogic.member.Member object.

There are a bunch of deperecated methods like Member.GetMemberFromLoginName() that would probably work, but I don't want to used deprecated things. And I don't want to use login name in case that changes - numerical ID seems better.

It's trivial to get this for the logged-in member via member.getcurrentmember(), but I can't find a way to do it for an arbitrary or not-yet-logged-on member.

There's a good chance I'm missing something obvious here, so all suggestions are welcome.

Using Umbraco 4.5.2 by the way - planning to upgrade soon.

]]>
Andrew Waegel Wed, 07 Sep 2011 00:45:41 +00:00