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

Sending a different confirmation email to the admin

$
0
0

Hi there, could you please advise how to send a second "Order Confirmation" email to an administrator?

I've created a second template and duplicated orderConfirmation as a base (new one is adminOrderConfirmation) - with the only change being the subject line at this stage, yet only orderConfirmation is being sent/received.

Is there something I've missed with this process above, or will I need to implement a pipeline to handle this? And if so, how would I go about picking up a different template file?

Thanks again, Warren


Is this possible to do parsing a Word or PDF document?

$
0
0

Hello,

I am not sure Is this possible or not but want to know If it is possible or not but I would ask. I have a word document and I would like to parse and save the content into specific fields.

The word document has 5 sections like Shift, Descriptions, Requirements, Location and Apply info and I would want to content to be mapped automatically to the respective fields when I upload the file. Any help would be appreciated.

Umbraco Forms formId in a display:none div

$
0
0

I am currently utilizing Silktide to resolve any accessibility, content, and user experience issues on a website. Silktide has flagged an issue with the Umbraco Forms markup, specifically the input field that replaces the dashes in the username.

<div style="display: none">
    <input type="text" name="@Model.FormId.ToString().Replace("-", "")" />
</div>

The input field appears to be hidden with an inline style, and I am curious to understand the reasoning behind this decision. Can anyone provide some insight?

Delivery Api Protected: access with access token. How to configure U13?

$
0
0

Hi,

I create a NextJS application with AzureB2C authentication and I create some Umbraco API controllers authorized by the Azure access token. All works. The conntent is protected by group. I wish to use the Delivery Api with the same schema that is the member is authenticated by Azure B2C and then it read the protected content node by group with the access token. How to? I don't see any docs. Thanks.

How to use React into Backend UI/Plugin ?

$
0
0

How to use React into Backend UI / Plugin of Umbraco 13+? Thanks.

[Umbraco 10] Getting edited value before saving

$
0
0

Hello. I am building a "terms of use" page using Umbraco 10 and I have 2 properties: Description and Version. I want to write the following verification: if someone has changed the Description then he should raise the version by atleast 1.

So I have a verification handler, whenever someone is pressing "save" I will go through all the properties and check that all of them are valid.

When I'm trying to validate the TermsOfUse page I'm not getting the old value of the property I have changed, just the new one. This is my code:

IContent termsOfUsePage = ContentService.GetRootContent().FirstOrDefault(x => x.Name == "TermsOfUse");
var currentDescriptions = termsOfUsePage.Properties.FirstOrDefault(n => n.Alias == "Description").Values.ToArray();
var currentVersions = termsOfUsePage.Properties.FirstOrDefault(n => n.Alias == "version").Values.ToArray();

var version = currentVersions.Where(p => p.Culture == culture).FirstOrDefault();
var description = currentDescriptions.Where(p => p.Culture == culture).FirstOrDefault();
if(description != null && version != null)
{

    if (description.PublishedValue.ToString() != description.EditedValue.ToString())
    {
        if (int.Parse(version.EditedValue.ToString()) <= int.Parse(version.PublishedValue.ToString()))
        {
            throw new Exception("Can't change description and keep old version! ");
        }
    }
}

What am I doing wrong? How can I get both old version/description and new version/description?

Thanks in advance!

Integrate Azure Blob Storage using Managed Identity

$
0
0

Hi All,

Can anybody guide me how we can Integrate Azure Blob Storage & Azure Database using Azure Managed Identity. I'm using Umbraco 13.

how we should define the connections string and what code we should write in program.cs.

Quick response will be greatly appreciated !!

Umbraco 13 Content Delivery API

$
0
0

Hi, I have question in Umbraco 13 Content Delivery API, Do we need to run Content Delivery API Build Index in Examine Management after enable Content Delivery API? Is this mandatory?


Accessing image cropper in Master Page

$
0
0

Hi all, I'm having some issues with a problem that sounds like it should be relatively simple. All my templates have an optional Image Cropper property with which the editor can select an image to use as a banner when desired. Currently this is implemented on one of my templates in the following way:

@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.Vacature>
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@using Umbraco.Extensions;
@{
    Layout = "MasterPage.cshtml";
     if(Model.BannerFoto is not null){
        var banner = Url.GetCropUrl(Model.BannerFoto,"Banner");
        <section>
            <div class="jumbotron jumbotron-fluid jumbotron-fluid-empty-banner mt-0 mb-0" style="background-image:url(@banner)">
            </div>
        </section>
    } else {
    } 
}

Copying this same code to the master page results in the following error:

'IPublishedContent' does not contain a definition for 'BannerFoto' and no accessible extension method 'BannerFoto' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?)

What's causing this? I am using the same usings in both pages and I'm not sure what I'm doing wrong. Here are the usings in the master page:

@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@using Umbraco.Extensions;
@{
    Layout = null;
}

Any help would be much appreciated.

Unauthorized Access to URL PostSave

$
0
0

Hey,

I have a user type with create permission but upon hitting Save and Send for approval it gives the error:

Authorization error: Unauthorized access to URL: /umbraco/backoffice/UmbracoApi/Content/PostSave

I've found http://issues.umbraco.org/issue/U4-6973 but haven't found any confirmation that this is the same or a related issue.

Currently using version 7.2.8.

Thanks

Jason

Getting maxClauseCount is set to 1024 Error for Umbraco.ContentQuery.Search(@text, null)

$
0
0

Hi Team,

I'm getting below issue while using Umbraco.ContentQuery.Search(@query, null).

Please suggest how to resolve.

Umbraco Search error

$
0
0

Dear Umbraco Team

Im using Umbraco 8 search out of the box simple search box and results page no custom code for indexers.

Im getting a Lucene.Net.Search.BooleanQuery+TooManyClauses: maxClauseCount is set to 1024 error in log viewer.

Google search says i can increase SetMaxClauseCount to 2048, how can i do that in Umbraco 8 ?

Dibs

Exception Details: Lucene.Net.Search.BooleanQuery

$
0
0

I would like to reopen an old thread that comes up several times on the forum, in case someone already has a solution.

Exception Details: Lucene.Net.Search.BooleanQuery+TooManyClauses: maxClauseCount is set to 1024

So, we have a website in V12 that isn't even that extensive. In V7, we have quite a few web pages that are much larger than this (we're talking about the number of different fields within documentType) and we have a similar built-in basic external index search and there are no such problems. There is a solution described online to increase maxClauseCount, but the Lucene.net namespace in V12 does not offer me the SetMaxClauseCount option.

So if the default value is 1024 and I now have 1500 fields, how would I increase it by say 2x in my code, to have 2048 fields available.

There is a proposal on the net @using Lucene.Net.Search; @BooleanQuery.SetMaxClauseCount(2048);

but I can't reach the SetMaxClauseCount method...

Regards

The Scope being disposed is not the Ambient Scope

$
0
0

Hello,

I am on Umbraco v12.1.1 I am trying to create content programmatically, I was able to do it for one culture but I would also like to create the same content for all cultures (for now)

Please keep in mind I have no Tasks or Async code, this is all synchronous

The behaviour is unexpected, it usually breaks for the 2nd culture and 50% of the documents.

Code snippet

private IContent? AddOrUpdateCategoryNode(CategoryDto category, IContent parentNode, string brandDocId)
{
    try
    {
        IContent? newNode = _contentService.Create(category.Name, parentNode.Id, Application.ModelTypeAlias);
        string imagesBlock = string.Empty;
        imagesBlock = BlockListFactory.Create(_contentTypeService, category.Images, image => new Dictionary<string, string>() {
                {"imageUrl", image.Url},
                {"imageAltText", image.Alt}
        }, ProductImageItem.ModelTypeAlias).ToString();

        foreach (var culture in cultures)
        {
            newNode.SetCultureName(category.Name, culture);

            newNode.SetValue("brands", string.Join(",", brandDocId), culture);
            if (!string.IsNullOrEmpty(imagesBlock)) newNode.SetValue("images", imagesBlock.ToString(), culture);

            _contentService.SaveAndPublish(newNode,culture);
        }

        return newNode;
    }
    catch (Exception ex)
    {
        _logger.LogError(ex, $"Error while creating node for category {category.Name}.");
        return null;
    }
}

It breaks when it hits SaveAndPublish()

Exception trace

{"The Scope 5f2261f0-8e97-4e8c-a540-0d69949895e8 being disposed is not the Ambient Scope 477ed48a-1c75-4be4-b607-7b9f5d020aea. This typically indicates that a child Scope was not disposed, or flowed to a child thread that was not awaited, or concurrent threads are accessing the same Scope (Ambient context) which is not supported. If using Task.Run (or similar) as a fire and forget tasks or to run threads in parallel you must suppress execution context flow with ExecutionContext.SuppressFlow() and ExecutionContext.RestoreFlow()."}

What I have tried:

  1. Creating a scope using both IScopeProvider and ICoreScopeProvider (and placing it inside the foreach, outside the foreach as well as outside the whole function)
  2. Using ExecutionContext.SuppressFlow(), this just results in freezing SaveAndPublish() - I have also tried placing it everywhere, no luck
  3. Setting the values then using SaveAndPublish() with a wildcard culture
  4. Not setting the culture name

I have tried many more things but no luck, couldn't find much information on it. Am I setting the values for multiculture incorrectly or is it a bug?

Logging custom directory path which is outside of the webroot not working

$
0
0

Hi Umbracians,

I am trying to provide a custom directory path which is outside of the webroot, lets say shared drive, like stated here https://docs.umbraco.com/umbraco-cms/reference/configuration/loggingsettings, but still umbraco writes and read from the old path, what am i missing here?

Actually I need to setup failover with 3 node clustering (Just failover not loadbalncing), And, I need to centralise the logging on a shared drive, for media it is working perfectly fine, but for logging with below settings seems not working, do you have any idea?

"Logging": {
"MaxLogAge": "2.00:00:00",
"Directory": "C:/Work/POC/Test/Shared/umbraco/Logs"
},

Invalid column name 'Id'.

$
0
0

All, I could use some help on an issue I've run across: on Umbraco 8.18.9 with SQL Server 2022, when going to the Rollback screen of any document I see the error Invalid column name 'Id'

enter image description here

It looks like this has been an issue on the forum a few times in the past, yet I haven't run across a solution, so I'm hoping someone has solved it since. A couple of the previous forum items are:

https://our.umbraco.com/forum/using-umbraco-and-getting-started/99590-invalid-column-name-id-invalid-column-name-id

and

https://our.umbraco.com/forum/using-umbraco-and-getting-started/111984-issue-with-rollback-on-umbraco-8-after-move-from-azure

Any and all help is greatly appreciated and let me know if I can provide more details,

Drew

Rewrite rules

$
0
0

Hi,

I created a web.config file on root of the project and then wrote the rewrite rules in a local clone. After I push it to live environment it does not reflect the rules written.

My web.config file is:

web.config

web.config

Problem is: When I search for xyz.nl it should redirect to https://www.xyz.nl, but it does not redirect.

License Expired Umbraco Forms

$
0
0

Is there anyone who has an idea why we are getting a license expired message for Umbraco Forms on our live domain, while the testing domain is working fine? Both use the same .lic file.

enter image description here

We use below setup for our umbraco license.

{ "Umbraco": { "Licensing": { "Directory": "~/custom-licenses-folder/" } } }

SettingUp umbraco on IIS with http port

$
0
0

Hi All ,

I am using umbraco 13 in aspnet core application , I hosted my project in stage server on IIS where i have assigned IP with http port and with loadbalancer it has to redirect to https , I get an error: Boot failed - Failed to determine the https port for redirect. Can we setup umbraco with Http and how can i fix this

Umbraco 13.3.0 - URLs generated are non-https

$
0
0

Hi all,

I noticed that when running local (development mode). The url of nodes (or media items) generated http or https based on the url. For example:

enter image description here

enter image description here

This is also same when doing content.Url(mode: UrlMode.Absolute) in razor view page

But when the site hosted. If we access url with https the URLs generated are non-https.

Is that because my any mistake?

Thanks for any help!

Viewing all 72689 articles
Browse latest View live


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