ActiveTopics https://our.umbraco.org Sat, 27 May 2017 08:14:01 +00:00 umbraco Latests topics from the forum on our.umbraco.org en LeBlender -- Error -- Object reference not set to an instance of an object? https://our.umbraco.org/forum/templates-partial-views-and-macros/85981-leblender-erro-object-reference-not-set-to-an-instance-of-an-object https://our.umbraco.org/forum/templates-partial-views-and-macros/85981-leblender-erro-object-reference-not-set-to-an-instance-of-an-object I've been trying to get LeBlender up and running ... I have the grid editor datatype created for the carousel sample ... I have the partial view (with the same name as the grid editor datatype) stored in views/partials/grid/editors.

I can place the carousel grid content in a row and populate the fields image, title and summary ... but it throws this error when I go to publish it:

Something went wrong with this editor, below is the exception detail:

Object reference not set to an instance of an object.

Unfortunately, there's nothing else to go on ... it actually renders the second line of the error in the layout, but it doesn't include any other details. I've been searching for quite some time now and trying to retrace my steps but I keep ending up with the same error.

Is there anything I'm overlooking here? I'd appreciate any insight or additional references to help overcome this.

]]>
Brett Fullam Fri, 26 May 2017 22:12:42 +00:00
Anyone get NC working on 7.6? https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/85979-anyone-get-nc-working-on-76 https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/85979-anyone-get-nc-working-on-76 Just curious if anyone has gotten this working on the new Umbraco 7.6?

We have over a hundred awesome reusable components we built on top of NC, but we ran into a snag where we get console errors with 7.6 Umbraco and NC 4.0

"Error: offsetParentPosition is undefined $.fn.offsetRelative@http://localhost:50381/AppPlugins/NestedContent/Js/nestedcontent.controllers.js?cdv=619783157:453:17 $scope.openNodeTypePicker/<@http://localhost:50381/AppPlugins/NestedContent/Js/nestedcontent.controllers.js?cdv=619783157:167:30 e/f<@http://localhost:50381/umbraco/lib/angular/1.1.5/angular.min.js?cdv=619783157:108:321 e@http://localhost:50381/umbraco/lib/angular/1.1.5/angular.min.js?cdv=619783157:31:265 Dc/f.defer/c<@http://localhost:50381/umbraco/lib/angular/1.1.5/angular.min.js?cdv=619783157:34:398

This is just a playground to see if we can realistically move to 7.6.

As a company we basically rely on NC - because it's beyond awesome :)

Thanks in advance no rush!

]]>
M N Fri, 26 May 2017 21:46:27 +00:00
Upgrading to Umbraco 7.6.1 https://our.umbraco.org/forum/using-umbraco-and-getting-started/85978-upgrading-to-umbraco-761 https://our.umbraco.org/forum/using-umbraco-and-getting-started/85978-upgrading-to-umbraco-761 I'm trying to upgrade from 7.5.1 to 7.6.1 manually. I've copied over the files and merged the config files. But when I hit the site, it automatically re-installs 7.5.1. What am I missing?

]]>
James Paquette Fri, 26 May 2017 20:00:29 +00:00
Lucene Search on Japanese Text https://our.umbraco.org/forum/using-umbraco-and-getting-started/85977-lucene-search-on-japanese-text https://our.umbraco.org/forum/using-umbraco-and-getting-started/85977-lucene-search-on-japanese-text Hello everyone,

I currently have a site that is using FullTextSearch using the Lucene engine for indexing. So far, it works great in all of my US/UK sites. However, it doesn't seem to be working very well four my Japan site. When I try to search for Japanese text, I am met with zero results, even if the text is on the site. If I remove all of the Japanese characters but one, it will return search results for that one particular character.

I've spent some time Googling this issue to find that it seems like it is a fault with Lucene and that it just can't handle Japanese characters and all other Lucene engines are still in Java.

Has anyone been able to find a workaround for this issue or know of a way to make it work out of the box?

Thanks!

]]>
Jeff Fri, 26 May 2017 19:21:47 +00:00
Local package doesn't respect hierarchy for templates https://our.umbraco.org/forum/developing-packages/85976-local-package-doesnt-respect-hierarchy-for-templates https://our.umbraco.org/forum/developing-packages/85976-local-package-doesnt-respect-hierarchy-for-templates Hi,

I am trying to create a package with some of the most common templates we've had to use in some of our projects. But for some reason, after the installation, the templates don't have the right "Master Template" assigned.

Is there anything I can do? If I update the template, and select the Master Template by hand it works, but I don't want to go through all of them. I tried looking for Package Actions, but the page is returning a 404 error. https://our.umbraco.org/wiki/reference/packaging/package-actions

This is the result after the package install

I also found this post, but it doesn't have an answer either: https://our.umbraco.org/forum/developing-packages/85382-created-package-doesnt-set-the-master-template

Thank you!!

]]>
Adriana Cerqueiro Fri, 26 May 2017 17:49:49 +00:00
How do I show the document type label in the grid? https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/85975-how-do-i-show-the-document-type-label-in-the-grid https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/85975-how-do-i-show-the-document-type-label-in-the-grid When adding content to the grid using the DTGE, I want the name of my document type to appear on the grid instead of just 'DocType' for everything.

Is this not a current feature or am I just missing something?

]]>
Matthew Kirschner Fri, 26 May 2017 17:48:39 +00:00
Umbraco cloud and guid vs nodeid also how to redirect to page with guid https://our.umbraco.org/forum/using-umbraco-and-getting-started/85973-umbraco-cloud-and-guid-vs-nodeid-also-how-to-redirect-to-page-with-guid https://our.umbraco.org/forum/using-umbraco-and-getting-started/85973-umbraco-cloud-and-guid-vs-nodeid-also-how-to-redirect-to-page-with-guid Hi,

So we deployed our umbraco website to cloud and moved all the data there using Umbraco Deploy just to find out that nodeIds are being changed when transfered. That causes some pain for us. We managed to search for content by calling UmbracoHelper.TypedContend(Guid) but we need to do something similar with redirects as our current code

RedirectToUmbracoPage(1334)

stopped working, because ids are different. As I can see the guids are the same on both ends.

So my question is - is there a way to redirect to umbraco page via Guid. If not what's the best solution for that?

Thanks Maciej

]]>
Maciej Rakowski Fri, 26 May 2017 16:08:25 +00:00
Leverage Content forms outside of the CMS back office (for members) https://our.umbraco.org/forum/templates-partial-views-and-macros/85972-leverage-content-forms-outside-of-the-cms-back-office-for-members https://our.umbraco.org/forum/templates-partial-views-and-macros/85972-leverage-content-forms-outside-of-the-cms-back-office-for-members Hi

I'm surprised Google has very little on this, but, how would you go about creating ad-hoc content creation forms that can be presented to members in web forms, but outside the back office cms?

We want our members to post articles to the cms which will be proof-read and then published by cms Users.

Obviously I could go through the process of reinventing the wheel and creating my own cms forms to post back to surface controllers which leverage the content service, but whats the point of that? I just want to surface lovely umbraco forms inside by own site template.

Anyone done this? Looks to be quite a common requirement.

Thank you.

]]>
Alastair Todd Fri, 26 May 2017 15:03:35 +00:00
Custom route https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85971-custom-route https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85971-custom-route Hi Umbarco Team Trying to create a custom route to make use of a custom controller and Action method.

I have created the following class :

public class StartMeUp : ApplicationEventHandler
{
    protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
        RouteTable.Routes.MapRoute(
            "test",
            "{controller}/{action}",
            new
            {
                controller = "MyController",
                action = "MyAction"
            });
    }
} 

But i still get no route in route table ? Am i going about this the wrong way ?

thanks Dibs

]]>
Dibs Fri, 26 May 2017 14:43:27 +00:00
Can you create a page that saves as .xml file extension? https://our.umbraco.org/forum/templates-partial-views-and-macros/85970-can-you-create-a-page-that-saves-as-xml-file-extension https://our.umbraco.org/forum/templates-partial-views-and-macros/85970-can-you-create-a-page-that-saves-as-xml-file-extension Hi,

I want to create an xml sitemap.

I can write the xml structure by creating a template to do this, but can a .xml file be saved?

Thanks!

]]>
Damon Fri, 26 May 2017 12:39:55 +00:00
Members: Show on profile, Member can edit? https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85969-members-show-on-profile-member-can-edit https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85969-members-show-on-profile-member-can-edit https://our.umbraco.org/documentation/Getting-Started/Data/Members/ enter image description here

What are this options used for?

I've now sucseeded Creating member, and also Read properties for this inlogged members into a partial view (with use of TextBoxFor, DropDownListFor and TextAreaFor), and will now continue to develop this frontend pages with Update and Delete action for surfacecontrollers (not finished), and I've done it so fare without settings option for Show on profile, Member can edit.

Is it necessary to set these option if i want members to update their custom member properties in frontend pages?

]]>
Tom Engan Fri, 26 May 2017 09:30:35 +00:00
Contact form not directing to a thank you message or page https://our.umbraco.org/projects/starter-kits/umazel-starter-kit-responsive-bootstrap-theme/umazel-starter-kit-general-discussion/85968-contact-form-not-directing-to-a-thank-you-message-or-page https://our.umbraco.org/projects/starter-kits/umazel-starter-kit-responsive-bootstrap-theme/umazel-starter-kit-general-discussion/85968-contact-form-not-directing-to-a-thank-you-message-or-page Thanks for this great starter kit. I have an issue which might be down to my lack of knowledge with Umbraco. I have the contact form working and sending emails, however on success, the page just shows a "Success: true" console message, with no HTML at all.

EDIT: I can see the dictionary items that I am guessing should display, and I can see the placeholders in the partial view. However for me, the page just directs to this URL: /umbraco/Surface/ContactSurface/Submit and doesnt contain any HTML.

Many thanks for any help in advance Tom

]]>
Tom Fri, 26 May 2017 09:11:26 +00:00
Security issue question https://our.umbraco.org/forum/using-umbraco-and-getting-started/85967-security-issue-question https://our.umbraco.org/forum/using-umbraco-and-getting-started/85967-security-issue-question Does anyone know if the issues raised in this post from 2014 are still relevant for Umbraco 7?

https://umbraco.com/blog/security-issues-found-in-umbraco-4-6-and-7/

If there are any core team reading this, would you be able to update it to clarify whether any action is required for the newer versions of Umbraco.

Thanks in advance, H5YR!

]]>
mike.masey@yoyodesign.com Fri, 26 May 2017 08:31:47 +00:00
Create Multiple Image Cropper https://our.umbraco.org/forum/using-umbraco-and-getting-started/85966-create-multiple-image-cropper https://our.umbraco.org/forum/using-umbraco-and-getting-started/85966-create-multiple-image-cropper Hi,

How can I clean this in my back office. I have 10x of Image Gallery but the same in alias. enter image description here Is is possible to make it only one and upload 10 of image gallery using image cropper datatypes?

I'm new in Umbraco developer, hope someone will guide on this bug :)

Regards,

Jin

]]>
Jin Botol Fri, 26 May 2017 05:58:09 +00:00
How to insert Multiple Javascript Codes into a page/article https://our.umbraco.org/forum/templates-partial-views-and-macros/85965-how-to-insert-multiple-javascript-codes-into-a-pagearticle https://our.umbraco.org/forum/templates-partial-views-and-macros/85965-how-to-insert-multiple-javascript-codes-into-a-pagearticle Is it possible to get clever with macros to insert javascript codes

Umbraco Version: 7.5.2

Challenge: My content writers need to insert various "javascript codes" into their articles/posts/pages they produce. Each Article could contain different 1 - 3 different javascript codes each time from different products they are promoting.

What is the easiest method to have the team insert this code? I was trying to do it via the macro insert in the RTE.

Was wondering if it is possible by the Macro Insert that the team can paste their code and submit.

Want to avoid creating a new macro for each different javascript code we use.

Cheers James

Hoping someone might be able to advise best course do this.

]]>
James Hayward Fri, 26 May 2017 04:44:38 +00:00
Create a new Dashboard item in Umbraco backoffice via Dashboard.config and applications.config https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85964-create-a-new-dashboard-item-in-umbraco-backoffice-via-dashboardconfig-and-applicationsconfig https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85964-create-a-new-dashboard-item-in-umbraco-backoffice-via-dashboardconfig-and-applicationsconfig I am trying to create a new item on the left hand side in Umbraco backoffice main dashboard via Dashboard.config and applications.config. I don't know why the new item doesn't appear on the dashboard.

enter image description here

I've added

Dashboard.config

  <section alias="StartupXxxDashboardSection">
    <areas>
      <area>xxx</area>
    </areas>
    <tab caption="xxx">
      <control>
        /umbraco/backoffice/xxx/abc
      </control>
    </tab>   
  </section>

applications.config

<?xml version="1.0" encoding="utf-8"?>
<applications>
  <add alias="content" name="Content" icon="traycontent" sortOrder="0" />
  <add alias="media" name="Media" icon="traymedia" sortOrder="1" />
  <add alias="settings" name="Settings" icon="traysettings" sortOrder="2" />
  <add alias="developer" name="Developer" icon="traydeveloper" sortOrder="3" />
  <add alias="users" name="Users" icon="trayuser" sortOrder="4" />
  <add alias="member" name="Members" icon="traymember" sortOrder="5" />
  <add alias="forms" name="Forms" icon="icon-umb-contour" sortOrder="6" />
  <add alias="translation" name="Translation" icon="traytranslation" sortOrder="7" />
  <add alias="xxx" name="Xxx" icon="traymedia" sortOrder="8" />
</applications>

Added the following in area alias="sections" in en.xml

<key alias="xxx">Xxx</key>

Is there anything missing that prevents the new XXX item appear on the Dashboard?

]]>
Dominic Tse Thu, 25 May 2017 23:08:52 +00:00
Can not save modifications to XSLT in version 7.6 https://our.umbraco.org/forum/templates-partial-views-and-macros/85963-can-not-save-modifications-to-xslt-in-version-76 https://our.umbraco.org/forum/templates-partial-views-and-macros/85963-can-not-save-modifications-to-xslt-in-version-76 I can create an initial XSLT file, but I can not save any modification. If I look in the Javascript console, I see this error:

DependencyHandler.axd?s=L3VtYnJhY28vbGliL0NvZGVNaXJyb3IvbGliL2NvZGVtaXJyb3IuanM7L3VtYnJhY28vbGliL0N:1212 Uncaught TypeError: Cannot read property 'is' of undefined
    at _class.doSubmit (DependencyHandler.axd?s=L3VtYnJhY28vbGliL0NvZGVNaXJyb3IvbGliL2NvZGVtaXJyb3IuanM7L3VtYnJhY28vbGliL0N:1212)
    at HTMLAnchorElement.<anonymous> (DependencyHandler.axd?s=L3VtYnJhY28vbGliL0NvZGVNaXJyb3IvbGliL2NvZGVtaXJyb3IuanM7L3VtYnJhY28vbGliL0N:1211)
    at HTMLAnchorElement.dispatch (DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L3VpL2pxdWVyeS5qczsvdW1icmFjb19jbGllbnQvdWkvanF1ZXJ5dWk:1)
    at HTMLAnchorElement.r.handle (DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L3VpL2pxdWVyeS5qczsvdW1icmFjb19jbGllbnQvdWkvanF1ZXJ5dWk:1)
]]>
Andrew Wilcox Thu, 25 May 2017 19:55:26 +00:00
Using Public Access with U 7.6 https://our.umbraco.org/forum/using-umbraco-and-getting-started/85962-using-public-access-with-u-76 https://our.umbraco.org/forum/using-umbraco-and-getting-started/85962-using-public-access-with-u-76 We have built an integration with U7.6 and Active Directory so that when you visit a page you are added to the members table automatically. That works although it was difficult to get to.

Now we want to use public access to limit access to pages on the site.

I created a member group called private. I added three of our users including myself in the BO UI. That worked. I checked in the database and all three of us are members of the group in the cmsMember2Member table. I checked in the cmsMember table and we are there with our information as we should be.

I right clicked on one of the pages in the Content section and set it to require membership in a the selfsame group to which we are members.

My expectation is that when a user goes to the site they are logged in automatically as a member and if the try to access a protect page which is controlled by a group membership to which they have access, they can see the content of the page without any other action. If they are not in the group that has access to the page, they get redirected to the login page.

When we go to the page, we are kicked out to the login page which is really just an error message as we want to control access exclusively on the back end with no opportunity for the user to enter credentials.

What are we doing wrong?

]]>
Matt Brown Thu, 25 May 2017 17:47:10 +00:00
CSS edits won't pass through https://our.umbraco.org/projects/website-utilities/twitter-for-umbraco/help/85961-css-edits-wont-pass-through https://our.umbraco.org/projects/website-utilities/twitter-for-umbraco/help/85961-css-edits-wont-pass-through Hey All, I'm editing VERY simple things like color in fanoe... and they won't show up in the live environment? Truly the line has been edited and saved within Umbraco's backend.. but the live site is still referring to the previous CSS... Am I missing something? I've saved.. published.. etc.

]]>
Matthew Jadwisiak Thu, 25 May 2017 15:14:16 +00:00
Umbraco on Azure slow to start https://our.umbraco.org/forum/using-umbraco-and-getting-started/85960-umbraco-on-azure-slow-to-start https://our.umbraco.org/forum/using-umbraco-and-getting-started/85960-umbraco-on-azure-slow-to-start I have a large Umbraco site running as an Azure Web App (not Umbraco Cloud). However some operations seem ridiculously slow, particularly restarting the site or rebuilding the content cache. Is there anything I can do to speed it up, or do I just need to throw more resources at it? Web app is tier S2 and the database is also S2.

]]>
Andrew Watt Thu, 25 May 2017 15:10:22 +00:00
Archetype -- CSS styles not working inside RTE even though the CSS style was included in the RTE? https://our.umbraco.org/forum/templates-partial-views-and-macros/85958-archetype-css-styles-not-working-inside-rte-even-though-the-css-style-was-included-in-the-rte https://our.umbraco.org/forum/templates-partial-views-and-macros/85958-archetype-css-styles-not-working-inside-rte-even-though-the-css-style-was-included-in-the-rte Hey guys ...

I've been looking for a solution for the last few days and finally found a reference that helped me strip out the HTML tags the RTE was rendering (paragraph and span tags) ... but I still can't get the CSS style available in the RTE to render properly?

Here's what I used to strip the tags out ... worked perfectly:

@Html.Raw(Model.GetValue<string>("text"))  <-- the example

<div>@Html.Raw(@fieldset.GetValue<string>("hIntro"))</div>  <-- the example applied

I can see and apply the style in the RTE in the back office, but it doesn't render properly. I also added the path to the css stylesheet for the custom data type in the "custom style/script options" if that helps.

Oh ... one more detail here ... this is from an archetype on another page that's being rendered via a Partial View. Other RTE's in Archetypes that are not referenced from another page render the css styles available in the styles dropdown correctly.

Any ideas as to why the style isn't being rendered in the referenced archetype ... ? I can provide more code-details if needed.

Thanks in advance for any help-insight you can offer.

]]>
Brett Fullam Thu, 25 May 2017 14:22:06 +00:00
New blog/post/MOTD notification icon next to title? https://our.umbraco.org/forum/using-umbraco-and-getting-started/85957-new-blogpostmotd-notification-icon-next-to-title https://our.umbraco.org/forum/using-umbraco-and-getting-started/85957-new-blogpostmotd-notification-icon-next-to-title Hi peeps!

First post here - hoping someone can help.

I'm currently using 7.5.3 as an intranet for a local gov. I have a blog-type set up for a Message of the Day and everything is working great.

But... I want to be able to apply a 'New Post' icon on the latest message titles that runs for 24 hours then turns to a standard icon.

I'm currently using a Font Awesome icon next to the post title in the list, and I'm pretty much asking if there's a way to make one icon show for 24 hours and then a different icon show forever after?

any help would be much appreciated.

thanks

Ben

]]>
Ben Evans Thu, 25 May 2017 14:14:42 +00:00
How to uplevel an existing site https://our.umbraco.org/forum/using-umbraco-and-getting-started/85956-how-to-uplevel-an-existing-site https://our.umbraco.org/forum/using-umbraco-and-getting-started/85956-how-to-uplevel-an-existing-site Hi Team - I am a new user tasked with managing a 7.4.3 website which is fairly complex. I now realise that one of the things we want (time ordering of a list view) is currently broken. I therefore want to migrate the website to the latest 7.6.1 All the migration tips and hints seem to be suggesting that you manage the DB and then "zip up" the whole content and ftp it. I dont see how this achieves what I want because it will presumably overwrite the new umbraco magic with the backlevel versions? So how do I capture the stuff we have created that is independent of the code base - presumably a common question? I am already very nervous of this upgrade bearing in mind the list of bugs and caveats so I want to throughly test 7.6.1 on a webmatrix installation (away from production). But I cannot see where to start! Any help gratefully received please. regards, Paul

]]>
Paul Claridge Thu, 25 May 2017 13:21:55 +00:00
Umbraco GetCropUrl is empty https://our.umbraco.org/forum/using-umbraco-and-getting-started/85955-umbraco-getcropurl-is-empty https://our.umbraco.org/forum/using-umbraco-and-getting-started/85955-umbraco-getcropurl-is-empty Hi,

I am using the image cropper in the Image MediaType. The majority of the images are coming through but there are a handful where they are not. I have tried a variety of different code examples (see below) but to no avail.

This is the code I am using: Get all Images from a folder in Media section:

 var folder = Umbraco.TypedMediaAtRoot().DescendantsOrSelf("Folder").Where(x => x.Id == CurrentPage.officerImages).FirstOrDefault();
                        var images = folder.Children(x => x.DocumentTypeAlias == "Image").RandomOrder();

Then I loop the Images to display them online. I have included all the test examples that some work and others dont.

if (folder != null)
            {
                <div class="officers">
                    @foreach (var img in images)
                    {
                        if (img.ContentType.Alias == "Image")
                        {


                            var m = Umbraco.TypedMedia(img.Id); //works for ALL images
                            var cropUrl = m.GetCropUrl("umbracoFile", "NPT profile pic"); //DOES NOT WORK FOR ALL IMAGES
                            <div class="item" style="width:100px;">
                                <div class="hide">@img.GetPropertyValue("umbracoFile")</div>//works for ALL images
                                <img src="@cropUrl" alt="@img.GetPropertyValue("imgTitle")" class="img-responsive" /><br /><strong>@img.GetPropertyValue("imgTitle")</strong>//DOES NOT WORK FOR ALL IMAGES
                                @*<img src="@img.GetPropertyValue("umbracoFile")" alt="@img.GetPropertyValue("imgTitle")" class="img-responsive" /><br /><strong>@img.GetPropertyValue("imgTitle")</strong>*@//works for ALL images
                            </div>
                        }
                    }
                </div>
            }

Is this a bug or am I doing this wrong?

Thanks Jon

]]>
Jonathan Roberts Thu, 25 May 2017 13:00:09 +00:00
Google Analytics working properly? https://our.umbraco.org/forum/templates-partial-views-and-macros/85953-google-analytics-working-properly https://our.umbraco.org/forum/templates-partial-views-and-macros/85953-google-analytics-working-properly My site has been built by a developer who I'm no longer able to get in touch with :-S I have my analytics script in my header, but I'm not convinced it's working properly given the results i'm seeing in my analytics account. Can someone offer reassurance or advice? www.wyjs.org.uk

]]>
Erin Herbert Thu, 25 May 2017 11:26:44 +00:00
How to create a page in the frontend umbraco? https://our.umbraco.org/forum/using-umbraco-and-getting-started/85952-how-to-create-a-page-in-the-frontend-umbraco https://our.umbraco.org/forum/using-umbraco-and-getting-started/85952-how-to-create-a-page-in-the-frontend-umbraco I want to create a clone of this page

my website users should be able to input title description [html editor] tag1,tag2,tag3,tag4 and create page the page should be created like URL: domain.com/user/tag1-tag2-tag3-tag4 Title HTML Content Comments Footer

i know this can be custom developed but i want to know whether should this be done only through umbraco forms or it can be done otherways?

*Im new to Umbraco

]]>
david Thu, 25 May 2017 10:29:11 +00:00
Problem with UmbracoHelper.TypedMedia under Umbraco 7.6 https://our.umbraco.org/forum/templates-partial-views-and-macros/85948-problem-with-umbracohelpertypedmedia-under-umbraco-76 https://our.umbraco.org/forum/templates-partial-views-and-macros/85948-problem-with-umbracohelpertypedmedia-under-umbraco-76 Hi,

I have an IIS cached model that uses list of content items including an image id. This model is correctly populated with the media id under 7.6 to use the new udi format.

var image = umbracoHelper.TypedMedia(Model.Items[i].ImageUrl);

So Model.Items[i].ImageUrl contains a string in the format of "umb://media/f0853da8502642afa39deaa7094c828a" as expected. However, TypedMedia throws the following exception:

Value cannot be null. Parameter name: mediaItem

Any ideas would be much appreciated.

Thanks

Simon

]]>
Simon Thu, 25 May 2017 09:26:35 +00:00
How to get Merchello to read updates to products in a load balanced environment https://our.umbraco.org/forum/using-umbraco-and-getting-started/85912-how-to-get-merchello-to-read-updates-to-products-in-a-load-balanced-environment https://our.umbraco.org/forum/using-umbraco-and-getting-started/85912-how-to-get-merchello-to-read-updates-to-products-in-a-load-balanced-environment Hi all.

I have my website running on two machines (A and B) and both are using the same database which resides on third machine (C). My problem is that when I update a product from the store in the back office of A, it does not update on B.

I checked the front-end on B and it still shows the old product data. Surprisingly, if I open the back office on B, it shows the old value too! (Merchello back office is caching data?)

I tried rebuilding the Merchello indexes on B, but to no avail. However, if I restart IIS on B then it will finally show the up-to-date product.

I know that Merchello does not support load balancing 100% but the basket and purchasing seems to work. Also, I know that the best practice is to use only one Back Office machine separate from the front end web servers - we do in production. I am just trying to find a way to get both front end servers up-to-date when I update product information in the back office.

What I am hoping to do is put some listener on the front end web servers that can perform some "magic" to get the product show up-to-date info. I thought that clearing caches and rebuilding indexes would do the trick, but I have not had any luck.

Thanks! Paul Dermody.

]]>
Paul Dermody Tue, 23 May 2017 16:35:05 +00:00
MVC Custom Macros for editors https://our.umbraco.org/forum/templates-partial-views-and-macros/85910-mvc-custom-macros-for-editors https://our.umbraco.org/forum/templates-partial-views-and-macros/85910-mvc-custom-macros-for-editors I want to be able to create custom macros for editors outside of Umbraco. I was able to do this previously with WebForms.

I found a way to do this, and it works , but I am wondering if the following is a good idea, or if there is a better way of doing this.

  1. Create an MVC project
  2. Remove reference to System.Web.Mvc.dll
  3. Add references to [Umbraco Project Folder]\bin

    • \interfaces.dll
    • \System.Web.Mvc.dll
    • \umbraco.dll
  4. Create controllers

    • reference the Area name for the Plugins folder
    • inherit from Umbraco.Web.Mvc.SurfaceController
    • return partial views (these need to be saved in Views/Shared)
    • Sample MVC Controller using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Umbraco.Web.Mvc; namespace Test_MVC_Macros.Controllers { [PluginController("MyMacroControls")] public class SampleController : Umbraco.Web.Mvc.SurfaceController { // // GET: /Sample/ public ActionResult Index() { return PartialView("SampleView"); } } }
  5. Add the following to the web.config file

    <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> </dependentAssembly> </assemblyBinding> </runtime>

  6. Build MVC site as normal

  7. Put project DLL file in live Umbraco bin folder
  8. put Views folder in [livesite]/App_Pluggins/MyMacroControls
    • Don't copy the Views web.config file over to the livesite (this gave me some trouble and the live site seemed to correct it and place it's own web.config file there once I removed the copied version)

To use this as a macro in a page:

  1. Create a new Partial View Macro
  2. Add the following line:
    • @Html.Action("Index", "Sample", new { area = "MyMacroControls" })

So it would look like this:

@inherits Umbraco.Web.Macros.PartialViewMacroPage @Html.Action("Index","Sample", new { area = "MyMacroControls" })

]]>
Ben Tue, 23 May 2017 15:31:07 +00:00
Umbraco no responding after application pool recycle. https://our.umbraco.org/forum/using-umbraco-and-getting-started/85890-umbraco-no-responding-after-application-pool-recycle https://our.umbraco.org/forum/using-umbraco-and-getting-started/85890-umbraco-no-responding-after-application-pool-recycle We're running a single Umbraco site on a dedicated server. It's been running perfectly well but when the application pool recycled at 16:00 on Friday the site didn't come back up until IIS was reset. The application pool recycle was the 29 hour interval recycle set in the application pool advanced settings.

I scheduled the pool to recycle in the early hours of this morning and again Umbraco failed. IIS was running, the application pool was started but requests to the Umbraco site timed out.

Windows Server 2012 R2 - fully patched. Umbraco 7.5.3

On Friday the trace logs showed: Date Fri, 19 May 2017, 16:48:31 Level ERROR Logger Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory Process 7144 Thread 11 App Domain 2 Message Failed to build models. System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Monitor.Enter(Object obj)

Date Fri, 19 May 2017, 16:48:31 Level WARN Logger Umbraco.ModelsBuilder.Umbraco.PureLiveModelFactory Process 7144 Thread 11 App Domain 2 Message Running without models.

Date Fri, 19 May 2017, 16:48:31 Level ERROR Logger Umbraco.Core.UmbracoApplicationBase Process 7144 Thread 8 App Domain 2 Message An unhandled exception occurred System.Web.HttpParseException (0x80004005): Key cannot be null. Parameter name: key ---> System.ArgumentNullException: Key cannot be null. Parameter name: key at System.Collections.Specialized.ListDictionary.set_Item(Object key, Object value)

The failure this morning showed the same errors plus the following: Date Tue, 23 May 2017, 03:00:26 Level ERROR Logger UmbracoExamine.DataServices.UmbracoLogService Process 4260 Thread 16 App Domain 2 Message Provider=ExternalIndexer, NodeId=-1 System.Exception: Cannot index queue items, the index is currently locked,, IndexSet: ExternalIndexSet

Any help would be greatly appreciated as I'm puzzled why this has suddenly started happening.

]]>
Simon Nash Tue, 23 May 2017 09:37:13 +00:00
Migrate Media library from a server to another server https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85889-migrate-media-library-from-a-server-to-another-server https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85889-migrate-media-library-from-a-server-to-another-server Hello,

I'm trying to migrate the media library from a development site to a production site but I don't know how. I tried to copy the media folder from the dev site to the prod site. The files appear on the file browser but not on Umbraco.

Does anyone have ideas?

]]>
Laureline Tue, 23 May 2017 09:18:15 +00:00
Design Question ( *Service classes) https://our.umbraco.org/projects/collaboration/dialogue/general/85885-design-question-starservice-classes https://our.umbraco.org/projects/collaboration/dialogue/general/85885-design-question-starservice-classes I always like to learn from other developer's code; in looking through the Dialogue source, I see there are several "service" classes like Memberservice, TopicService, etc. I am curious what the benefit is for not having them as static classes? They all appear to be stateless, and their methods also appear to be pretty threadsafe.

]]>
John Bergman Tue, 23 May 2017 04:57:22 +00:00
LeBlender and Partial view https://our.umbraco.org/forum/templates-partial-views-and-macros/85877-leblender-and-partial-view https://our.umbraco.org/forum/templates-partial-views-and-macros/85877-leblender-and-partial-view Hi

I'm trying to create a partial view for a grid editor that has a image(link) , title, text box and Link on it , I am having issues creating the view for the URL picker , not sure how I can reference the data type in the partial view . The image (media picker ) works . Please can you advise

Thanks Rozelle

]]>
Rozelle Elson Mon, 22 May 2017 14:21:41 +00:00
Map won't display on my Text pages https://our.umbraco.org/forum/using-umbraco-and-getting-started/85830-map-wont-display-on-my-text-pages https://our.umbraco.org/forum/using-umbraco-and-getting-started/85830-map-wont-display-on-my-text-pages Hi all!

I'm just starting with Umbraco, but I've played around with it enough to be dangerous. I've got a question.. I can load a google map in all of my pages.. but it only displays on the HOME page...

I use Terratype and have allowed it on all document types.

On the Umbraco backend content editor.. I can add a map into both Text document types and Home docutment types.. and the map shows up in the editing interface.. but when I look at the actual website.. it won't display on my text page? I'm assuming this has to be CSS issue?? Home Page Editor

Home Page Live

Text Page Editor

Text Page Live

]]>
Matthew Jadwisiak Thu, 18 May 2017 17:08:47 +00:00
How to add anchor links to dynamic navigation? https://our.umbraco.org/forum/using-umbraco-and-getting-started/85729-how-to-add-anchor-links-to-dynamic-navigation https://our.umbraco.org/forum/using-umbraco-and-getting-started/85729-how-to-add-anchor-links-to-dynamic-navigation Can anyone recommend a solution to add achor links into a dynamically created navigation?

I have the dynamic navigation all worked out ... so no issues there ... what I can't figure out is how to include an anchor tag (dynamically) to call the same page content.

For example:

Page --> Bicycle

Specific Content Section on "Bicycle" page --> "Bike Path Information"

How can I create a link to this internal content without duplicating content in the node tree ...? I just can't seem to wrap my head around this. If I add another doc type/child page ... it creates duplicate content in the back office. Is there a way to add the anchor tag "option" for nav items as a custom datatype?

The page is dynamically built using a partial view for the dynamic nav, and uses Parent and child doc types for page content. The navigation is dynamically built by reading the parent-child relationships in the node tree.

Any help or additional references would be greatly appreciated.

]]>
Brett Fullam Mon, 15 May 2017 14:02:34 +00:00
DependencyHandler Error when debug=false https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85709-dependencyhandler-error-when-debug-false https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/85709-dependencyhandler-error-when-debug-false Hi, everyone,

I upgraded from 7.5.13 to 7.6.1 and now, if I run my page in debug=false mode, my custom section throws an error, says that the controller is not found and an error in the DependencyHandler occured.

If I set debug=true, everything works.

I did some investigation on the web, the error seems not to be very new, but all the suggested solutions did not work for me.

  1. cleared the cache folders (I really killed and deleted all of them)
  2. adding my Domain to the bundleDomains in the ClientDependency.config
  3. Increasing the Version Number in CD
  4. Increasing the length of a request in the web.config
  5. Winmerge web.config of 7.6.1 with my custom one
  6. ClientDependency.config referred right in web.config
  7. System.Web.Http Assemby is reffered in web.config
  8. Up-to-Date binding-redirect of MVC

So I'm running out of ideas. Any suggestions from the community?

Cheers,

Tom

]]>
Thomas Beckert Sun, 14 May 2017 21:04:47 +00:00
Umbraco 7.6 - Backoffice New Colors https://our.umbraco.org/forum/using-umbraco-and-getting-started/85493-umbraco-76-backoffice-new-colors https://our.umbraco.org/forum/using-umbraco-and-getting-started/85493-umbraco-76-backoffice-new-colors Hey all,

Is there a quick way to revert back to the old coloring scheme in the new backoffice?

Purple and Teal isn't going over so well with our clients.

]]>
M N Wed, 03 May 2017 18:29:50 +00:00
Portfolio item not working https://our.umbraco.org/projects/starter-kits/umazel-starter-kit-responsive-bootstrap-theme/umazel-starter-kit-general-discussion/85484-portfolio-item-not-working https://our.umbraco.org/projects/starter-kits/umazel-starter-kit-responsive-bootstrap-theme/umazel-starter-kit-general-discussion/85484-portfolio-item-not-working Hello everyone,

I just discovered a strange problem with the portfolio item:

I have two language trees (German and English). When I add a portfolio section on any page (no matter which tree), the page loads up normally. As soon as I add a portfolio item on the page, different things happen:

  • On the German tree it takes unusually long to save the item (the system including the front end kind of hangs), but then the item is visible on the page and working.
  • On the English tree the item is saved regularly, but when I open the page, it displays an error message and the page doesn't load regularly.

Is there any place, where I can look to solve this?

Thanks a lot, Simeon

]]>
Simeon Ostberg Wed, 03 May 2017 15:24:00 +00:00
This document is published but its url would collide with content (error) https://our.umbraco.org/projects/website-utilities/virtualnodes/general-discussion/85064-this-document-is-published-but-its-url-would-collide-with-content-error https://our.umbraco.org/projects/website-utilities/virtualnodes/general-discussion/85064-this-document-is-published-but-its-url-would-collide-with-content-error Hi,

I get this error written near Link to document: "This document is published but its url would collide with content (error)"

I just installed it on Umbraco version 7.5.12 and added

<add key="virtualnode" value="lessonsBase"/>

to the web.config...

Did I missed anything?

]]>
AvihayBit Thu, 06 Apr 2017 20:42:32 +00:00
Umbraco cloud include hosting? https://our.umbraco.org/forum/using-umbraco-and-getting-started/84983-umbraco-cloud-include-hosting https://our.umbraco.org/forum/using-umbraco-and-getting-started/84983-umbraco-cloud-include-hosting Silly question but does the umbraco cloud product at 400 euros a month include hosting?

]]>
Scott Millar Mon, 03 Apr 2017 15:46:35 +00:00
Listview with empty date column https://our.umbraco.org/forum/using-umbraco-and-getting-started/84678-listview-with-empty-date-column https://our.umbraco.org/forum/using-umbraco-and-getting-started/84678-listview-with-empty-date-column Hi,

I am having some trouble displaying data from a DateTime field in a list view.

Some of the nodes show the date correctly, others don't show it at all.

See the screenshot: http://i.imgur.com/hy9Zs0J.png http://i.imgur.com/FFXnyXJ.png

The weird thing is, the propertycollection on the GetChildren call in the listview, seems to fail with property id's being zero all over.

The Umbraco version is 7.5.9.

I have tried reindexing the InternalIndex, with no luck. This also happens on newly created nodes.

Anyone seen this before?

]]>
Søren Kottal Mon, 20 Mar 2017 10:36:15 +00:00
Random downtime on site hosted in Azure - Access to path App_data/Models/models.err is denied https://our.umbraco.org/forum/using-umbraco-and-getting-started/82326-random-downtime-on-site-hosted-in-azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/82326-random-downtime-on-site-hosted-in-azure Hey all,

Our small marketing based site randomly has outages on azure, usually around 1 a week. Not a heavily used site at all and on a healthy enough Azure App Service place.

The following image is error sent via site 247. Has anyone seen this before?

Access to path App_data/Models/models.err is denied

Many Thanks.

enter image description here

]]>
Stephen Davidson Sat, 14 Jan 2017 12:13:58 +00:00
Unit Test issue https://our.umbraco.org/forum/using-umbraco-and-getting-started/81968-unit-test-issue https://our.umbraco.org/forum/using-umbraco-and-getting-started/81968-unit-test-issue Hi folks,

I'm trying to set up Unit Tests in umbraco, following a guide here: http://bomboca.co.uk/umbraco-cms/unit-testing-umbraco/stub-umbraco-dependencies/

I've set everything up, but when I run my unit test I get the following error:

Result StackTrace:  
at Umbraco.Tests.TestHelpers.BaseDatabaseFactoryTest.Initialize()
at Umbraco.Tests.TestHelpers.BaseWebTest.Initialize() in C:\...\Umbraco.Tests\TestHelpers\BaseWebTest.cs:line 31
Result Message: SetUp : System.MissingMethodException : Method not found: 'Void Umbraco.Core.Persistence.DefaultDatabaseFactory.ResetForTests()'.

Struggling to get to the bottom of the issue. Does anyone have any ideas?

]]>
Fraser Tue, 20 Dec 2016 11:55:11 +00:00
Umbraco memory leak? Umbraco randomly consumes almost all the RAM on Webserver - requires recycling of app pool https://our.umbraco.org/forum/using-umbraco-and-getting-started/81908-umbraco-memory-leak-umbraco-randomly-consumes-almost-all-the-ram-on-webserver-requires-recycling-of-app-pool https://our.umbraco.org/forum/using-umbraco-and-getting-started/81908-umbraco-memory-leak-umbraco-randomly-consumes-almost-all-the-ram-on-webserver-requires-recycling-of-app-pool Hi, I have a site, where it seems to randomly spike up to consume all available RAM on the webserver it runs on.

It stops processing any requests, so the site is down for the users trying to access the site. Any other site being hosted on the same server, is also down, because of this one site spiking.

I have observed it happening at 3.02 in the night, and at 15.01 in the afternoon.

It is running (Umbraco version 7.4.1 assembly: 1.0.5891.23238).

It reminds me of something like a memory leak, but i have no idea as to why this is happening.

It started happening 2-3 weeks ago, and have been happening 2-3 times per week. The SQL Server is not spiking in requests during the spike of the Umbraco site, so i assume its not a big amount of SQL calls its trying to do.

Have anyone experienced anything similar to this? And perhaps have a solution?

There is multiple Umbraco sites running on this webserver, that doesnt do this stunt. The problematic one is the biggest one of them though. But it is only around 100k nodes.

]]>
Daniel Jensen Thu, 15 Dec 2016 14:54:15 +00:00
Creating Cascading DropDownLists with SQL Data https://our.umbraco.org/forum/developing-packages/78871-creating-cascading-dropdownlists https://our.umbraco.org/forum/developing-packages/78871-creating-cascading-dropdownlists I need to cascade three dropdownlists for the backoffice of a real estate application.

The scenario is; - Select City -- Select Town from the populated list of selected City --- Select District from the populated list of selected Town

All the data of city, town, district will be fetched from Sql database.

I seached the projects but i couldn't find a suitable package. Any helps how to realize this scenario will be appreciated.

Thanks in advance...

]]>
Osman Coskun Sun, 24 Jul 2016 12:49:16 +00:00
LinkedIn https://our.umbraco.org/projects/website-utilities/skybrudsocial-for-umbraco-7/general-discussion/76908-linkedin https://our.umbraco.org/projects/website-utilities/skybrudsocial-for-umbraco-7/general-discussion/76908-linkedin Hi Anders,

I can see the linkedin provider although not supported I also read https://github.com/abjerner/Skybrud.Social/issues/29

Would it be possible with current implementation to get blog posts for a given user from linkedIn?

Regards

Ismail

]]>
Ismail Mayat Thu, 28 Apr 2016 08:29:46 +00:00
Obsolete PetaPocoSqlExtensions https://our.umbraco.org/forum/developers/extending-umbraco/73245-obsolete-petapocosqlextensions https://our.umbraco.org/forum/developers/extending-umbraco/73245-obsolete-petapocosqlextensions I have recently upgraded my solution to Umbraco 7.3.1, and some warnings are generated on compilation for methods in PetaPocoSqlExtenions.

Consider the statement below:

var result = Context.Database.Fetch<LoginHistory>(new Sql().Select("*").From<LoginHistory>().Where<LoginHistory>(f => f.CustomerReference == customer));

This results in 'Umbraco.Core.Persistence.PetaPocoSqlExtensions.From(Umbraco.Core.Persistence.Sql)' is obsolete: 'Use the overload specifying ISqlSyntaxProvider instead'.

But when I change the statement above into:

var result = Context.Database.Fetch<LoginHistory>(new Sql().Select("*").From<LoginHistory>(SqlSyntaxContext.SqlSyntaxProvider).Where<LoginHistory>(f => f.CustomerReference == customer));

This results in 'Umbraco.Core.Persistence.SqlSyntax.SqlSyntaxContext' is obsolete: 'This should not be used, the ISqlSyntaxProvider is part of the DatabaseContext or should be injected into your services as a constructor parameter'

I really liked the construction of SQL statements this way. How can I continue using this syntax without relying on these obsolete methods? Googling doesn't give me the updated syntax and looking into the Umbraco codebase, I can't find the updated usages either.

]]>
marcelh Thu, 26 Nov 2015 13:10:02 +00:00
Single quote / apostrophe in search term returns no results https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/70848-single-quote-apostrophe-in-search-term-returns-no-results https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/70848-single-quote-apostrophe-in-search-term-returns-no-results This is possibly a simple issue, but just wanted to check whether it is a known problem - couldn't find anything else on the ezSearch forum about it.

When searching for a term that contains an apostrophe, like: St John's

No results are matched, even though in the site there is a node named "St John's" that also has several fields, like bodyText, containing the same phrase multiple times.

Is there something in the Examine ruleset that prevents single quotes from being indexed, perhaps because it is a reserved character? Does anyone know if there a way to have it included and matched as a valid search term, seeing as, well, it is valid content (additionally, "St Johns" doesn't match and returns zero results).

]]>
Chris Evans Tue, 25 Aug 2015 17:07:18 +00:00
Importing product data feeds with Merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/57818-Importing-product-data-feeds-with-Merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/57818-Importing-product-data-feeds-with-Merchello Hello,

I'm wondering does Merchello support the import of catalog data from sources (like csv files). Say for example a supplier regularly gives a file with latest product info I would like to update based on the new data.

Is it currently possible?

Thanks!

Alan

]]>
Alan Mac Kenna Mon, 03 Nov 2014 13:24:34 +00:00
Removing Context Menu Items https://our.umbraco.org/forum/developers/api-questions/14911-Removing-Context-Menu-Items https://our.umbraco.org/forum/developers/api-questions/14911-Removing-Context-Menu-Items Hi

Is it possible to remove all context menu items and add only those required, rather than explicitly declare all the unnecessary actions ?

private void BaseTree_BeforeNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)
{
if (node.NodeType == "content") // be nice if this returned docType alias
{
if (node.Icon == "comment.png") // quickest way of finding a comment node ! (rather than lookup from node.NodeID)
{
node.Menu.Clear(); // seems to stop node from being rendered
node.Menu.Add(ActionDelete.Instance);

//node.Menu.Remove(ActionNew.Instance);
//..
//..
//..
}
}
}

Also refering to the WIKI page, it seems as if node.NodeType should return the docTypeAlias, but it always seems to return 'content', is this expected ? (have also tried the BaseContentTree.BeforeNodeRender event)

TIA for any suggestions,

Hendy


]]>
Hendy Racher Wed, 24 Nov 2010 12:18:57 +00:00