ActiveTopics https://our.umbraco.org Wed, 29 Jul 2015 00:32:50 +00:00 umbraco Latests topics from the forum on our.umbraco.org en Umbraco 7 Support? https://our.umbraco.org/projects/backoffice-extensions/workflow/developer-forum/69299-umbraco-7-support https://our.umbraco.org/projects/backoffice-extensions/workflow/developer-forum/69299-umbraco-7-support Are there any plans to update to support Umbraco 7?

]]>
Jeff Mah Tue, 28 Jul 2015 19:36:03 +00:00
Multinode Tree Picker showing deleted Item https://our.umbraco.org/forum/developers/api-questions/69298-multinode-tree-picker-showing-deleted-item https://our.umbraco.org/forum/developers/api-questions/69298-multinode-tree-picker-showing-deleted-item I have a multinode tree picker set to a specific folder in my site. One of the items that was selected was sent to the recycle bin remains in the selected items. Is this normal or is it a bug? I can filter out items to only display nondeleted, publish items but in the admin side i feel like it shouldn't show.

Any thoughts on this one?

]]>
mfeola Tue, 28 Jul 2015 18:47:20 +00:00
Multiple Umbraco installations as subdomains https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69297-multiple-umbraco-installations-as-subdomains https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69297-multiple-umbraco-installations-as-subdomains Hello, I'm trying to host multiple Umbraco versions on one server via a hosting company.

Lets say www.site.com is at root level, and this will be my main website. This website is built with Umbraco 6.4 say, as it uses packages only supported up to that version.

For this reason, I want my subdomains to sit completely separate to www.site.com's Umbraco. Eg sub.site.com runs umbraco 7.3 with a brand new package only supported from 7.3 and onwards.

The ftp server structure would be as follows:

Root
  wwwroot (contains www.site.com)
      App_Data(site.com)
      css(site.com)
      etc(site.com)
      subdomainwebsite (www.sub.site.com)
          App_Data(sub.site.com)
          css(sub.site.com...)
          etc(sub.site.com...)
      more files(mysite.com)
      Web.config(mysite.com)

When I tried this setup, my www.site.com ran perfectly fine. My www.sub.site.com yellow screened, and despite changing the Web.config (at both levels) to display error details, the change had no effect.

This leads me to believe that the above structure is not feasible.

Any of you guys found an alternative? I did think about separating each site into a separate folder in wwwroot, but I'm concerned about plumbing these all up afterwards, plus, I don't want any weired routing issues or urls.

Thanks

]]>
Jason Tue, 28 Jul 2015 18:37:31 +00:00
To search by custom properties https://our.umbraco.org/projects/backoffice-extensions/memberlistview-for-umbraco-7/say-hello/69293-to-search-by-custom-properties https://our.umbraco.org/projects/backoffice-extensions/memberlistview-for-umbraco-7/say-hello/69293-to-search-by-custom-properties I have added two custom member properties. I have added these to the memberlistview.html and they display fine. Please can you let me know what should be done to search on these new properties. Now only the filtering works on member name or id.

]]>
Preethi Tue, 28 Jul 2015 16:24:53 +00:00
Unhandle exception - connection attempt failed to IP 93.90.118.244:80 https://our.umbraco.org/forum/umbraco-pro/contour/69290-unhandle-exception-connection-attempt-failed-to-ip-939011824480 https://our.umbraco.org/forum/umbraco-pro/contour/69290-unhandle-exception-connection-attempt-failed-to-ip-939011824480 When in IE, and sometimes in Chrome, we receive an unhandled exception with the error message that a connection to ip 93.90.118.244:80 failed. This happens when we try to view entries already in the database.

This is not our IP, nor do we know who it is.

]]>
Support Tue, 28 Jul 2015 16:08:09 +00:00
Chicago training https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69289-chicago-training https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69289-chicago-training I am thinking of going to Chicago training for 4 days but may have to leave early. I have to fly back to catch another flight out early the next morning.

  1. Is the training worth going to? I'm new to Umbraco and heard the training is essentials because of poor documentation. The one video I watched went really slow, I'm not sure I can stand to watch many more, too much of a waste of time. What do you think?

  2. What hours is training in Chicago. I am especially worried about the 4th day.

  3. If I have to leave early can I take that day again for free?

Thanks, Pam

]]>
Pam Pierce Tue, 28 Jul 2015 15:44:59 +00:00
MultiNodeTreePicker Siblings XPath https://our.umbraco.org/forum/developers/xslt/69288-multinodetreepicker-siblings-xpath https://our.umbraco.org/forum/developers/xslt/69288-multinodetreepicker-siblings-xpath I'm using v7.2.8 and I want to have a new data type to choose direct siblings of a content item. I'm using the MultiNodeTreePicker and I'm trying multiple combinations of XPath to achieve this but nothing seems to work.

Has anyone managed to achieve this using the new placeholder values such as $parent and $current?

]]>
Chris Tue, 28 Jul 2015 15:44:13 +00:00
Deleting content with Courier https://our.umbraco.org/forum/umbraco-pro/courier/69287-deleting-content-with-courier https://our.umbraco.org/forum/umbraco-pro/courier/69287-deleting-content-with-courier I've been using courier not for the past couple of days and have just noticed that when we delete content on the internal server, the changes don't get deployed to the live server.

After checking on our it looks like this is a common situation and a work around of unpublishing seems to be the approach.

What I'd like to be able to do is delete the item and then deploy the recycle bin. This way it would automatically group deleted items into one area on the live site which I could manually delete in the future?

Does anyone have any other recommendations or workarounds for this situation?

]]>
Craig Cronin Tue, 28 Jul 2015 15:31:51 +00:00
Imagecropper on property in document type in a partial razor view https://our.umbraco.org/forum/developers/razor/69280-imagecropper-on-property-in-document-type-in-a-partial-razor-view https://our.umbraco.org/forum/developers/razor/69280-imagecropper-on-property-in-document-type-in-a-partial-razor-view Hi I want to use the cropper for the images.

I've got the cropper set up with a cropsize called bannerstyle.

in my content i've created a documenttype 'articleitem' which has a property for the image called CopperImage. This is of the type image cropper.

Now i've created a grid content picker which alowes me to selectet multiple nodes in the content tree.

when i iterate through the selected nodes while rendering i need to get the croppedimage url.

so in my razor view I can access the folowing objects;

the selected item which must be rendered; CurrentNode {umbraco.NodeFactory.Node} umbraco.NodeFactory.Node

the property of the croppedimage: CurrentNode.Properties["copperImage"];

this provides me with the json....

but i can't get a object which has the GetCropUrl function.

in the documentation:

but this doesn't work...

kind regards

frans

]]>
Frans van Ek Tue, 28 Jul 2015 14:28:33 +00:00
Absolute beginner! https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69279-absolute-beginner https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69279-absolute-beginner Hi

I have installed Umbraco CMS. We plan to use it for our new hospital website. All working fine, thanks.

I have downloaded and installed the U7 grid data type, and I have created a new data type and selected Content grid and added some columns.

What do I do now???

How do I add the content grid to a page so I can see it in the front end?

Many thanks

]]>
Robert Shimield Tue, 28 Jul 2015 14:22:44 +00:00
Style guides? https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/69278-style-guides https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/69278-style-guides Hi guys,

I'm developing a package for Umbraco 7 and I want to style it so it matches the rest of the look in the Umbraco backoffice.

Do you know if anyone have made a guide for that, or do I have to resort to my mad Google Webdev Inspector skills? :D

(btw. I really love the look of the new Our!)

All the best,

Simon

]]>
Simon Justesen Tue, 28 Jul 2015 14:22:39 +00:00
question on how to use dialogService.open https://our.umbraco.org/forum/developers/api-questions/69277-question-on-how-to-use-dialogserviceopen https://our.umbraco.org/forum/developers/api-questions/69277-question-on-how-to-use-dialogserviceopen Greetings:

I'm attempting to use dialogService.open to open a custom dialog and then access the information submitted by the user. The problem I'm seeing is that the data variable returned to the callback function isn't getting any data.

Here is the function being called in my controller:

angular.module("umbraco").controller("Com.Bisk.CustomController", function ($scope, $timeout, dialogService) {
        $scope.setImage = function(imageUrl){
        dialogService.open({
            showDetails: true,
            template: '../App_Plugins/MyPlugin/mycustomdialog.html', 
            show: true, 
            callback: function (data) {
                $scope.control.value = {
                    // data coming back as 'undefined'
                    altText: data.altText
                    };
                }
            });
        };
    }

Here is my view:

<form ng-controller="Com.Bisk.CustomController">
      <umb-pane>
          <umb-control-group label="Alt Text">
              <input type="text"
                     class="umb-editor umb-textstring"
                     ng-model="target.altText" />
          </umb-control-group>
      </umb-pane>
  </form>
]]>
John Alphonso Yarlott Tue, 28 Jul 2015 13:18:55 +00:00
Database keeps reverting (or not saving). Help? https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69276-database-keeps-reverting-or-not-saving-help https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69276-database-keeps-reverting-or-not-saving-help Hi, I have an infuriating problem with a new Umbraco 7 site I am building, I hope someone can provide some advice.

I created an entire site on friday, all was working well on my machine when suddenly at 17:30, everything I had added or changed through the CMS was gone from the content panel and everything was back as it was originally when I installed the software (the faroe starter kit).

I started over this morning, completing the website for a second time by 12:56. Again, everything has disappeared without warning and the CMS side of the site has reverted back to as it was at 9:37.

The audit trails in the content panel show no changes since 9:37 on any of the files. What is really bizarre this time is that some of the pages are still there if I search from my code. For example, I had a Home page with 4 children at 12:56, now the CMS shows the Home page with one child as it was at 9:37, but if I run:

foreach (var childPage in Umbraco.Content(1096).Children.Where("Visible"))
{
    @childPage.Name
}

I have the names of the 4 children returned, none of which are shown on the content panel.

Similarly, some of the content I added since 9:37 is still visible on the site, rendered correctly on the page and some of it is not. None of it is visible in the CMS panel.

After my disaster on friday, I have made about 20 backups of the /App_Data/Umbraco.sdf file today as I worked through. Now I look at these backups, they are all identical, with a modification time of 9:37.

The Log in /App_Data/Logs/UmbracoTraceLog shows the last published time at 12:56

2015-07-28 12:56:05,851 [57] INFO Umbraco.Core.Publishing.PublishingStrategy - [P5060/T56/D7] Content 'Home' with Id '1096' has been published.

Can anyone give me some help here. I am not relishing starting over for a third time if it will fail again.

I am using Visual Studio Ultimate 2013 and Umbraco version 7.2.8 assembly: 1.0.5675.23466 installed into an empty project via nuget.

]]>
Paul Tue, 28 Jul 2015 13:17:48 +00:00
Custom DataType into ContentService https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69275-custom-datatype-into-contentservice https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69275-custom-datatype-into-contentservice I have the following code

XPathNodeIterator iterator2 = umbraco.library.GetPreValues(1075);
            iterator2.MoveNext(); //move to first
            XPathNodeIterator preValues2 = iterator2.Current.SelectChildren("preValue", "");
            while (preValues2.MoveNext())
            {
                string preValue2 = preValues2.Current.Value;
                int preValueId2 = preValues2.CurrentPosition;

                ListeOfTeamNumbers.Add(new SelectListItem
                {
                    Text = preValue2,
                    Value = preValue2
                });
                modal.ListeOfTeamNumbers = ListeOfTeamNumbers;

which will grab the datatype i have and send the values to a dropdownlist. This Works perfectly, but then when i want to grab the value and add it inside my ContentService.CreateContent like this

var nytHold = Services.ContentService.CreateContent(modal.SelectedYear + " - " + modal.SelectedTeamNumber.ToString(), 1161, "Hold");
            nytHold.SetValue("argang", modal.SelectedYear);
            nytHold.SetValue("holdnummer", modal.SelectedTeamNumber);
            nytHold.SetValue("holdetsTilknyttedeTraenere", modal.ListOfSelectedClubs);
            nytHold.SetValue("holdetsKlub", modal.ListOfSelectedTrainers);
            Services.ContentService.SaveAndPublishWithStatus(nytHold);
            TempData["formStatus"] = "Holdet blev oprettet";
            return RedirectToCurrentUmbracoPage();
]]>
Casper Andersen Tue, 28 Jul 2015 13:14:09 +00:00
Thanks! https://our.umbraco.org/projects/backoffice-extensions/media-editor/suggestions-bugs/69274-thanks https://our.umbraco.org/projects/backoffice-extensions/media-editor/suggestions-bugs/69274-thanks Thank you for sharing this package. Having gone through the ordeal of updating media items with upload, I really appreciate the approach you have taken. This should be really in the core.

]]>
keilo Tue, 28 Jul 2015 13:10:50 +00:00
DynamicPublishedContentList does not contain a definition for 'Any' https://our.umbraco.org/forum/getting-started/installing-umbraco/69273-dynamicpublishedcontentlist-does-not-contain-a-definition-for-any https://our.umbraco.org/forum/getting-started/installing-umbraco/69273-dynamicpublishedcontentlist-does-not-contain-a-definition-for-any Why is this error.

Clean install; mvc4 startup project in VS 2013.

install umbraco (nuget)

install MVC 5 (nuget)

fails on:

home.Children.Any() in a razor.

managed to get it working with...

var helper = home.Children as DynamicPublishedContentList; } @if (helper.Any())

why is this and how can it be solved?

kind regards,

]]>
Frans van Ek Tue, 28 Jul 2015 12:42:35 +00:00
Change "Name"(?) property of page https://our.umbraco.org/forum/developers/api-questions/69272-change-name-property-of-page https://our.umbraco.org/forum/developers/api-questions/69272-change-name-property-of-page Hi!

How do you change the "Name" property via SetValue("propertyAlias", value). You know on the top of the page, the part the also changes the url?

I've tried SetValue("name", value) and also SetValue("Name", value) but nothing works.

Any ideas?

]]>
Daniel Nordenström Tue, 28 Jul 2015 12:09:08 +00:00
Check if page has field and if it has then check if its not empty https://our.umbraco.org/forum/templating/templates-and-document-types/69271-check-if-page-has-field-and-if-it-has-then-check-if-its-not-empty https://our.umbraco.org/forum/templating/templates-and-document-types/69271-check-if-page-has-field-and-if-it-has-then-check-if-its-not-empty Hi!.. :)

I'm currently doing some work on an Umbraco 4 installation, where i only have access to the "Settings" section.

What i want to do is very simple but i just don't know how since it's Umbraco 4 and i'm not that good at Umbraco 4 xD

But i would like it to check if the page has field, and if it has then it should check that its not empty.

In Umbraco 7 i think i would do something like this

@if(CurrentPage.HasProperty("TestProperty"))
{
    if(CurrentPage.GetProperty("TestProperty"))
    {
        something awesome code
    }
}

Can you guys help me? :)

It's v4.9.0 :)

]]>
Anders Brohus Tue, 28 Jul 2015 11:46:47 +00:00
Add Optimizely code to grid editor https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69270-add-optimizely-code-to-grid-editor https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69270-add-optimizely-code-to-grid-editor Please can anyone share there experiences with Optimisely in Umbraco Grideditor.

Would it work with the Grid editor or do we need to add it to a plain page?

Many thanks

]]>
DanielLeeUK Tue, 28 Jul 2015 11:35:33 +00:00
manually update Umbraco Forms? https://our.umbraco.org/forum/umbraco-pro/contour/69269-manually-update-umbraco-forms https://our.umbraco.org/forum/umbraco-pro/contour/69269-manually-update-umbraco-forms Hey,

I wanted to update my umbraco.forms version to the latest and checked the documentation for a guide and found this page:

https://our.umbraco.org/documentation/Products/UmbracoForms/Installation/Upgrade

But there is only a method to upgrade forms through a "update"-Button in the backoffice. The button won't appear in both my umbraco installations which use umbraco.forms.

Both umbraco versions are Umbraco version 7.2.8 (assembly: 1.0.5675.23466) and umbraco.forms version UmbracoForms.Package.4.0.3-WIP.Build.31.

If I deinstall the package and reinstall the newest version my current existing forms will also be deleted, so is there a way I can keep my existing forms and install the newest version?

]]>
Chris Tue, 28 Jul 2015 11:00:31 +00:00
Upgrade from 7.2.4 to 7.2.8 https://our.umbraco.org/forum/developers/razor/69266-upgrade-from-724-to-728 https://our.umbraco.org/forum/developers/razor/69266-upgrade-from-724-to-728 Could you please tell me the steps to upgrade my project from 7.2.4 to 7.2.8?.

]]>
Deepa Tue, 28 Jul 2015 10:39:20 +00:00
Umbraco CMS wont load at all. Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) https://our.umbraco.org/forum/ourumb-dev-forum/bugs/69265-umbraco-cms-wont-load-at-all-umbraco-v616-assembly-version-10502124867 https://our.umbraco.org/forum/ourumb-dev-forum/bugs/69265-umbraco-cms-wont-load-at-all-umbraco-v616-assembly-version-10502124867 Umbraco v6.1.6

I recently migrated a website and when I attempt to log into the umbraco back office I am stuck on the loading icon, I have left it for quite some time and there is no change.

Error Screen

Console log errors out this :

Umbraco.Controls.HistoryManager is not a constructor

Uncaught TypeError: undefined is not a function

DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L0FwcGxpY2F0aW9uL05hbWVzcGFjZU1hbmFnZXIuanM7L3VtYnJhY29:44

The line of code it refers to is :

Umbraco.Sys.registerNamespace("Umbraco.Application");(function($){Umbraco.Application.ClientManager=function(){return{_isDirty:false,_isDebug:false,_mainTree:null,_appActions:null,_historyMgr:null,_rootPath:"/umbraco",_modal:new Array(),historyManager:function(){if(!this._historyMgr){this._historyMgr=new Umbraco.Controls.HistoryManager();}

Would greatly appreciate any ideas as to why this might be,

Many Thanks,

Marc

]]>
Marc Tue, 28 Jul 2015 10:38:50 +00:00
Drag & drop problem - moving elements in edit mode https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69264-drag-drop-problem-moving-elements-in-edit-mode https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69264-drag-drop-problem-moving-elements-in-edit-mode Hey I'm new to Umbraco, so maybe this is just a browser thing that has to be corrected.

When I try to move any item using drag & drop on a page i face the problem that I'm not able to "release" the object in the new location.

I've tried both Chrome and Firefox but same result. Only way to get out of this situation is to reload the page

in the example I'm trying to move a video and when i try to insert it, it just start playing.

Problem moving elements

---update-- I've maybe just found a solution but it still looks a little strange If I move the cursor to the left of the contentbox I'm able to release them object. See image below Possible solution

]]>
Birger Højrup Tue, 28 Jul 2015 10:31:30 +00:00
Custom tree readded to config on restart https://our.umbraco.org/forum/developers/extending-umbraco/69263-custom-tree-readded-to-config-on-restart https://our.umbraco.org/forum/developers/extending-umbraco/69263-custom-tree-readded-to-config-on-restart I'm writing a series of custom trees for a custom section, which is all working fine. Issue is that each time the application restarts, the trees are re-registered in trees.config.

Is there a best-practice approach to regos ting the new trees to ensure they are only added once?

]]>
Nathan Woulfe Tue, 28 Jul 2015 10:19:37 +00:00
Get names of top level items in content https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69262-get-names-of-top-level-items-in-content https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69262-get-names-of-top-level-items-in-content Hi

I want a dropdown menu that displays the name of all top level items in content as options. I have tried

@{
            List<SelectListItem> languages= new List<SelectListItem>();
            //foreach (var language in Model.Content.Siblings())
            foreach (var language in CurrentPage.AncestorOrSelf(1).Siblings())
            {
                languages.Add(new SelectListItem
                    {
                        Text = language.Name,
                        Value = language.Url
                    });
            }           
            @Html.DropDownList("LanguageSelect",new SelectList(languages,"Value","Text"), htmlAttributes: new { id = "LanguageSelect" });
}

which obviously doesn't work unless the user is standing at top level. Although out of all options I have looked at here this one is the only one I have gotten to give me something.

This example pulled from Umbraco.tv

@foreach (var language in CurrentPage.AncestorOrSelf(1).Siblings())
{
   languages.Add(new SelectListItem
                    {
                        Text = language.Name,
                        Value = language.Url
                    });
}

doesn't give me anything. No options in the dropdown at all.

Help would be much appreciated. Thanks!

]]>
Marcus Tue, 28 Jul 2015 10:14:43 +00:00
Umbraco with Salesforce https://our.umbraco.org/forum/developers/api-questions/69260-umbraco-with-salesforce https://our.umbraco.org/forum/developers/api-questions/69260-umbraco-with-salesforce Hi,

How can I display text of a page in salesforce that's created and published in umbraco 7?

Thanks.

]]>
Manasa Tue, 28 Jul 2015 10:09:23 +00:00
Deleting event not firing https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69257-deleting-event-not-firing https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69257-deleting-event-not-firing Using umbraco v7.2.4 I have wired up

        ContentService.UnPublishing += ContentService_UnPublishing;
        ContentService.Deleting += ContentService_Deleting;
        ContentService.Moving += ContentService_Moving;

The moving and deleting events do not fire. Ideally I just want to tap into deleting event and cancel the delete on certain conditions however deleting never fires nor does moving unpublishing works no problem.

Anyone seen this before?

Regards

Ismail

]]>
Ismail Mayat Tue, 28 Jul 2015 09:07:38 +00:00
How to display the content of website by mobile? https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69253-how-to-display-the-content-of-website-by-mobile https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69253-how-to-display-the-content-of-website-by-mobile My website is good for PC but not mobile. In don't understand why it is. Please help me Thank you very much for any help.

my website: http://tttt.haugiang.gov.vn

]]>
Tan Tue, 28 Jul 2015 08:37:45 +00:00
Search specifically by Document Type / s and other keywords https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/69252-search-specifically-by-document-type-s-and-other-keywords https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/69252-search-specifically-by-document-type-s-and-other-keywords Hi Guys,

Hope you well guys.

I am facing a problem how I am going to implement a search functionality which is quite not the general one, with just keywords only, but only searching for specific nodes. To understand me well, I am attaching a screenshot of what I am trying to achive, through ez-Search. enter image description here

I know that I have to edit ezSearch.cshtml macro partial view; I am thinking that I need to change the value for * RootContentNodeId* but since I have two filtering... the supplier and the country. Basically, Each country will have different supplies underneath. So I think that the RootContentNodeId will be the node Id of the country that the user select from the dropdown, but I don't how I can also restrict to antother supplier node to search into only.

Appreciate any help and thank you in advance.

Cheers.

Kind Regards.

]]>
Simon Tue, 28 Jul 2015 08:32:01 +00:00
Problem with Multiple Media Picker inside Vorto and value converter https://our.umbraco.org/projects/developer-tools/umbraco-core-property-value-converters/feedback/69249-problem-with-multiple-media-picker-inside-vorto-and-value-converter https://our.umbraco.org/projects/developer-tools/umbraco-core-property-value-converters/feedback/69249-problem-with-multiple-media-picker-inside-vorto-and-value-converter Hello Leopold, I tried to get the values out of a Vorto of Mutiple Media Picker by using

IEnumerable<IPublishedContent> mediaList  = Model.Content.GetVortoValue<IEnumerable<IPublishedContent>>("imagesPicker");

but the conversion seems to fail (returns null);

The only way I've found to get out my values was the old way,

int[] mediaIdList = Model.Content.GetVortoValue<int[]>("imagesPicker");

and then using Umbraco.Media;

Do you have any clues about it? Thanks!

]]>
Alessandro Calzavara Tue, 28 Jul 2015 08:23:19 +00:00
How do I get published AND unpublished children of a page https://our.umbraco.org/forum/developers/api-questions/69185-how-do-i-get-published-and-unpublished-children-of-a-page https://our.umbraco.org/forum/developers/api-questions/69185-how-do-i-get-published-and-unpublished-children-of-a-page In a surface controller, I need to get ALL the children of a particular page. The code I've got is:

    IPublishedContent blogParentPage = Umbraco.TypedContent(blogParentPageId);
    IEnumerable<IPublishedContent> existingPosts = blogParentPage.Children;

... but this is only returning the published children. I need the unpublished children too.

Any hints or suggestions?

-- Norman Lynch

]]>
Norman Lynch Mon, 27 Jul 2015 18:53:02 +00:00
Courier Tree Issue - Question on Manual Installation https://our.umbraco.org/forum/umbraco-pro/courier/69184-courier-tree-issue-question-on-manual-installation https://our.umbraco.org/forum/umbraco-pro/courier/69184-courier-tree-issue-question-on-manual-installation Umbraco v6 - installed Courier_2.7.8.2.v6

The installation went OK (no errors). When I click the "Courier" icon on the bottom to switch to the tab, there's nothing under the root "Courier" tree. No console errors. By looking at courier.config, one would think that I would see something in the tree since I added a domain location.

enter image description here

<repository name="http://local.scott-clone.com" alias="http://local.scott-clone.com" type="CourierWebserviceRepositoryProvider" visible="true">
  <url>http://local.scott-clone.com</url>;
  <user>0</user>
</repository>

nightly builds (hotfix)

I see that there are "hotfixes" out there, but these require manual installation. After reading the installation procedure, I came across this:

Installation PDF

It states, "To install the database we need to execute a sql script against the database umbraco is installed on. Courier currently only supports SQL server 2005 and 2008."

Is this a true fact? I'm on SQL 2012, and cannot downgrade.

]]>
Rob Scott Mon, 27 Jul 2015 18:19:01 +00:00
How to use 'ExamineManager.Instance.ReIndexNode()' with custom data? https://our.umbraco.org/forum/developers/api-questions/68296-how-to-use-examinemanagerinstancereindexnode-with-custom-data https://our.umbraco.org/forum/developers/api-questions/68296-how-to-use-examinemanagerinstancereindexnode-with-custom-data Hi, I've got a question for those of you with some Examine acumen...

I've got a custom (non umbraco) Indexer set up and working properly by looping through my custom data and creating a "SimpleDataSet" for each item. Now I am adding functionality to update the index when operations happen on the custom objects.

I have successfully set up a "Remove from Index" function to run on object delete by looking up the index nodeId for the object, and passing it to 'ExamineManager.Instance.DeleteFromIndex(...)'

Now I'd like to add operations to run on object create and update which would add just the current object to the index. I was looking at 'ExamineManager.Instance.ReIndexNode()' which expects an "XElement" as the representation of the index data, but I am unclear what format that needs to be in, or how to convert a SimpleDataSet into an XElement.

Is it possible to only index a single object? I'd rather not have to run 'ExamineManager.Instance.IndexAll()' every time something is added or changed... But perhaps that isn't possible?

If you have added custom data to an Umbraco Index, how did you handle updates?

Thanks!

]]>
Heather Floyd Fri, 24 Jul 2015 17:15:54 +00:00
Tabbed content on one page https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/68277-tabbed-content-on-one-page https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/68277-tabbed-content-on-one-page Dear Umbraco Team

Looking for guidance/assistance on how to display tabbed content on a page after the editor has created a list and content for each list item.

Looking for best way on how to implement the above, should i use RTE, Macro Parameters or Grid ?

Thanks Dibs

]]>
Dibs Fri, 24 Jul 2015 14:31:28 +00:00
Umbraco 7 Scheduled Task https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/68100-umbraco-7-scheduled-task https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/68100-umbraco-7-scheduled-task I'm trying to set up a scheduled task, but I think I must be missing some key concept. Here's what I've got so far.

In umbracoSettings.config, I've got the following:

  <scheduledTasks>
    <task log="true" alias="import-from-blogs" interval="60" url="http://localhost:49244/Umbraco/Api/BlogApi/Import" />
  </scheduledTasks>

Then, I've created an API Controller:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Umbraco.Web.WebApi;

namespace psclistens.Controllers
{
    public class BlogApiController : UmbracoApiController
    {
        public String Import()
        {
            return "foo";
        }
    }
}

When run Umbraco, I see this in the UmbracoTraceLog.txt file:

System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
   at System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
   at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
   at System.Net.Http.HttpClientHandler.StartGettingRequestStream(RequestState state)
   at System.Net.Http.HttpClientHandler.PrepareAndStartContentUpload(RequestState state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Umbraco.Web.Scheduling.ScheduledTasks.<GetTaskByHttpAync>d__9.MoveNext()
2015-07-23 14:14:19,440 [6] INFO  Umbraco.Web.Scheduling.ScheduledTasks - [P2876/T1/D2] import-from-blogs has been called with response: False

Any hints or suggestions would be appreciated.

-- Norman Lynch

]]>
Norman Lynch Thu, 23 Jul 2015 19:17:25 +00:00
Automated deployment with courier https://our.umbraco.org/forum/umbraco-pro/courier/67808-automated-deployment-with-courier https://our.umbraco.org/forum/umbraco-pro/courier/67808-automated-deployment-with-courier I'm currently quite new to courier. I can see there is context menu deployment but is anyone aware if this can be automated?

Our current system we automate to deploy on the hour ever hour? We're a large organisation with about 100 content authors and 3 people that will have the ability to deploy.

I don't want to have to rely on anyone if I can.

Thanks

]]>
Craig Cronin Tue, 21 Jul 2015 11:38:03 +00:00
Am i doing this right? (Href link and querystring) https://our.umbraco.org/forum/templating/templates-and-document-types/67752-am-i-doing-this-right-href-link-and-querystring https://our.umbraco.org/forum/templating/templates-and-document-types/67752-am-i-doing-this-right-href-link-and-querystring Hi,

So i'm trying to find the best practise to link to different pages within my umbraco app.

I want to move from my new-leads page to a profile page. I've tried using a Surface Action / Controller but i can only return a partial view (At least that's what i understand)

So my current HTML looks like this.

<tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            @item.Id
                        </td>
                        <td>
                            @string.Format("{0} {1}", item.FirstName, item.LastName)
                        </td>
                        <td>
                            @item.Address
                        </td>
                        <td>
                            @item.EmailAddress
                        </td>
                        <td>
                            @item.PhoneNumber
                        </td>
                        <td>
                            @Enum.GetName(typeof(CustomerStatus), item.CustomerStatus).Replace("_", " ")
                        </td>
                        <td>
                            <a href="~/backend/profile?id=@item.Id" class="label label-primary">Manage</a>
                        </td>
                    </tr>
                }
            </tbody>

Is this the right way to do it? When the Profile page loads it expects a querystring and this is the only way i can figure out how to do it. Although it works and i'm happy to continue this way i was wondering what is 'Best Practise' and maybe i should be doing it a different way.

Any help / advice will be appreciated and the best answer shall receive my first born*





*Need to speak to the Mrs first but i think she'll be fine with it.

]]>
Sean Valentine Sun, 19 Jul 2015 14:17:26 +00:00
url Alias to include the HTML extension https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/67741-url-alias-to-include-the-html-exstension https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/67741-url-alias-to-include-the-html-exstension I have a requirement whereby I need one of my pages to work if some enters the .html file extension...i.e

www.domainname.com/pagename

www.domainname.com/pagename.html

Can this be done using alias?

S

]]>
Stephen Davidson Fri, 17 Jul 2015 16:35:12 +00:00
Help featuring an image gallery on the website https://our.umbraco.org/forum/developers/xslt/67688-help-featuring-an-image-gallery-on-the-website https://our.umbraco.org/forum/developers/xslt/67688-help-featuring-an-image-gallery-on-the-website Hi guys, Im a little rusty and need some help please...

I have an image gallery that uses the umbGallery.

Basically, I have a check box (websiteFeatured) that is on the gallery document type. If the user selects this, I want that gallery featured in the foot of the website on each page.

The structure in the content is:

  • Homepage

    • Gallery
      • A Gallery Name (project 1 for example)
        • Gallery Image
        • Gallery Image
        • Gallery Image
      • Another Gallery Name (project 2 for example)
        • Gallery Image
        • Gallery Image
        • Gallery Image

    So if the user checks the box (websiteFeatured) on project 1, the images of that project will be displayed throughout the site. Also, ideally the images could be displayed in random order but only show 3 at a time.

    I was thinking something like this:

    <xsl:param name="currentPage"/>
        <xsl:variable name="maxItems" select="3"/>  
    
    <xsl:template match="/">
    
    <xsl:variable name="galleryNode" select="$currentPage/ancestor-or-self::*/child::*[@level=2]"/>
    
    <xsl:for-each select="$galleryNode/child::umbGalleryAlbum">
    
    <xsl:if test="websiteFeatured != ''">
        <xsl:if test="position() &lt;= $maxItems">
    
        <img src="{$umbracoMediaFile/umbracoFile}" width="257" height="176" alt="Featured Image"/>
    
    
            </xsl:if>
    </xsl:if>
    </xsl:for-each>
    
    
    </xsl:template>
    

    Now I know this code is incorrect but I hope it gives an idea of what i'm trying to acheive.

    Any help would be greatly appreciated!

    thanks!

]]>
Roger Thu, 16 Jul 2015 11:58:39 +00:00
404 Error when using "Render in grid" https://our.umbraco.org/projects/backoffice-extensions/leblender/bug-reports/66482-404-error-when-using-render-in-grid https://our.umbraco.org/projects/backoffice-extensions/leblender/bug-reports/66482-404-error-when-using-render-in-grid Hi,

I am having a periodic error in my backoffice, when I'm using the setting "Render in grid".

enter image description here

I just came out of nowhere, but sometimes it disappear for a couple of hours, and then shows up again.

Do you have any clue about what I'm doing wrong?

BR Jonas

]]>
Jonas Havmøller Mon, 15 Jun 2015 07:07:58 +00:00
Get a macro parameter in a Surface Controller https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/66337-get-a-macro-parameter-in-a-surface-controller https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/66337-get-a-macro-parameter-in-a-surface-controller I've built a Contact Form exactly as the video tutorial on the Surface Controller and use a Partial Macro to embed the form in a page.

The Partial Macro has a parameter that gets the email address to which the completed Contact Form should be sent.

The Surface Controller has the code to send the Contact Form to an SMTP server. How do I get the email address in the Partial Macro Parameter into the Surface Controller code?

Your help would be much appreciated.

Thanking you in anticipation.

Roger

]]>
Roger Withnell Wed, 10 Jun 2015 21:31:28 +00:00
Support for multiple document types ? https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/65073-Support-for-multiple-document-types- https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/65073-Support-for-multiple-document-types- I gotta say that this package is exactly what I need for many of my projects.

Are there any plans on supporting multiple document types ?

]]>
Sebastian Dammark Mon, 25 May 2015 23:26:33 +00:00
Redirect ezsearch results https://our.umbraco.org/forum/developers/razor/64458-Redirect-ezsearch-results https://our.umbraco.org/forum/developers/razor/64458-Redirect-ezsearch-results Hi there

I have installed exsearch and it works fine. I am able to redirect to redirect the user to a specific page for showing the results. My problem is that I want to show the results at a place on the "show-results" page which I control. Like if I want to show the results in the div: <div id="show-results"><!-- results from ezSearch here --> </div>.

Does anyone know how to do that?

/Lars

]]>
Lars Thu, 30 Apr 2015 10:59:51 +00:00
datagrid ucomp 6 and umb 6.1.6 wont update row https://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/64365-datagrid-ucomp-6-and-umb-616-wont-update-row https://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/64365-datagrid-ucomp-6-and-umb-616-wont-update-row Hey there:) 

We have a simple datagrid in an older solution, but when a row is updated onthing happens. In the log it throws the following :

2015-04-28 09:17:24,700 [7] WARN  uComponents.DataTypes.DataTypeGrid.DataType - [Thread 12] [User 0] [Page 4957] DTG: ViewState did not contain data.
2015-04-28 09:17:24,788 [7] ERROR uComponents.DataTypes.DataTypeGrid.DataType - [Thread 12] [User 0] [Page 4957] Unable to load types for assembly 'Eksponent.CropUp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at uComponents.DataTypes.DataTypeGrid.ServiceLocators.DataTypeHandlerServiceLocator.GetDataTypeFactories()
2015-04-28 09:17:41,341 [7] WARN  uComponents.DataTypes.DataTypeGrid.DataType - [Thread 5] [User 0] [Page 4957] DTG: ViewState did not contain data.
2015-04-28 09:17:46,026 [7] WARN  uComponents.DataTypes.DataTypeGrid.DataType - [Thread 13] [User 0] [Page 4957] DTG: ViewState did not contain data.

I dont know why its failing and referencing the eksponent.cropup, and dont know if could do anything for it.

Anyone got a tip ? We can easily add new rows and delete old ones.

]]>
Rasmus Fjord Tue, 28 Apr 2015 09:25:23 +00:00
Donut caching error when posting to an action https://our.umbraco.org/projects/developer-tools/hybrid-framework/hybrid-framework/61067-Donut-caching-error-when-posting-to-an-action https://our.umbraco.org/projects/developer-tools/hybrid-framework/hybrid-framework/61067-Donut-caching-error-when-posting-to-an-action Just wondering if you have come accross the following issue when using a Donut caching with a http POST to a controller action:

NullReferenceException: Object reference not set to an instance of an object.]
   DevTrends.MvcDonutCaching.KeyGenerator.GenerateKey

I have a cache set on my route-hijacked surface controller for the page, e.g.

[DonutOutputCache(CacheProfile = "OneDay")]

and I also have a cache 'hole' defined in my action like so

@Html.Action("RenderRegistrationForm","Registration", true)

The above error occurs when I post to my controller action to handle the form, e.g.

Html.BeginUmbracoForm<RegistrationController>("HandleRegisterMember")

If I remove the cache attribute on the parent surface controller, it works as expected (but of course then nothing gets cached).  Is this a bug with donutcaching or am I implementing it wrong?  I would have thought any kind of post simply ignores cache altogether.

 

]]>
Barry Fogarty Wed, 04 Feb 2015 15:43:55 +00:00
Member login doesn't redirect to protected node after login https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53836-Member-login-doesnt-redirect-to-protected-node-after-login https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53836-Member-login-doesnt-redirect-to-protected-node-after-login Im using members on a v7 for the first time.

In previous versions you would protect a page, and then make login page.
On the protected page you would choose the "login" page as login page.

When hitting the protected page you would be redirected to the login page.
When succesfully logged in, you would be redirected back to the now unprotected page.

In 7 (7.1.4), when doing the above, you are correctly redirected to the login page when you hit the protected page, but you just stay on the login page after logging in.
When navigating to the protected page you now have access, so you are logged in.
But why doesnt it redirect the user here?

I'm using the standard membership and razor login macro supplied with umbraco.

Is there a new way of achieving this "correct" behaviour?

 

]]>
Claushingebjerg Fri, 20 Jun 2014 09:30:18 +00:00
Creating a "recover password"-page for members (Umbraco 7) https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52855-Creating-a-recover-password-page-for-members-(Umbraco-7) https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52855-Creating-a-recover-password-page-for-members-(Umbraco-7) Hello community!

I'm in the middle of a project, attempting to create a page where members can recover their password. Unfortunately, i'm probably too much of a newbie with MVC to figure out where to start this journey. Is this already accessible via the new MemberService API?

The recovery option must ask the member for his email (which is also the username), send the member an email with a link to reset, and then either give them a new password right away or allow them to enter a new one.

I would love some pointers on where to go from here. Keep in mind that it's been a while since i created a surface controller, so be as kind as possible! :) Thanks!

Also - perhaps this should be included in the new Member snippets?

// Thomas

]]>
Thomas Egebrand Gram Thu, 15 May 2014 12:42:32 +00:00
Recaptcha - How to translate ? https://our.umbraco.org/forum/umbraco-pro/contour/50195-Recaptcha-How-to-translate- https://our.umbraco.org/forum/umbraco-pro/contour/50195-Recaptcha-How-to-translate- Hi,

I'm using reCaptcha in a form, and it's working great. I'm using the basic version of it, and can set the look normally witht thwe Theme picker in the additional settings.

However, I can't seem to translate it (I need it in French, or with customized labels). I've looked at the google doc, and tried adding a lang variable like suggested, or specific words, but it looks like it's always ignored. Any tips on where I need to add said variable, or some other way to make it work? 

I'm using Umbraco 6.1.6, with Contour 3.0.19

Thanks,

Antoine

]]>
Antoine Wed, 23 Apr 2014 20:09:05 +00:00
Please Help Implementing Forgotten password https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/48464-Please-Help-Implementing-Forgotten-password- https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/48464-Please-Help-Implementing-Forgotten-password- I have been working on the Forgotten Password using razor. here is my code 

  1. [HttpPost]
  2.         [Authorize]
  3. [ValidateAntiForgeryToken]
  4.         public ActionResult HandleForgottenPassword(ForgottenPasswordViewModel model)
  5.         {
  6.             if (!ModelState.IsValid)
  7.             {
  8.                 return PartialView("ForgottenPassword", model);
  9.             }
  10.             //Find the member with the email address
  11.             var findMembername = Member.GetMemberFromEmail(model.LoginName);
  12.             var findMember = Member.GetMemberFromEmail(model.EmailAddress);
  13.             if (findMember != null)
  14.             {
  15.                 //We found the member with that email
  16.                 //Set expiry date to 
  17.                 DateTime expiryTime = DateTime.Now.AddMinutes(15);
  18.                 //Lets update resetGUID property
  19.                 findMember.getProperty("resetGUID").Value = expiryTime.ToString("ddMMyyyyHHmmssFFFF");
  20.                 //Save the member with the up[dated property value
  21.                 findMember.Save();
  22.                 //Send user an email to reset password with GUID in it
  23.                 EmailHelper email = new EmailHelper();
  24.                 email.SendResetPasswordEmail(findMember.Email, expiryTime.ToString("ddMMyyyyHHmmssFFFF"));
  25.             }
  26.             else
  27.             {
  28.                 ModelState.AddModelError("ForgottenPasswordForm.", "No member found");
  29.                 return PartialView("ForgottenPassword", model);
  30.             }
  31.             return PartialView("ForgottenPassword", model);
  32.         }
When i do debugging i got an error line 23  findMember.getProperty("resetGUID").Value = expiryTime.ToString("ddMMyyyyHHmmssFFFF");  is null, I have no crue whats wrong?!. 
here is my web.config 

 <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" />
        <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />

Please some body help me to understand that.
Thanks in advance!

]]>
MC Tue, 18 Feb 2014 21:13:18 +00:00
Best shop for Umbraco https://our.umbraco.org/forum/marketing-sales/general-marketing-sales-discussion/41477-Best-shop-for-Umbraco https://our.umbraco.org/forum/marketing-sales/general-marketing-sales-discussion/41477-Best-shop-for-Umbraco Hi,

What best shop package for Umbraco ?

Thanks

]]>
Alex Skrypnyk Mon, 03 Jun 2013 12:14:27 +00:00