Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

Umbraco.CheckBoxList Prevalues commas break strings or remove part of string

$
0
0

Hej there,

I having issue with prevalues when using Umbraco.CheckBoxList data type. If my prevalue is a string containing commas "," it breaks the string into different line and comma is remove.

enter image description here enter image description here

Sounds like there is split being done. Is there a way to resolve this issue am using Umbraco version 7.6.3 assembly: 1.0.6361.21154 Thank you for your kind reply


Recursive Linq? Return all pages that contain a querystring parameter

$
0
0

Hi,

I'm trying to pull back all the pages on my site that have a specific ID set in the package Utaxonomy and whilst I can get pages that have a tag easily, bringin back pages that contain parent tags is proving more challenging.

In the below, QS is the GUID set within uTaxonomy.

var AllPagesWithTags = Model.Content.Children.Where(x => x.IsVisible() && (x.GetPropertyValue<List<Taxonomy>>("category")
                                       .Select(y => y.Id.ToString()).ToList().Contains(qsCategory)
                                       ||
                                       x.GetPropertyValue<List<Taxonomy>>("category")
                                       .Select(y => y.Parent != null ? y.Parent.Id.ToString() : null).ToList().Contains(qsCategory))
                                       );

Is there a way to write the above so it checks the parent, parents parent, parents parents parent etc, recursively so I can increase the number of taxonomy levels without having to amend the code?

CreateMedia MemoryStream

$
0
0

mediaImage.SetValue("umbracoFile", stream); ms.Save(mediaImage);

Unfortunately, saving images with the SetValue("umbracoFile", stream ) does not work? Do anyone have an idea, why not?

Cannot pick .xslt file from Umbraco Form

$
0
0

Hey there,

I'm having an issue on Umbraco Form v8.0 when using the option "Send xslt transformed email" from the workflows.

When picking the .xslt it says you have unsaved changes and redirects to the content folder without any option of picking the .xslt from my media folder.

Any ideas why it's not working in v8 ? Thanks so much in adv.

bacpak error when trying to load into sql

$
0
0

HI,

I need to get a .bacpak Azure file to import into an SQL database. Ive logged into the cloud database and exported the db which exports to a bacpak file. On trying to import-data tier application im getting an error and I cant import the db correctly. Anyone run into this issue and got a solution?

Warning SQL72012: The object [test12Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box. Warning SQL72012: The object [test12Log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box. Error SQL72014: .Net SqlClient Data Provider: Msg 12824, Level 16, State 1, Line 5 The spconfigure value 'contained database authentication' must be set to 1 in order to alter a contained database. You may need to use RECONFIGURE to set the valuein_use. Error SQL72045: Script execution error. The executed script: IF EXISTS (SELECT 1 FROM [master].[dbo].[sysdatabases] WHERE [name] = N'$(DatabaseName)') BEGIN ALTER DATABASE [$(DatabaseName)] SET CONTAINMENT = PARTIAL WITH ROLLBACK IMMEDIATE; END

Error SQL72014: .Net SqlClient Data Provider: Msg 5069, Level 16, State 1, Line 5 ALTER DATABASE statement failed. Error SQL72045: Script execution error. The executed script: IF EXISTS (SELECT 1 FROM [master].[dbo].[sysdatabases] WHERE [name] = N'$(DatabaseName)') BEGIN ALTER DATABASE [$(DatabaseName)] SET CONTAINMENT = PARTIAL WITH ROLLBACK IMMEDIATE; END

After using Models Builder in 8.0.1 and rebuilding, front end errors until clicking 'Reload' in Published status

$
0
0

Hi,

Yes, I keep getting 'Object reference not set to an instance of an object.' when accessing media URLs.

This happens both after using the models builder and then building in Visual Studio, and after a build on Azure.

Clicking 'Reload' in 'Published status' fixes the problem right away, until the next time.

Does anybody have any idea what might be causing the problem?

Thanks.

enter image description here

ApplicationTreeController Error

$
0
0

I'm getting an error in the right sidebar saying:

Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromControllerTree
(ApplicationTree appTree, String id, FormDataCollection formCollection,
HttpControllerContext controllerContext)
       at Umbraco.Web.Trees.ApplicationTreeController.

Umbraco version 7.12.2 Plumber 1.1.6

It basically errors out and doesn't create the options in the left sidebar to configure the approval groups

Any help would be greatly appreciated!

Cloud web config vs normal web config migration issues

$
0
0

Im currently moving an Umbraco site from Umbraco cloud back onto a windows server using IIS and SQL. Im having issue with the migration. Ive got the files set up and the database working in SQL with a new server set up and restored from a .bacpak file, I've put the new server details user name, password ect and Ive set folder rights.

The issue I'm having is that I'm now stuck with a server error 500. If i just put a simple index.html file into the folder then that loads okay.

Im thinking it will be a web.config issue ..... I could be wrong . Does anyone have any experience with this that could help?

Thanks


changing the auto-assigned media folder path

$
0
0

As it is right now, an uploaded image in the /media folder gets assigned an incrementing folder id, so that "myimage.jpg" is formatted into "/media/1001/myimage.jpg". Instead of using the "/1001/", I'd like to use a custom folder path. In backoffice we have /media/images/content, /media/images/products, and media/images/assets. I'd like to be able to have the image path which we've set up in backoffice be refelected elsewhere.

Oh, and we're using Umbraco 7.13.2.

Any help would be grealy appreciated, thanks!

Publish from a Standalone install to a Multisite

$
0
0

Hello.

We recently completed a project for a client to build out a site using Umbraco version 7.13.1. Once we completed the project, the client told us that it needs to be deployed to their multisite environment running Umbraco version 7.1.4. From what I have read, the right tool to use for this is Umbraco Courier that indicates that our standalone version is newer than the support version. Can you tell me if courier is the right tool for our needs? If it doesn't work, is there another way to do this?

Thanks in advance

-Josh

Failed to create an instance of controller type HomeController (see inner exception)

$
0
0

Hi,

I am implementing Autofac for MVC controller, inheriting from RenderMVCController. But I am getting below error. Help on this is greatly appreciated.

======Controller : ======

public class HomeController : RenderMvcController
{
    private readonly IStateRepository _stateRepository;
    public HomeController(StateRepository stateRepository)
    {
       _stateRepository = stateRepository;
    }
    public override ActionResult Index(ContentModel model)
    {
        HomeViewModel homeModel = SetupDataView(model);
        return View(Constants.HomeView, homeModel);
    }
 }

AutoFac Code:

    private static void ConfigureAutoFac(Composition composition)

    {
        var stateRository = new StateRepository();
        var builder = new ContainerBuilder();
        builder.RegisterInstance(new StateRepository()).As<IStateRepository>();
        builder.RegisterType<HomeController>();

  builder.RegisterControllers(Assembly.GetExecutingAssembly()).PropertiesAutowired();

        var container = builder.Build();
        DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

    }

======Error:======

[Exception: Failed to create an instance of controller type MyApplication.HomeController (see inner exception).] Umbraco.Web.Mvc.ContainerControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +141 Umbraco.Web.Mvc.UmbracoControllerFactory.CreateController(RequestContext requestContext, String controllerName) +93 Umbraco.Web.Mvc.RenderControllerFactory.CreateController(RequestContext requestContext, String controllerName) +14 Umbraco.Web.Mvc.MasterControllerFactory.CreateController(RequestContext requestContext, String controllerName) +53 System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +188 System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +50 System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +443 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Path Mapping For Media Uploads

$
0
0

My company is currently using Umbraco 7.13.2, and in Back Office our Media section has the following content tree: /media/images/assets /media/images/content /media/images/products /media/documents /media/files

By default, images uploaded via Back Office are assigned an incrementing folder id, so that "myimage.jpg" is given the path "/media/1001/myimage.jpg".

I would like to be able to make the Back Office folder path match the actual folder path--so, for instance, instead of automatically being assigned to "/media/1001/myimage.jpg" it will instead be assigned to "/media/content/myimage.jpg".

I can't seem to find where the folder value is being set, so even that information alone would be incredibly helpful.

Any help would be grealy appreciated, thanks!

Umbraco error on published files

$
0
0

Hello all,

So I've been working on a website on my local machine, everything is working perfect.

However I've now uploaded it to a VPS and published all the files and now I keep getting the following error;

The model item passed into the dictionary is of type 'Umbraco.Web.Models.RenderModel1[Umbraco.Web.PublishedContentModels.Home]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[Cogworks.Meganav.Models.MeganavItem]'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'Umbraco.Web.Models.RenderModel1[Umbraco.Web.PublishedContentModels.Home]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[Cogworks.Meganav.Models.MeganavItem]'.

Source Error:

Line 32: @{ Line 33: var homeNode = Model.Content.Site().OfType

I'm not sure whats going on as it works fine on my local machine?

Thanks

Will there be a Content edition for Umbraco CMS v8?

$
0
0

Is there an uSync Content edition for CMS v8?

Enable non element types in Nested Content

$
0
0

Hi,

I'm developing a website where I want to use the nested content property to add sections to a page. Some sections will be unique to the page and some will be shared across the site. To add shared content to a list of nested content I would add special doc type with a link to a section node in the tree.

In Umbraco 7 this could be accomplished by making any document types available both in the tree (shared) and in a nested content property. However in version 8, an element type must be created specifically for the Nested content property. This means I would have to create two identical document types to make this work. Obviously this limitation makes the system less flexible.

Any thoughts or background on this limitation would be appreciated, or perhaps a workaround!


Publish and save publishes same content into all languages

$
0
0

Hello!

So I am working with a site that was handed over to me which has several languages installed. Now when I try to publish a banner in content(slick slider) into one language, it is instead published into all my pages with that slider element.

//Edit 1

This seems to only be an issue on this particular slider, as other content remains in the correct language. Editing this sliders template causes the page where the slider is on to crash erratically.

Each 'publish and save' just overwrites all the other languages. I am suspecting this might be some caching issue as this happens for me even when I do not save and just browse the pages.

Am I missing something fundamental about this publish and save functionality? How can I prevent this from happening? How do I clear the cache if I only have access to the editors(no ftp, serverside etc.)?

// Edit 2 I am getting no errors, as the publish is technically working, just ignoring any culture/language I am working with. Culture and domain are set for each language version

Tea Commerce + Sage 50 syncing stock iventory

$
0
0

Has anyone ever integrated Tea Commerce with Sage 50 for stock inventory management?

I have a client that would like the stock levels of products to be synced with their Sage 50 2014 software which is sat on a server.

I've found a few things online to add the data to an MS SQL DB but it's read-only and non-bi directional to sync stock levels back and forth.

Sage seems to push you down the route of using their SDK which is expensive and seems overkill really to just want to sync stock inventory only.

Would be interested to hear if anyone else has come across this? Or have you used a 3rd party system similar to something like Tradebox?

How to upload license file to bin folder?

$
0
0

Hi there, I'm new to Umbraco. Can you please show me how to upload CMS Import license file to bin folder?

thanks, Thanh

Models builder doesn't work

$
0
0

Hi, I'm currently developing a new website where we use models in the views, the code looks something like:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.HomePage>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
    Layout = "Master.cshtml";
}

@Umbraco.RenderMacro("MacroName1")
@Umbraco.RenderMacro("MacroName2")
@Umbraco.RenderMacro("MacroName3")
@Umbraco.RenderMacro("MacroName4")

<script>changeStyle();</script>

The problem is that now, the models builder has stopped working, as in it is just stuck on loading. Recently we switched from SQL compact to a mssql database could that have been what has affected it?

alternative of ezserch in umbraco 8

$
0
0

Can we Used ezSerch in Umbraco 8 (As not showing under package search )?

Or do we have any alternate for full-text search in Umbraco 8

Can we do a Full-Text search / Search content for the node in Umbraco 8?

have found the following post but is using "Umbraco.ContentQuery.Search" but can't figure out how to search content from the respective node.

https://our.umbraco.com/forum/umbraco-8/96004-simple-search-in-v8

Thanks BJ

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>