Route
and HttpPost
attribute. My parameter has the [FromBody]
attribute. When I try to fetch it always gives 400 bad request error
:fetch('route', {
method: 'post',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(
{ parameter }
),
})
I can't seem to get the ReCaptcha tag helper to show up. I added the the nuget PackageReference and added the following to _ViewStart.cshtml
@addTagHelper *, OrchardCore.ReCaptcha
@addTagHelper *, OrchardCore.ReCaptcha.TagHelpers
@addTagHelper *, OrchardCore.ReCaptcha.Core
@addTagHelper *, OrchardCore.ReCaptcha.Core.TagHelpers
Any ideas? I've tried both <recaptcha />
and <captcha />
and neither seems to be found
How do I stop the App_Data folder from being published when I put up a new version to my hosting.
I use WebDeploy on the latest versions of OC and VS.
The App_Data folder is excluded from the project.
I have tried adding
<ExcludeFoldersFromDeployment>App_Data</ExcludeFoldersFromDeployment> to the pubxml.
I have <ExcludeApp_Data>true</ExcludeApp_Data> in the pubxml.
I have tried <ItemGroup>
<Content Update="App_Data\**\*.*" CopyToPublishDirectory="Never" />
</ItemGroup> in the csproj file.
I don’t know what to try next. Does anyone have an answer how to stop it?
Hello there,
When I'm using await _contentManager.GetAsync(contentItemId);
the returned content item is missing the fields. I mean I can see the field in Content
, but it's not inside Elements
.
But when getting the content item from a Display Driver (with part.ContentItem
, where I already have the part) the field is there inside Elements
.
What could cause this behaviour?