ActiveTopics https://our.umbraco.org Sun, 26 Mar 2017 03:24:24 +00:00 umbraco Latests topics from the forum on our.umbraco.org en GetCropUrl with imageCropMode https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84823-getcropurl-with-imagecropmode https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84823-getcropurl-with-imagecropmode Hello,

I'm using Umbraco version 7.5.9 and I have some difficulties using predefined crops with crop mode other than "Crop". I'd like to use predefined crop size with crop mode "Max".

Let me write some samples:

@mediaItem.GetCropUrl(cropAlias: "thumb_landscape", useCropDimensions: true)

this work and return string is:

/media/1115/u300981_medium.jpg?anchor=center&mode=crop&width=160&height=90&rnd=131349260720000000

@mediaItem.GetCropUrl(cropAlias: "thumb_landscape", useCropDimensions: true, quality: 50)

if I add some custom attributes like 'quality', it work as well:

/media/1115/u300981_medium.jpg?anchor=center&mode=crop&quality=50&width=160&height=90&rnd=131349260720000000

@mediaItem.GetCropUrl(cropAlias: "thumb_landscape", useCropDimensions: true, quality: 50, imageCropMode: ImageCropMode.Max)

but why if I add imageCropMode with something other than 'Crop' width and height attributes disappears???

/media/1115/u300981_medium.jpg?mode=max&quality=50&rnd=131349260720000000

I spend couple of hours trying to understand if this is a some special feature or bug, but more and more I think it's a bug ;-/

Thanks,

Marek

]]>
WURMi Sat, 25 Mar 2017 22:48:03 +00:00
Doesn't support firefox? https://our.umbraco.org/projects/website-utilities/ubooking/ubooking-support/84822-doesnt-support-firefox https://our.umbraco.org/projects/website-utilities/ubooking/ubooking-support/84822-doesnt-support-firefox Hi there!

I just noticed that uBooking doesn't seem to work properly in firefox, I have tried it in explorer, chrome and firefox. I can book in both chrome and explorer but not in firefox. I dont know if i am doing something wrong here or if its an error.
Running uBooking version 1.1.0
adding img's to clarify.

Firefox: Firefox

Chrome: enter image description here

]]>
Johannes Lantz Sat, 25 Mar 2017 15:17:37 +00:00
Issues migrating from local DB to azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/84821-issues-migrating-from-local-db-to-azure https://our.umbraco.org/forum/using-umbraco-and-getting-started/84821-issues-migrating-from-local-db-to-azure Hey guys, I've built up a local umbraco site using the SQLCE db and am ready to migrate it to production.

One of the requirements is to leverage an Azure sql instance for the data store - simple enough right?

I installed SQLCE Toolbox for VS and migrated my DB to azure. This was pretty seamless. Everything is laid down as it should be and tables are populated with data.

I modified the connString for umbracoDbDSN to point to the new azure sql instance and am trying to build one last time before I publish

<add name="umbracoDbDSN" connectionString="Server=tcp:hideo,1433;Initial Catalog=hideo;Persist Security Info=False;User ID=hideo;Password=hideo;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" />

and blamo I get hit with a yellow screen of death.

Error: Value cannot be null. Parameter name: sqlSyntax

[ArgumentNullException: Value cannot be null. Parameter name: sqlSyntax] Umbraco.Core.Persistence.Repositories.PetaPocoRepositoryBase`2..ctor(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax) +84 Umbraco.Core.Persistence.RepositoryFactory.CreateDomainRepository(IDatabaseUnitOfWork uow) +44 Umbraco.Core.Services.DomainService.GetAll(Boolean includeWildcards) +48 Umbraco.Web.Routing.PublishedContentRequestEngine.FindDomain() +286 Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +26 Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +361 Umbraco.Web.UmbracoModule.b__8(Object sender, EventArgs e) +80 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

If I roll things back to the local (SQLCE) everything works fine, so it's something with a connection string.... somewhere. (Yes local IP is whitelisted on azure sql firewall)

Anyone have any thoughts, or article where this kind of migration is covered. I've had to piece together things from different sources so it is entirely possible (dare I say absolute) that I missed something.

]]>
Joe Dirte Sat, 25 Mar 2017 13:18:27 +00:00
Extending Examine to allow for advanced searching https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84820-extending-examine-to-allow-for-advanced-searching https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84820-extending-examine-to-allow-for-advanced-searching New to umbraco and trying to understand how i might be able to allow examine to accept search terms like this:

this or that
this and that
this or that and (me or you)

basically have it recognize the and, or, and parentheses and execute accordingly.

Thanks

]]>
Steve Sat, 25 Mar 2017 12:42:59 +00:00
Autofac not working https://our.umbraco.org/forum/using-umbraco-and-getting-started/84819-autofac-not-working https://our.umbraco.org/forum/using-umbraco-and-getting-started/84819-autofac-not-working Hi

I'm trying to setup Autofac for Umbraco and I'm failing hard. It looks like Autofac is ignoring the configuration.

My Repository is always ending up as null. What am I missing?

Here's the Startup config

namespace MyApp.Website.EventHandlers
{
public class ApplicationStartedEventHandler : IApplicationEventHandler
{
    public void OnApplicationInitialized(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
    }

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

    public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
    {
        RegisterAutoMapper.PopulateAutoMapper();

        var builder = new ContainerBuilder();

        builder.RegisterControllers(Assembly.GetExecutingAssembly());
        builder.RegisterApiControllers(typeof(UmbracoApplication).Assembly);

        builder.RegisterControllers(typeof(InstructorProfileStep2Controller).Assembly);
        builder.RegisterControllers(typeof(RegisterController).Assembly);
        builder.RegisterControllers(typeof(Umbraco.Forms.Web.Trees.DataSourceTreeController).Assembly);

        builder.RegisterType<InstructorRepository>().As<IInstructorRepository>().InstancePerLifetimeScope().PropertiesAutowired();


        var container = builder.Build();
        var resolver = new AutofacWebApiDependencyResolver(container);
        GlobalConfiguration.Configuration.DependencyResolver = resolver;
        DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

    }
}
}

Now the builder.RegisterControllers(typeof(InstructorProfileStep2Controller).Assembly); builder.RegisterControllers(typeof(RegisterController).Assembly); should register my controllers - one is RenderMvcController another one is SurfaceController.

The implementation of Repository is as follows:

    namespace MyApp.DataAccess
{
    public class InstructorRepository : IInstructorRepository
    {

        public InstructorProfileDto GetInstructorProfile(int id)
        {
            return null;
        }
    }
}

And inside Controller - Repository here is always null:

public class InstructorProfileStep2Controller: RenderMvcController
{
    public IInstructorRepository InstructorRepository { get; set; }

    public override ActionResult Index(RenderModel model)
    {
        InstructorProfileStep2Model viewModel = new InstructorProfileStep2Model(model.Content);

        InstructorRepository.GetInstructorProfile(1123);

        return base.Index(viewModel);
    }
}

And project structure

enter image description here

Thanks

]]>
Maciej Rakowski Sat, 25 Mar 2017 11:26:38 +00:00
Backoffice - sending status error + Import from file duplicates https://our.umbraco.org/projects/backoffice-extensions/newsletter-studio/comments/84818-backoffice-sending-status-error-plus-import-from-file-duplicates https://our.umbraco.org/projects/backoffice-extensions/newsletter-studio/comments/84818-backoffice-sending-status-error-plus-import-from-file-duplicates Hi, i have the following problems:

  • Umbraco version 7.5.8 assembly: 1.0.6233.15010
  • Newsletter Studio v2.1.6

    1. When i schedule a newsletter, i can see the progress in the backoffice, but when i redirect to another node i got the following error and i should refresh my page.

Please check the images.

enter image description here

enter image description here

enter image description here

Second. I have import the users from csv files successfully, but unfortunatelly i can see that there are too too many duplicates... and i have really big problem when i send a newsletter....

enter image description here

]]>
George Sat, 25 Mar 2017 07:26:51 +00:00
Examine Index rebuild - index documents missing https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84816-examine-index-rebuild-index-documents-missing https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84816-examine-index-rebuild-index-documents-missing If I click "rebuild index", the examine index shows about 1360 nodes. If I test the search for example "whiskey", no node is found, even though there is a published node with the name "whiskey". If I publish this node again, it is in the index and is found in the test search console. If I click "rebuild index" again, the node is vanished in the index again. So, what do I wrong? I thought, rebuilding the index takes all published nodes into account.

Thanks for any hints -

Tom

]]>
Thomas Beckert Fri, 24 Mar 2017 23:13:06 +00:00
Renaming a document that is attached to multiple pages https://our.umbraco.org/forum/using-umbraco-and-getting-started/84815-renaming-a-document-that-is-attached-to-multiple-pages https://our.umbraco.org/forum/using-umbraco-and-getting-started/84815-renaming-a-document-that-is-attached-to-multiple-pages I may have a writer who needs to link a single PDF onto multiple pages (content nodes). Can we link that PDF in such a way, that if the writer ever needs to rename the PDF, the name also changes on all pages that have the PDF linked? Is this possible through Umbraco?

]]>
kensley Fri, 24 Mar 2017 19:52:13 +00:00
0 to hero with Umbraco 7 Search on the front-end https://our.umbraco.org/forum/using-umbraco-and-getting-started/84814-0-to-hero-with-umbraco-7-search-on-the-front-end https://our.umbraco.org/forum/using-umbraco-and-getting-started/84814-0-to-hero-with-umbraco-7-search-on-the-front-end When I installed Umbraco 7.5.1.1 for the first time on my localhost, I installed the 1st skin package out of the 3 that Umbraco offered me. There appears to be no front-end search box that comes with the example skin.

Where can I learn to create and manage a search component for Umbraco 7? Or is it so easy I shouldn't of asked this question ;) Here are my requirements....

  • A content node with a search box that can be used to search for documents and pages (not images), also search content by meta data.

  • The ability to manage search results. i.e. can I display all content pages first, then all pdfs, then all word documents, then all zip files?

  • Filter out search results for public members, (i.e. filter out a specific folder of documents), but when that user logs in, show all results. Is this possible?

  • Add custom icons based on file extensions for each search result kind? i.e. pdfs get a small pdf icon next to them, word documents get, etc...

  • Can I determine what else gets shown besides the link title of each search result item?

  • Can we create a data type that provides meta data to uploaded PDF's or Word documents? All for the purpose of searching for these items through a search component? For example I may have a PDF called cats-and-dogs-company.pdf but If I had a data type text box that I was able to type into that says "cad" and a user types in cad in a search box, the cats-and-dogs.pdf will show as a result.

Thanks for any tips!

]]>
kensley Fri, 24 Mar 2017 18:51:17 +00:00
How to apply pre-defined sections within the TinyMCE editor https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84813-how-to-apply-sections-within-the-tinymce-editor https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84813-how-to-apply-sections-within-the-tinymce-editor For my writers in Umbraco, I would love to give them a pre-defined section layout they can see in TInyMCE. How can I apply this to a rich text editor in Umbraco?

The HTML

<textarea><section>Section
    <p>Paragraph</p>
  </section>
  <article>Article
    <p>Paragraph</p>
  </article>
  <blockquote>Blockquote
    <p>Paragraph</p>
  </blockquote>
  <hgroup>
    <h1>Header 1</h1></hgroup>
  <aside>Section
    <p>Paragraph</p>
  </aside>
  <figure>Figure
    <figcaption>Figcaption</figcaption>
  </figure>
</textarea>

The JavaScript

tinymce.init({
  selector: 'textarea',
  height: 500,
  plugins: 'visualblocks',
  content_css: 'css/content.css',
  style_formats: [
    { title: 'Headers', items: [
      { title: 'h1', block: 'h1' },
      { title: 'h2', block: 'h2' },
      { title: 'h3', block: 'h3' },
      { title: 'h4', block: 'h4' },
      { title: 'h5', block: 'h5' },
      { title: 'h6', block: 'h6' }
    ] },

    { title: 'Blocks', items: [
      { title: 'p', block: 'p' },
      { title: 'div', block: 'div' },
      { title: 'pre', block: 'pre' }
    ] },

    { title: 'Containers', items: [
      { title: 'section', block: 'section', wrapper: true, merge_siblings: false },
      { title: 'article', block: 'article', wrapper: true, merge_siblings: false },
      { title: 'blockquote', block: 'blockquote', wrapper: true },
      { title: 'hgroup', block: 'hgroup', wrapper: true },
      { title: 'aside', block: 'aside', wrapper: true },
      { title: 'figure', block: 'figure', wrapper: true }
    ] }
  ],
  visualblocks_default_state: true,
  end_container_on_empty_block: true,
  content_css: [
    '//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
    '//www.tinymce.com/css/codepen.min.css'
  ]
 });

I pulled the above code from the official TinyMCE site.

Thanks for any tips!

]]>
kensley Fri, 24 Mar 2017 16:42:36 +00:00
Trying to undo Umbraco update broke my site. Invalid Column name ParentGroupId https://our.umbraco.org/forum/using-umbraco-and-getting-started/84812-trying-to-undo-umbraco-update-broke-my-site-invalid-column-name-parentgroupid https://our.umbraco.org/forum/using-umbraco-and-getting-started/84812-trying-to-undo-umbraco-update-broke-my-site-invalid-column-name-parentgroupid I accidentally upgraded umbraco via nuget from 7.3.7 to 7.5x I then logged into my sites back office and proceeded (regretfully) to follow the upgrade/install steps until completion. Everything was working fine.

*Important: I did not back up the DB before upgrade.

Then I realized that I did not want to upgrade umbraco, so I uninstalled 7.5x and installed 7.3.7 via nuget. This is the point that I broke everything.

I can no longer access the site or the sites back office. Browsing to mysite gives me a SQL Exception enter image description here

Going to mysite/umbraco gives me a blank page with the following errors:

I'm at a loss of where to go from here.

]]>
Daniel Orlan Fri, 24 Mar 2017 16:37:04 +00:00
Can I reference an uploaded media image within my stylesheets as a background image? https://our.umbraco.org/forum/templates-partial-views-and-macros/84811-can-i-reference-an-uploaded-media-image-within-my-style-sheets-as-a-background-image https://our.umbraco.org/forum/templates-partial-views-and-macros/84811-can-i-reference-an-uploaded-media-image-within-my-style-sheets-as-a-background-image Exactly that. How do you guys do it?

]]>
kensley Fri, 24 Mar 2017 16:16:00 +00:00
hide default Properties tab in document https://our.umbraco.org/forum/using-umbraco-and-getting-started/84809-hide-default-properties-tab-in-document https://our.umbraco.org/forum/using-umbraco-and-getting-started/84809-hide-default-properties-tab-in-document Hi all.

I would like to hide default Properties tab in my DocumentType in Umbraco because i don't want some users to have access to this information. Is that possible? , i did some research they used to be a package called Attackmonkey Tab Hider but not working with umbraco 7 ...

Best Regards.

]]>
Youness Ben Fri, 24 Mar 2017 16:05:37 +00:00
Member Timeout redirection https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84808-member-timeout-redirection https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84808-member-timeout-redirection I'm trying to redirect a member to a url once the timeout has been reached.

in web.config:

 <authentication mode="Forms">
  <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" timeout="15" />
</authentication>

It does logout the member but there's no way to detect the logout event and force the user to a login page.

Any ideas?

]]>
Bezmundo Fri, 24 Mar 2017 15:33:02 +00:00
How to wrap recursive umbraco property fields with HTML https://our.umbraco.org/forum/templates-partial-views-and-macros/84807-how-to-wrap-recursive-umbraco-property-fields-with-html https://our.umbraco.org/forum/templates-partial-views-and-macros/84807-how-to-wrap-recursive-umbraco-property-fields-with-html I have the following Umbraco field in a template.

@Umbraco.Field("kLPArticle", recursive: true)

which is powered by Umbraco.MultiNodeTreePicker

When I add content node(s) to my page that has this Tree Picker, The results display...

1081, 1082

From my template, how can I wrap each of these category Ids with HTML so that the the final output looks like this...

<a href="/1081">category node page name </a>
<a href="/1082">category node page name</a>
...

What must I do in my template?

And beyond that, is there a way to show /content-node-name, rather than /1081?

Thanks!

]]>
kensley Fri, 24 Mar 2017 14:48:21 +00:00
Costum price Merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/84806-costum-price-merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/84806-costum-price-merchello Hi

I am about to set up a Merchello shop.

I need to set a discount on each member.

On all product i need to show the "original price" and "Your price". This should be visible trough the ordering process. At the order total there should be a "you save 'amount' "

I was wondering if it is possible to alter the fixed tax provider. So it could be a "fixed discount provider pr member"

So instead of adding a tax, it should subtract a discount, depending on what it is set on on the member.

Am i all wrong here, or is this the way it could be done?

Any suggestions.. :-)

By the way.. tanks for the the great merchello project.

René

]]>
René Fri, 24 Mar 2017 14:31:16 +00:00
Images being rotated when uploaded using media picker https://our.umbraco.org/forum/using-umbraco-and-getting-started/84805-images-being-rotated-when-uploaded-using-media-picker https://our.umbraco.org/forum/using-umbraco-and-getting-started/84805-images-being-rotated-when-uploaded-using-media-picker Morning

I am in charge of updating and editing our school website and we are having some minor issues with image uploads.

Some images are appearing in the wrong orientation, despite them appearing correctly in Windows explorer and when opened with image editors.

The only way they upload correctly is to open with an image editor, save the file, then upload to the website. This is a good stop gap measure but going forward it's not ideal. Has anyone come across this issue before and did you find a solution, other than editing each image?

Thanks

Andy Croft

TA3 Computing & Technical Support

West Lancashire Community High School

]]>
Andy Croft Fri, 24 Mar 2017 10:00:50 +00:00
Static IP on UaaS https://our.umbraco.org/forum/umbraco-cloud/84804-static-ip-on-uaas https://our.umbraco.org/forum/umbraco-cloud/84804-static-ip-on-uaas I'm using a bunch of webservices on an external Dynamics NAV solution. To get access to this external solution, the hostingpartner for the NAV, needs to open for access through their firewall for a specific webserver IP to a specific port.

Are the IP's for solutions on Umbraco Cloud dynamic or static?

]]>
Kristoffer Eriksen Fri, 24 Mar 2017 09:49:56 +00:00
Setting Grid value in code https://our.umbraco.org/forum/using-umbraco-and-getting-started/84803-setting-grid-value-in-code https://our.umbraco.org/forum/using-umbraco-and-getting-started/84803-setting-grid-value-in-code Hello,

What is the correct of way of setting a grid value in code? If I set a grid's value with a properly formatted json data, it will save without errors using ApplicationContext.Services.ContentService.SaveAndPublishWithStatus. But once the content is loaded in the back-office the value is not showing up.

I checked the database and the cmscontentxml has the correct value as well. The umbraco.config contains the correct value as well. Even after republishing the entire site, stop and started the service, the grid is empty.

This is the content of the grid in umbraco.config

<grid><![CDATA[{
  "name": "1 column layout",
  "sections": [
    {
      "grid": 12,
      "rows": [
        {
          "label": "1 Column",
          "name": "1 Column",
          "areas": [
            {
              "grid": 12,
              "hasConfig": false,
              "controls": [
                {
                  "value": "<p>This is a test</p>",
                  "editor": {
                    "alias": "rte"
                  },
                  "active": true
                }
              ],
              "active": true
            }
          ],
          "hasConfig": false,
          "id": "2d69bae5-9cdd-7dbb-3efe-869fbcd89491",
          "hasActiveChild": true,
          "active": true
        }
      ]
    }
  ]
}]]></grid> 
]]>
von Fri, 24 Mar 2017 08:38:27 +00:00
Difference between Archetype v.1.13.2 and v.1.13.1 https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/84800-difference-between-archetype-v1132-and-v1131 https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/84800-difference-between-archetype-v1132-and-v1131 Hi there,

Is there a document describing changes made between two version of Archetype: 1.13.2 vs 1.13.1

We are using 1.13.1 and wondering if it's worth to upgrade it.

]]>
Ivan Fri, 24 Mar 2017 07:30:09 +00:00
Content types https://our.umbraco.org/forum/using-umbraco-and-getting-started/84799-content-types https://our.umbraco.org/forum/using-umbraco-and-getting-started/84799-content-types Hi all,

I'm not technical so forgive me....

We have just started using Umbraco and Umbraco Forms.

Re Umbraco Forms

Has anyone extended the system to enable:

  1. the customer to save the form part-way through and then receive an email/SMS to reload the form and continue;
  2. capture abandoned form data and enables a different communication to be sent to the potential customer;
  3. extend the conditional logic to apply for form pages?

If so, would you be willing to share what you did?

Re Content Types

I was wondeirng if someone could point me to some pre-developed content types for basic webpage creation. i.e. main banner with text overlay, Carousel etc. I have searched 'Our Umbraco' and found a CTA button which we have downloaded and it works great (thank you). There doesn't appear too be many other UI elements.

Many thanks

Lorraine

]]>
Lorraine Marsh Fri, 24 Mar 2017 05:31:55 +00:00
Error on clean install of Umbraco 7.6 beta https://our.umbraco.org/projects/backoffice-extensions/pipeline-crm/pipeline-crm/84797-error-on-clean-install-of-umbraco-76-beta https://our.umbraco.org/projects/backoffice-extensions/pipeline-crm/pipeline-crm/84797-error-on-clean-install-of-umbraco-76-beta Just tried installing Pipeline CRM on a clean install of Umbraco 7.6 beta and got this error when I go to the Pipeline CRM section of the back office:

System.NullReferenceException: Object reference not set to an instance of an object.
at GrowCreate.PipelineCRM.Trees.PipelineCrmTreeController.GetTreeNodes(String id, FormDataCollection queryStrings)
   at Umbraco.Web.Trees.TreeControllerBase.GetNodes(String id, FormDataCollection queryStrings)
   at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromControllerTree(ApplicationTree appTree, String id, FormDataCollection formCollection, HttpControllerContext controllerContext)
   at Umbraco.Web.Trees.ApplicationTreeController.<GetRootForSingleAppTree>d__17.MoveNext()
--- 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 Umbraco.Web.Trees.ApplicationTreeController.<GetApplicationTrees>d__4.MoveNext()
--- 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.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()
--- 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.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- 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.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- 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.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- 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.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- 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.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- 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.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
]]>
Alex Lindgren Fri, 24 Mar 2017 02:31:27 +00:00
not able to add more than one pdf link. It gives an error The process cannot access the file https://our.umbraco.org/forum/using-umbraco-and-getting-started/84796-not-able-to-add-more-than-one-pdf-link-it-gives-an-error-the-process-cannot-access-the-file https://our.umbraco.org/forum/using-umbraco-and-getting-started/84796-not-able-to-add-more-than-one-pdf-link-it-gives-an-error-the-process-cannot-access-the-file Hello All,

I need some help I am trying to add several pdf links one after the other, but It isnt letting me. I get in my google developer tools: The process cannot access the file

]]>
brett taylor Thu, 23 Mar 2017 23:06:39 +00:00
my first Umbraco 7 package https://our.umbraco.org/forum/using-umbraco-and-getting-started/84789-my-first-umbraco-7-package-manifest https://our.umbraco.org/forum/using-umbraco-and-getting-started/84789-my-first-umbraco-7-package-manifest I create my first package based on these instructions and it worked for me in Umbraco 7.5.11

But where I'm stuck is if I want to go back into Visual Studio 2015 and make modifications to my javascript file that is within my package...

  • markdowneditor.controller.js

When I updated it and click save, the changes do not show up in Umbraco. I tried clearing my cache in chrome. I tried recycling the app pool in IIS, and I tried re-saving my data-type that is already associated to this package. The newer .js edits do not reflect in Umbraco.

What should I do to help solve this mystery?

Thanks

]]>
kensley Thu, 23 Mar 2017 21:34:15 +00:00
Courier doesn't do anything, gives blank page https://our.umbraco.org/forum/umbraco-courier/84788-courier-doesnt-do-anything-gives-blank-page https://our.umbraco.org/forum/umbraco-courier/84788-courier-doesnt-do-anything-gives-blank-page First of all, does one get support when purchasing Courier full version? I just purchased Courier full version.

Here's my problem: go to the content page and click on a node (highest node aka home), then click on the Courier icon in the upper right "Actions" menu, click checkbox "Include all nodes below this one", click "Deploy", then I get a white screen. No error message. I'm not doing anything fancy, we had the same exact issues with Courier Express and we thought that it was an issue with the version we had. I just bought a full license of this product and it is on a fresh install of Umbraco. Do I need to also buy support to get it to work???

I get the following in the logs:

2017-03-23 16:19:35,918 [7] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateSessionManager - [Thread 7] Loading factory
2017-03-23 16:19:37,021 [7] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateSessionManager - [Thread 7] Complete (took 1101ms)
2017-03-23 16:20:36,146 [10] INFO  Umbraco.Courier.Core.TaskManager - [Thread 10] Added PackagingTask behind queue of : 0
2017-03-23 16:20:36,147 [10] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 10]  Task added Umbraco.Courier.Core.Tasks.PackagingTask
2017-03-23 16:20:36,149 [10] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 10] Starting
2017-03-23 16:20:36,155 [22] INFO  Umbraco.Courier.Core.TaskManager - [Thread 22] Starting PackagingTask with id: 899f8dea-edff-49b9-b0dc-ebd7856116e9
2017-03-23 16:20:39,195 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: 32342508-990d-42c0-9e46-cf54e3226215 hash-mismatch (local/remote) ff22ca4dbdbd0c7b6fdd2d003ca23b523e154342 / 093b1e136bb53e26f7ca73322ac34d8d82238a00
2017-03-23 16:20:40,671 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: 1fd36b49-ca5a-4490-a473-d97d6a8a8237 hash-mismatch (local/remote) a64b674790e1a167ca6841c2f28deae58a7712cd / 22359eca08b9abb4deba444094e540d6419cd0c3
2017-03-23 16:20:40,676 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 85a44631-7e62-46f3-827c-027046ad2cec_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:20:40,677 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 1dc1c4c9-5d60-4f77-9efb-64c2f43260e9_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:20:42,015 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 3715a84e-74bc-4346-a5db-55a7d608e181_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:20:42,022 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d hash-mismatch (local/remote) d735386af5a0a53da8b19edf5dfdb75be9c6ced5 / 4e89f3838643c35bf69724265a54fda67b75ce97
2017-03-23 16:20:42,384 [22] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 22] Closing session, UseGlobalSession: False, key: ce7d8160-8a18-4679-8c10-87ec82b04933
2017-03-23 16:20:42,401 [22] INFO  Umbraco.Courier.Core.TaskManager - [Thread 22] Completed PackagingTask with id: 899f8dea-edff-49b9-b0dc-ebd7856116e9
2017-03-23 16:20:54,019 [6] INFO  Umbraco.Courier.Core.TaskManager - [Thread 6] Added ExtractionTask behind queue of : 0
2017-03-23 16:20:54,019 [6] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 6]  Task added Umbraco.Courier.Core.Tasks.ExtractionTask
2017-03-23 16:20:54,019 [6] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 6] Starting
2017-03-23 16:20:54,020 [23] INFO  Umbraco.Courier.Core.TaskManager - [Thread 23] Starting ExtractionTask with id: 4c6477f4-6cca-4511-943a-a40bcad485a6
2017-03-23 16:20:54,029 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Running PopulateGraph
2017-03-23 16:20:54,140 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Finished PopulateGraph (took 110ms)
2017-03-23 16:20:54,145 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Starting extraction
2017-03-23 16:20:54,146 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Opens database session
2017-03-23 16:20:54,340 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Transfering pre-extraction files
2017-03-23 16:20:54,882 [23] WARN  Umbraco.Courier.Core.Diagnostics.Logging.RevisionLog - [Thread 23] [Warning]; Item Id: 8730a2fb-776b-4d72-af6a-839b1645c45a; Caller: Umbraco.Courier.Core.Extraction.RevisionExtraction; Process: resources; Msg: Compare: /media/1002/avocado.png is identical to destination and is ignored BeforeExtraction;
2017-03-23 16:20:55,039 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Running ExtractReadyRevisionBatch
2017-03-23 16:20:55,043 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Extracting batch of 8 items
2017-03-23 16:20:55,304 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Finished ExtractReadyRevisionBatch (took 265ms)
2017-03-23 16:20:55,305 [23] ERROR Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] There was a problem with extracting database information for the item: CurrentItem is null
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Error extracting item, ID: f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d_d8e6ad84-e73a-11df-9492-0800200c9a66, Name: Folder, Type: Umbraco.Courier.ItemProviders.DocumentType ---> could not insert: [Umbraco.Courier.Persistence.V6.NHibernate.EntityClasses.UmbracoNode][SQL: INSERT INTO umbracoNode (createDate, level, nodeObjectType, path, sortOrder, text, trashed, uniqueID, nodeUser, parentID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); select SCOPE_IDENTITY()] ---> Cannot insert duplicate key row in object 'dbo.umbracoNode' with unique index 'IX_umbracoNodeUniqueID'. The duplicate key value is (f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d).
The statement has been terminated.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.EndExtractItems(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.ExtractItems(Item[] items, Boolean overWrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
2017-03-23 16:20:55,330 [23] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 23] Rolling back changes due to errors
2017-03-23 16:20:55,491 [23] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 23] Closing session, UseGlobalSession: False, key: bd327ad8-e874-4cb6-b721-5b1de9a51f21
2017-03-23 16:20:55,491 [23] WARN  Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 23] Closing session called but there is no session open: bd327ad8-e874-4cb6-b721-5b1de9a51f21
2017-03-23 16:20:55,637 [23] ERROR Umbraco.Courier.Core.TaskManager - [Thread 23] Error ExtractionTask with id: 4c6477f4-6cca-4511-943a-a40bcad485a6
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Error extracting item, ID: f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d_d8e6ad84-e73a-11df-9492-0800200c9a66, Name: Folder, Type: Umbraco.Courier.ItemProviders.DocumentType ---> could not insert: [Umbraco.Courier.Persistence.V6.NHibernate.EntityClasses.UmbracoNode][SQL: INSERT INTO umbracoNode (createDate, level, nodeObjectType, path, sortOrder, text, trashed, uniqueID, nodeUser, parentID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); select SCOPE_IDENTITY()] ---> Cannot insert duplicate key row in object 'dbo.umbracoNode' with unique index 'IX_umbracoNodeUniqueID'. The duplicate key value is (f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d).
The statement has been terminated.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.EndExtractItems(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.ExtractItems(Item[] items, Boolean overWrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)
2017-03-23 16:20:55,637 [23] ERROR Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 23] An error occurred consuming task
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Error extracting item, ID: f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d_d8e6ad84-e73a-11df-9492-0800200c9a66, Name: Folder, Type: Umbraco.Courier.ItemProviders.DocumentType ---> could not insert: [Umbraco.Courier.Persistence.V6.NHibernate.EntityClasses.UmbracoNode][SQL: INSERT INTO umbracoNode (createDate, level, nodeObjectType, path, sortOrder, text, trashed, uniqueID, nodeUser, parentID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); select SCOPE_IDENTITY()] ---> Cannot insert duplicate key row in object 'dbo.umbracoNode' with unique index 'IX_umbracoNodeUniqueID'. The duplicate key value is (f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d).
The statement has been terminated.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.EndExtractItems(IAsyncResult asyncResult)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.ExtractItems(Item[] items, Boolean overWrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)
2017-03-23 16:21:54,674 [10] INFO  Umbraco.Courier.Core.TaskManager - [Thread 10] Added PackagingTask behind queue of : 0
2017-03-23 16:21:54,674 [10] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 10]  Task added Umbraco.Courier.Core.Tasks.PackagingTask
2017-03-23 16:21:54,674 [22] INFO  Umbraco.Courier.Core.TaskManager - [Thread 22] Starting PackagingTask with id: 2427d0cc-f07f-4063-baab-7cf981fd0881
2017-03-23 16:21:56,927 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: 32342508-990d-42c0-9e46-cf54e3226215 hash-mismatch (local/remote) ff22ca4dbdbd0c7b6fdd2d003ca23b523e154342 / 093b1e136bb53e26f7ca73322ac34d8d82238a00
2017-03-23 16:21:58,190 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: 1fd36b49-ca5a-4490-a473-d97d6a8a8237 hash-mismatch (local/remote) a64b674790e1a167ca6841c2f28deae58a7712cd / 22359eca08b9abb4deba444094e540d6419cd0c3
2017-03-23 16:21:58,194 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 85a44631-7e62-46f3-827c-027046ad2cec_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:21:58,196 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 1dc1c4c9-5d60-4f77-9efb-64c2f43260e9_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:21:59,137 [22] WARN  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] 3715a84e-74bc-4346-a5db-55a7d608e181_d8e6ad84-e73a-11df-9492-0800200c9a66 return null
2017-03-23 16:21:59,141 [22] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 22] Document types: f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d hash-mismatch (local/remote) d735386af5a0a53da8b19edf5dfdb75be9c6ced5 / 4e89f3838643c35bf69724265a54fda67b75ce97
2017-03-23 16:21:59,464 [22] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 22] Closing session, UseGlobalSession: False, key: 5e319b44-c367-4aaf-b89d-228fb23ffaef
2017-03-23 16:21:59,465 [22] INFO  Umbraco.Courier.Core.TaskManager - [Thread 22] Completed PackagingTask with id: 2427d0cc-f07f-4063-baab-7cf981fd0881
]]>
Giancarlo Espinosa Thu, 23 Mar 2017 21:31:13 +00:00
The CMS install failed now getting errors https://our.umbraco.org/projects/developer-tools/cmsimport/configuration/84787-the-cms-install-failed-now-getting-errors https://our.umbraco.org/projects/developer-tools/cmsimport/configuration/84787-the-cms-install-failed-now-getting-errors I ran the package install via the CMS locally and it failed.

I then ran through the manual install steps but now when i run the site i get the message below: enter image description here

]]>
Steve Thu, 23 Mar 2017 21:10:23 +00:00
SQL Server to Umbraco Cloud https://our.umbraco.org/forum/umbraco-cloud/84784-sql-server-to-umbraco-cloud https://our.umbraco.org/forum/umbraco-cloud/84784-sql-server-to-umbraco-cloud Hi everyone.

I'm migrating an existing database to Umbraco Cloud. It is SQL Server (Not SQL Server CE). I've not been able to find any specific docs for doing this. I tried using SQL Azure MW but the Cloud DB already exists so this causes issues and converting SQL Server (.mdf) to SQL CE (.sdf) doesn't seem to work.

Thanks in advance. Francis

]]>
Francis Thu, 23 Mar 2017 14:49:32 +00:00
RenderMvcController async ActionResult vs Surfacecontroller CurrentUmbracoPage https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84774-rendermvccontroller-async-actionresult-vs-surfacecontroller-currentumbracopage https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/84774-rendermvccontroller-async-actionresult-vs-surfacecontroller-currentumbracopage Hi all,

I'm struggling to get the SurfaceController CurrentUmbracoPage actionresult to work with async actions on my RenderMvcController.

Basically, i've created a custom controller, hijacking the Umbraco Routes:

public class HomeController : Umbraco.Web.Mvc.RenderMvcController
{
    public async Task<ActionResult> Home(RenderModel model)
    {
        // I've skipped the async stuff
        return CurrentTemplate(model);
    }
}

I also have a form post on my homepage which posts to a SurfaceController:

public class LoginController : Umbraco.Web.Mvc.SurfaceController
{
    public async Task<ActionResult> Login(string email, string pw)
    {
        return CurrentUmbracoPage();
    }
}

return CurrentUmbracoPage() causes a ysod: The asynchronous action method 'Home' returns a Task, which cannot be executed synchronously.

Can anybody explain what I am missing here?

]]>
Davy Meybos Thu, 23 Mar 2017 08:04:45 +00:00
Error in licensingResource.checkValid function and some backoffice pages empty https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/bugs-v3plus/84767-error-in-licensingresourcecheckvalid-function-and-some-backoffice-pages-empty https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/bugs-v3plus/84767-error-in-licensingresourcecheckvalid-function-and-some-backoffice-pages-empty Hi David,

I'm interrested to purchase your new version of EventCalendar for a customer project but when I try to use and test the package in the backend, I receive an empty context menu (to add new items) and an empty dashboard page.

When I run the Chrome DevTools, I can see an error in the backend of the interface about Licensing and I think that this error is related to the problems I have.

Umbraco version 7.4.3 assembly: 1.0.5948.18141

EventCalendar 3.2.1

Error: TypeError: licensingResource.checkValid is not a function at new (DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:2130)...

The installation process has reported success, all my browser caches are cleared and it seem I have all the files of the package to the good place in the Umbraco structure.

Screenshot:

Dashboard empty with error message in DevTools Dashboard empty with error message in DevTools

Context menu empty Context menu empty

User is ok User is ok

Thank you for your help, I'm stuck with this problem since few days without solution.

Simon

]]>
Simon Hebert Wed, 22 Mar 2017 19:56:45 +00:00
Grid Editor - How to add a Tag Picker https://our.umbraco.org/forum/using-umbraco-and-getting-started/84763-grid-editor-how-toadd-a-tag-picker https://our.umbraco.org/forum/using-umbraco-and-getting-started/84763-grid-editor-how-toadd-a-tag-picker Hello my friends,

I am using Umbraco version 7.5.3 and I would like to add the Tag Picker of Umbraco to my Custom Grid Editor as a property field.

What is the best way to do this?

Thank in advance! :)

]]>
David Wed, 22 Mar 2017 16:52:18 +00:00
Custom Examine Index https://our.umbraco.org/forum/using-umbraco-and-getting-started/84754-custom-examine-index https://our.umbraco.org/forum/using-umbraco-and-getting-started/84754-custom-examine-index Hello

I want to create a custom search using Examine. I am using Umbraco 7.2.5. But the index is not building at all. I have retried rebuilding, but nothing. The document count still is zero,

Documents in index 0 Fields in index 0 Has deletions? false (0) Optimized? false

Anyone encounter similar issue?

Regards, Aaeda

]]>
aaeda Wed, 22 Mar 2017 12:54:00 +00:00
Cannot deploy to Azure - Articulate web.config error https://our.umbraco.org/projects/starter-kits/articulate/discussions/84745-cannot-deploy-to-azure-articulate-webconfig-error https://our.umbraco.org/projects/starter-kits/articulate/discussions/84745-cannot-deploy-to-azure-articulate-webconfig-error Hello,

I have an Umbraco + Articulate website which runs totally fine on my dev machine. When I try to deploy to Azure via Web Deploy, I am getting below build error in my VS:

Could not open Source file: Could not find a part of the path 'D:\Path_To_Website\App_Plugins\Articulate\Views\Web.config;\App_Plugins\Articulate\Views\Web.config'

I can assure that I can access web.config location in specified location. Do I need to enable any settings in config files to do Web Deploy to Azure.

Thanks.

]]>
Abilash Ashok Wed, 22 Mar 2017 07:22:57 +00:00
Articulate - Show all blog posts https://our.umbraco.org/forum/using-umbraco-and-getting-started/84732-add-pager-to-recentcshtml-view-in-articulate https://our.umbraco.org/forum/using-umbraco-and-getting-started/84732-add-pager-to-recentcshtml-view-in-articulate How would you show all blog posts on the main page of the blog? I was thinking something like adding the partial pager model to the recent.cshtml in Articulate, but I am having trouble doing this.

I have the pager working with search results, but I can't get it to work with recent.cshtml. If you have 30 results, then say, after 10, then you'd have 3 pages.

Essentially I am looking to make my Recent.cshtml page to show all blog posts with the addition of the pager, and be the default page that users land on when they go to the blog link.

My List.cshtml looks like this:

@using Articulate
@using Articulate.Models
@using ClientDependency.Core.Mvc
@using Umbraco.Core
@using Umbraco.Web
@using Umbraco.Web.Models
@inherits UmbracoViewPage<ListModel>
@{
Layout = "Master.cshtml";
}

@*Render different content if it's the homepage*@
@if (Model.DocumentTypeAlias == "ArticulateArchive")
{

@Html.ThemedPartial(Model, "Recent")

}
else
{

if (!Model.Children.Any())
{

    if (!Request.QueryString["term"].IsNullOrWhiteSpace())
    {

        <!-- Left Sidebar -->
        <div class="col-md-9 md-margin-bottom-40">
            <!--Blog Post-->
            <div class="blog margin-bottom-40">
                @*<h2>Search Results</h2><br /><br />*@

                <p class="lead">No articles found for search term <strong>@Request.QueryString["term"]</strong>.</p>

            </div>
            <!--End Blog Post-->
            <hr>

        </div>
        <!-- End Left Sidebar -->
    }

}
else
{
    if (Request.QueryString["term"] == "")
    {

        <!-- Left Sidebar -->
        <div class="col-md-9 md-margin-bottom-40">
            <!--Blog Post-->
            <div class="blog margin-bottom-40">
                @*<h2>Search Results</h2><br /><br />*@

                <p class="lead">Please enter search criteria.</p>

            </div>
            <!--End Blog Post-->
            <hr>

        </div>
        <!-- End Left Sidebar -->
    }
    else
    {
        <!-- Left Sidebar -->
        <div class="col-md-9 md-margin-bottom-40">

                @{     


                var categoryPath = "/articles/categories/";
                var tagPath = "/articles/tags/";


                }

                @if (Model.Pages.TotalPages > 1)
                {

                    if (!Request.QueryString["term"].IsNullOrWhiteSpace())
                    {
                        <p class="lead">Your search for <strong>@Request.QueryString["term"]</strong> matched <strong>@Model.Pages.TotalPages</strong> results.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }

                    else if (Request.Path.Contains(categoryPath))
                    {
                        <p class="lead">Your search for <strong>@Request.Path.Remove(0, 21)</strong> matched <strong>@Model.Pages.TotalPages</strong> results.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }

                    else if (Request.Path.Contains(tagPath))
                    {
                        <p class="lead">Your search for <strong>@Request.Path.Remove(0, 15)</strong> matched <strong>@Model.Pages.TotalPages</strong> results.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }

                }
                else
                {
                    if (!Request.QueryString["term"].IsNullOrWhiteSpace())
                    {
                        <p class="lead">Your search for <strong>@Request.QueryString["term"]</strong> matched <strong>@Model.Pages.TotalPages</strong> result.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }

                    else if (Request.Path.Contains(categoryPath))
                    {
                        <p class="lead">Your search for <strong>@Request.Path.Remove(0, 21)</strong> matched <strong>@Model.Pages.TotalPages</strong> result.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }

                    else if (Request.Path.Contains(tagPath))
                    {
                        <p class="lead">Your search for <strong>@Request.Path.Remove(0, 15)</strong> matched <strong>@Model.Pages.TotalPages</strong> result.</p>
                        <p class="lead">Showing results <strong>@Model.Pages.TotalPages</strong> to <strong>@Model.Pages.TotalPages</strong>.</p>
                    }
                }

                @foreach (var post in Model.Children<PostModel>
                                            ())
                {
                    @Html.ThemedPartial(Model, "PostSearch", post, new ViewDataDictionary { { "IsListView", true } })<br /><br />
                }



                @Html.ThemedPartial(Model, "Pager", Model.Pages)



        </div>
        <!-- End Left Sidebar -->

                            }

                        }

                    }
]]>
Bobi Tue, 21 Mar 2017 19:39:54 +00:00
404 errors on some pages using https https://our.umbraco.org/forum/using-umbraco-and-getting-started/84729-404-errors-on-some-pages-using-https https://our.umbraco.org/forum/using-umbraco-and-getting-started/84729-404-errors-on-some-pages-using-https I am testing our new site on https, and find that certain pages occasionally show as 404 not found. It only happens for some pages, and sometimes I get the correct page and sometimes I get the 404 page. If I disable https the pages all work again, but we want production to be using https.

Enabling Failed request logging in IIS I get the following:

AspNetPipeLineEnter
Umbraco.Web.UmbracoModule

URL CHANGED
OldUrl /search?query=rome
NewUrl /umbraco/RenderMvc?query=rome


URL CHANGED
OldUrl /umbraco/RenderMvc?query=rome
NewUrl /search?query=rome

MODULESETRESPONSEERRORSTATUS

ModuleName: UmbracoModule 
Notification: 8 
HttpStatus: 404 
HttpReason: Not Found 
HttpSubStatus: 0 
ErrorCode: 0 
ConfigExceptionInfo
Notification: RESOLVE_REQUEST_CACHE
ErrorCode: The operation completed successfully. (0x0)

any idea on how to investigate this issue further, or suggestions on possible cause, as I am a bit stuck

]]>
andrew darby Tue, 21 Mar 2017 18:25:42 +00:00
Umbraco forms https://our.umbraco.org/forum/umbraco-forms/84712-umbraco-forms https://our.umbraco.org/forum/umbraco-forms/84712-umbraco-forms IS anyone out there having issues with the latest version of forms exporting to excel??

]]>
Tom Abel Tue, 21 Mar 2017 13:21:47 +00:00
Umbraco 7.6 feedback https://our.umbraco.org/forum/contributing-to-umbraco-cms/84681-umbraco-76-feedback https://our.umbraco.org/forum/contributing-to-umbraco-cms/84681-umbraco-76-feedback Hi Everyone!

As you might have noticed, we've released the beta of Umbraco 7.6 - full details here. We'd love feedback and the more we get the faster it'll go from Beta to Release.

For general feedback use this forum post, but for specific bug reports, please use the issue tracker.

]]>
Niels Hartvig Mon, 20 Mar 2017 12:27:55 +00:00
Datetime pickers not working in Contour https://our.umbraco.org/forum/umbraco-forms/84655-datetime-pickers-not-working-in-contour https://our.umbraco.org/forum/umbraco-forms/84655-datetime-pickers-not-working-in-contour Hi all,

We've just spotted an oddity using UF in Umbraco 7.2.1 - while we have the option to include a "Datepicker" type field, a blank text field is saved in all cases for this field type.

The date picker itself works on the front end, and I can choose a date. I separately tried injecting the val into the element before submitting the form in case this was more of a UI Javascript problem than a back end one.

In all cases no field is saved (and in Entries I see an empty field - also the email has all fields except these).

Any suggestions gratefully received,

]]>
Roger Davies Fri, 17 Mar 2017 14:48:14 +00:00
Umbraco downgrade https://our.umbraco.org/forum/using-umbraco-and-getting-started/84637-umbraco-downgrade https://our.umbraco.org/forum/using-umbraco-and-getting-started/84637-umbraco-downgrade Hi guys,

Regarding performance issue I would like to downgrade our Umbraco to previous stable.

Spikes after upgrade: enter image description here

Query which cause this:

(@0 int)Select mandatory as mandatory, dataTypeId as dataTypeId, propertyTypeGroupId as propertyTypeGroupId, contentTypeId as contentTypeId, sortOrder as sortOrder, alias as alias, name as name, validationRegExp as validationRegExp, description as description from cmsPropertyType where id=@0

Is it possible to downgrade Umbraco from 7.5.11 to 7.5.7? I want to be sure that db changes was rolled back also.

What is a process of this downgrading?

Thanks, Mike

]]>
Michael Fri, 17 Mar 2017 03:25:32 +00:00
Inserting Video Banners in Umbraco https://our.umbraco.org/forum/using-umbraco-and-getting-started/84626-inserting-video-banners-in-umbraco https://our.umbraco.org/forum/using-umbraco-and-getting-started/84626-inserting-video-banners-in-umbraco Hello I am new to Umbraco and this forum. I am building a site using banner full width images at the top of many pages, one of these I would like to be video (mp4). I have tried all the methods I can think of with no luck. The video appears as a question mark on the page, if you click and open in a new window, the video plays outside of Umbraco.

I don't want to embed from YouTube which is possible as I don't want any interaction between the video and YouTube, links etc.

Does anyone know how to achieve this and provide help please?

]]>
Robert wood Thu, 16 Mar 2017 15:34:05 +00:00
Need to add RTE in-between Questions https://our.umbraco.org/forum/umbraco-forms/83659-need-to-add-rte-in-between-questions https://our.umbraco.org/forum/umbraco-forms/83659-need-to-add-rte-in-between-questions Hi, I need to give form administrators the ability to edit an RTE in-between questions in the form creation setup.

The reason an RTE is needed it to add content such as terms & conditions and instructions prior to a question or questions.

The current question setup doesn't allow for styled text. It would be great if this could be an option like "Add Text" rather than "Add Question".

Has anyone managed to do this or something similar?

]]>
Bezmundo Tue, 31 Jan 2017 17:21:20 +00:00
Property label dictionary not working https://our.umbraco.org/forum/using-umbraco-and-getting-started/82159-property-label-dictionary-not-working https://our.umbraco.org/forum/using-umbraco-and-getting-started/82159-property-label-dictionary-not-working Hi,

Here is my document type property names, prefixed with # http://i.imgur.com/NVChc8g.png

While this is my dictionary http://i.imgur.com/xHhAO0E.png

And here is my content still not updated http://i.imgur.com/4OPTw1m.png

I cleared cache, restart all but still dictionary not working, I am expecting the "Site" as "site xxx" but did not work.

Please advise

]]>
Jorge Thu, 05 Jan 2017 17:06:41 +00:00
File upload in backoffice custom section https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/81065-file-upload-in-backoffice-custom-section https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/81065-file-upload-in-backoffice-custom-section While trying to implement a file upload form in a backoffice custom section, I stumbled onto quite a few obstacles and outdated/incorrect information in various forums (not only in Our;-) So, after I finally got it to work, I thought I'd share my solution and code here for anyone else interested.

First of all, you need to have your backoffice custom section up and running. There's a good article about how to do one here. From here, I will assume that you have one called "MySection".

The next thing you'll need is the ng-file-upload AngularJS directive from danialfarid. If you're in Visual Studio, there's a NuGet package called "angular-file-upload" which will install the .js files. Otherwise, get them from GitHub here. Ensure that you have the ng-file-upload-all.js file in your ~/Scripts folder.

ng-file-upload has a lot of functionality (drag-drop, etc.), some of which I may explore later, but for now I opted for a very simple file input control and an upload button. So in your edit.html markup for your custom section something like this:

                <div class="umb-pane">


                <umb-control-group label="File" description="File to upload">
                    <input type="file" class="umb-editor umb-textstring" ngf-select="" ng-model="files" ng-multiple="false" ngf-change="fileSelected(files)" required />
                </umb-control-group>

                <div class="umb-tab-buttons" detect-fold>
                    <div class="btn-group">
                        <button type="button" data-hotkey="ctrl+s" class="btn btn-success" ng-click="uploadFile()">
                            Upload
                        </button>
                    </div>
                </div>
            </div>

Note the use of the ng- and ngf- attributes. When you select a file (only one in my case), fileSelected(files) is called to store the local path and filename in the $scope. So that when the Upload button is clicked, and fileUpload() is called, it knows what file(s) to upload. I chose to put these two in the edit.controller.js for my section, so add this code:

    $scope.fileSelected = function (files) {
        // In this case, files is just a single path/filename
        $scope.file = files;
    };

    $scope.uploadFile = function () {
        if (!$scope.isUploading) {
            if ($scope.file) {
                $scope.isUploading = true;
                fileUploadService.uploadFileToServer($scope.file)
                    .then(function (response) {
                        if (response) {
                            notificationsService.success("Success", "Saved to server with the filename " + response);
                        }
                        $scope.isUploading = false;
                    }, function (reason) {
                    notificationsService.error("Error", "File import failed: " + reason.message);
                    $scope.isUploading = false;
                });
            } else {
                notificationsService.error("Error", "You must select a file to upload");
                $scope.isUploading = false;
            }
        }
    };

    $scope.file = false;
    $scope.isUploading = false;

Now we need the fileUploadService, which I chose to put in a separate file called file.upload.api.service.js:

angular.module("umbraco.resources")
.factory("fileUploadService", function ($http) {
    return {
        uploadFileToServer: function (file) {
            var request = {
                file: file
            };
            return $http({
                method: 'POST',
                url: "backoffice/MySection/MySectionApi/UploadFileToServer",
                headers: { 'Content-Type': undefined },
                transformRequest: function (data) {
                    var formData = new FormData();
                    formData.append("file", data.file);
                    return formData;
                },
                data: request
            }).then(function (response) {
                if (response) {
                    var fileName = response.data;
                    return fileName;
                } else {
                    return false;
                }
            });
        }
    };
});

To make sure the ng-file-upload-all.js and file.upload.api.service.js are loaded, we need to list them in the package.manifest for our section:

{
javascript: [
    '~/App_Plugins/MySection/backoffice/mySectionTree/edit.controller.js',
    '~/App_Plugins/MySection/mySection.resource.js',
    '~/App_Plugins/MySection/file.upload.api.service.js',
    '~/Scripts/ng-file-upload-all.js'
]}

Next thing is to implement the actual uploading. I put it in my api controller for the section, i.e. MySectionApiController.cs. Add the following method to your MySectionApiController class:

    public async Task<HttpResponseMessage> UploadFileToServer()
    {
        if (!Request.Content.IsMimeMultipartContent())
        {
            throw new HttpResponseException(HttpStatusCode.UnsupportedMediaType);
        }

        string uploadFolder = HttpContext.Current.Server.MapPath("~/App_Data/FileUploads");
        Directory.CreateDirectory(uploadFolder);
        var provider = new CustomMultipartFormDataStreamProvider(uploadFolder);
        var result = await Request.Content.ReadAsMultipartAsync(provider);
        var fileName = result.FileData.First().LocalFileName;
        HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);
        response.Content = new StringContent(fileName);
        return response;
    }

To override the generated filename, I also added this class (yes, I know this may have a security impact):

public class CustomMultipartFormDataStreamProvider : MultipartFormDataStreamProvider
{
    public CustomMultipartFormDataStreamProvider(string path) : base(path) { }

    public override string GetLocalFileName(HttpContentHeaders headers)
    {
        return headers.ContentDisposition.FileName.Replace("\"", string.Empty);
    }
}

And that's about it! (Hope I didn't forget anything. If someone tests it and finds that I did, please don't hesitate to let me know!)

]]>
Bendik Engebretsen Wed, 02 Nov 2016 20:41:02 +00:00
Custom prices and custom price calculations depending of login member https://our.umbraco.org/projects/collaboration/merchello/merchello/80114-custom-prices-and-custom-price-calculations-depending-of-login-member https://our.umbraco.org/projects/collaboration/merchello/merchello/80114-custom-prices-and-custom-price-calculations-depending-of-login-member Hi,

Is there any possibility that to show special prices for a different login member on the site?

Is there any possibility that to make custom calculation price workflow, in order to calculate total price differently depending of login member?

]]>
Srdjan Milic Mon, 19 Sep 2016 09:52:35 +00:00
Articulate won't load on local IIS (vs Azure) https://our.umbraco.org/projects/starter-kits/articulate/discussions/75545-articulate-wont-load-on-local-iis-vs-azure https://our.umbraco.org/projects/starter-kits/articulate/discussions/75545-articulate-wont-load-on-local-iis-vs-azure I am absolutely going bonkers here. I hope someone can help me out with this. I like to figure stuff out on my own... but this time I think I need some assistance.

Over the last few months I've been setting up a multi-tenant Umbraco installation on Azure. The first site is up and running, everything peachy.

I recently started development using IIS Local (so I could mimic multiple domains). I'm using 2 hostnames per site (sitename.int and the real domain name) and registered the local domain in my hosts file, added the local hostname to the Culture section, which already included the live domain name). So far so good, Local works, Azure works.

But whenever I hit the blog page on the local dev-domain (Articulate is located 1 level down) I see the following error:

Page not found    
No template exists to render the document at url '/city-blog/'.
In addition, no template exists to render the custom 404.
This page can be replaced with a custom 404. Check the documentation for "custom 404".

This page is intentionally left ugly ;-)

In addition I've upgraded to Umbraco 7.4.1 last week. because before launch we discovered the 301 URL tracker was broken on 7.3.x. and we chose to use the 7.4.0 Beta.

I've already created a new project, clean install with 7.4.1 and Articulate and that works. So it's not incompatibility between the two.

Deploying to Azure works, I can load up the blog from there. Every other page works too on localhost, except Articulate.

How can I best debug this? I've changed a lot of variables in the equation over the last period.

Sorry if my post is a bit fuzzy... I'm just a lowly UX Designer who tries to code :P

]]>
Martijn Duizendstra Wed, 02 Mar 2016 10:50:43 +00:00
Package actions https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/72687-package-actions https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/72687-package-actions Is there any decent documentation regarding package actions anywhere? Most of the the documentation and articles that I've found are either out of date or link to sites that don't exist anymore!

]]>
Patrick Robin Wed, 04 Nov 2015 16:31:54 +00:00
Disabling access to umbraco backoffice https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72207-disabling-access-to-umbraco-backoffice https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72207-disabling-access-to-umbraco-backoffice Hey all,

Is it possible to disable access to umbraco's backoffice while leaving all the surface and api contorllers working? What would be the correct way to achieve this?

I have 2 copies of the same solution running on the IIS in different websites. One is used as "backend", the other - "frontend". I would like to restrict the access to "frontend"'s /umbraco url aka backoffice.

Umbraco 7.2.6

]]>
Vaidas Fri, 16 Oct 2015 09:22:36 +00:00
How to crop images within Grid Layout https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/63252-How-to-crop-images-within-Grid-Layout https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/63252-How-to-crop-images-within-Grid-Layout Hi, does anyone have any thoughts on how you could use the image processor within the grid layout?

Looking at the View/Partials/Grid/Editors it appears like there could be an option? 

My only way around this would be to create different Editors for each image size variation.

]]>
John Churchley Tue, 17 Mar 2015 16:32:49 +00:00
Can't reload AngularJS Controller for custom data type https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/49003-Cant-reload-AngularJS-Controller-for-custom-data-type https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/49003-Cant-reload-AngularJS-Controller-for-custom-data-type I'm relatively new to AngularJS and I'm trying to make a simple extension to Umbraco 7.0.4 by creating a custom data type.

I've followed this guide: http://umbraco.github.io/Belle/#/tutorials/CreatingAPropertyEditor and have made a simple datatype.

The problem I'm having is that Umbraco doesn't seem to reload my controller.js script for ny custom datatype. It loads once (initially), however any changes I make to the script from then on aren't applied - it's as if the script isn't updated within Umbraco following the first time the plugin/datatype is seen by Umbraco.

I've tried recycling the app pool, resetting the application, resetting the server, publishing the website, etc, etc, and nothing seems to work.

Please help me!! :-)

]]>
Dacre Mon, 10 Mar 2014 11:45:22 +00:00
Custom Context Menu Items https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/48894-Custom-Context-Menu-Items https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/48894-Custom-Context-Menu-Items I'm trying to implement a custom context menu item in my Umbraco 7 site.  A brief overview of the site:

I have a multi-lingual site, which is currently setup with two Languages - English and Welsh.  I've created an event using ContentService_Published, where if Content is created on the English site it is automatically copied across to the Welsh site on publish.  This works perfectly well.  So what I'm trying to implement now is a context menu item on each node "Go to related" which when clicked will take the user to the related node.

e.g. If I'm viewing the "Home" node on the English site, click the "Go to related" menu item - Umbraco then displays the "Home" node on the Welsh site.  

So far I've managed to do this:

void ContentTreeController_MenuRendering(Umbraco.Web.Trees.TreeControllerBase sender, Umbraco.Web.Trees.MenuRenderingEventArgs e)
{
if (sender.TreeAlias == "content")
{
var rs = ApplicationContext.Current.Services.RelationService;
                if (rs.GetByParentOrChildId(Convert.ToInt16(e.NodeId)).Where(x => x.RelationType.Alias == "relateDocumentOnCopy").Any())
{
var relation = rs.GetByParentOrChildId(Convert.ToInt16(e.NodeId)).Where(x => x.RelationType.Alias == "relateDocumentOnCopy").FirstOrDefault();

int relatedNodeID = (Convert.ToInt16(e.NodeId) == relation.ParentId ? relation.ChildId : relation.ParentId);
//creates a menu action that will open /umbraco/currentSection/goToRelated.html
var i = new Umbraco.Web.Models.Trees.MenuItem("goToRelated", "Go To Related : " + relatedNodeID.ToString());
i.Icon = "wine-glass";
i.SeperatorBefore = true;
e.Menu.Items.Insert(e.Menu.Items.Count - 1, i);
}
}
}

This creates the menu item, and I get the related Page ID displayed as the title of the menu item (as a test so that I'm sure I can get the ID of the related page) ....

  • But how to I redirect to the related page after the item has been clicked?  
  • Do I need a view, as I don't really want to display anything just redirect?  
  • Can I just execute code of a controller?  
Any help would be greatly appreciated :)

]]>
Hefin Jones Wed, 05 Mar 2014 17:57:14 +00:00
Calling stored proc with DatabaseContext in the REST API https://our.umbraco.org/forum/developers/api-questions/45610-Calling-stored-proc-with-DatabaseContext-in-the-REST-API https://our.umbraco.org/forum/developers/api-questions/45610-Calling-stored-proc-with-DatabaseContext-in-the-REST-API  

Hi

How can I call a store proc using the DatabaseContext exposed in the Rest API?

ex.

exec EventsByYear @year

returning List<EventInfo>()

]]>
Paul Sørensen Mon, 21 Oct 2013 17:52:35 +00:00