Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 12 2020 01:41

    jtkech on patch-1

    (compare)

  • Apr 12 2020 01:39

    jtkech on patch-1

    Update ZoneShapes.cs (compare)

Jimit Ndiaye
@jimitndiaye
Were any changes made to feature discovery in 1.4.0? I just upgraded from from 1.3.0 and I'm getting an error saying "InvalidOperationException: Could not resolve feature for type AccessDeniedModel". This was working before the upgrade.
Jimit Ndiaye
@jimitndiaye
Reverting the upgrade to 1.4.0 fixes the issue and everything works again. but obviously that's not a solution
Niraj Soni
@ns8482e
What is AccessDeniedModel is it your custom class?
D97
@datnt97
Can I custom IOptions<StaticFileOptions> without change your file?
image.png
2 replies
Sirius4488
@Sirius4488
Are there any extra steps/things to use JS fetch API with Orchard Core? I have a controller action with a 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 }
            ),
        })
Dean Marcussen
@deanmarcussen
you are probably missing an anti forgery token. decorate your controller with [IgnoreAntiforgeryToken]
Sirius4488
@Sirius4488

you are probably missing an anti forgery token. decorate your controller with [IgnoreAntiforgeryToken]

Thanks! The error code changed, it seems to be working!

D97
@datnt97
I want to replace IRunningShellTable. Where should I put it?
image.png
Jimit Ndiaye
@jimitndiaye
@ns8482e AccessDeniedModel is a Razor Page in one of my modules. It is registered in that module's Startup using a folder convention. The registration works fine in 1.3.0.
agono
@agono
Hello! I'm facing this behavior of orchard core and need to find a solution: I am using 1 external login provider (adfs with openidconnect). I pre-create users using a backgroundjob without a password (i have to register them in advance, not during the first login from external provider; local passwords are not allowed). i also checked that it's not permitted to login with local password. my assumption was that when a user with corresponding email in claims logs in trough the external provider, his account would get linked automatically. instead the users is presented with a form where he is required to enter LOCAL password (which doesnt exist).
11 replies
Niraj Soni
@ns8482e
@jimitndiaye now razor pages are also feature aware, however if feature attributes are not provided it should still tied to module - may be a bug, can you open an issue ?
Antoine Griffard
@agriffard
No triage meeting today, if I remember well.
Niraj Soni
@ns8482e
I guess you can via link login
But you need to logged in first
desertfoxx
@desertfoxx:matrix.org
[m]
hello everybody! I'm new in orchardcore.
Is it a problem using yessql for the default CMS featurers and other stuff that is necessary by the framework AND parallel Databases by using ef core?
Niraj Soni
@ns8482e
EF should not be a problem, However YesSql takes care of multi tenancy on single database using table prefixes, if you are using multitenanct with single db then in EF you need to take care yourself
desertfoxx
@desertfoxx:matrix.org
[m]
sure! I would using a tenantId in all tables. That's what I make now but without CMS as background. So I would like to upgrade my current product to orchardcore.
Jimit Ndiaye
@jimitndiaye
@ns8482e I can create an issue. It may be tricky to create a minimal project to reproduce the issue without all the moving parts but I'll give it a shot
Niraj Soni
@ns8482e
@jimitndiaye most probably your issue is related to this #11904 fixed by @jtkech
Fabian Klöckner
@sabifa
image.png
Hey guys, I would like to place a second button next to the "New Zimmer" Button. I guess that this can be done via the placement.json but I struggle to find the correct shape. Can someone help me out with this? An example would be awesome!
Niraj Soni
@ns8482e
@sabifa you can inherit and register driver from DisplayDriver<ContentOptionsViewModel> and inject shape for custom action on with Actions location
Niraj Soni
@ns8482e
And you have override Edit
Fabian Klöckner
@sabifa
@ns8482e thank you, creating a custom DisplayDriver worked with Location "Create:10" worked!
Niraj Soni
@ns8482e
👍
CrestApps
@CrestApps

in there a way to get the enum value as string with liquid? so if I have

public enum Test 
{
     one, two, three
}

I would output one, two or three instead of 0, 1, or 2 when using liquid?

Niraj Soni
@ns8482e
register your own fluid value converter
CrestApps
@CrestApps
image.png
this isn't enough?
do you mean implement ILiquidFilter?
LowDensity
@LowDensity
Does OrchardCore currently supports .NET 6 ?
LowDensity
@LowDensity
I found it , it supports , sorry for bothering
Szymon Seliga
@SzymonSel
How do I render a ViewModel with liquid, when the ViewModel is not a Shape?
2 replies
Tony Han
@hyzx86
Hello , Can some one help me ?
Dakota Dalton
@1silvertiger
I am using a SAML service that users authenticate with. Right now, the SAML service is creating claims with the user info in it and User.Identity.Name is filled and User.Identity.IsAuthenticated is set to true. But when I try to go to a password protected part of my Orchard site, I just get a page that says "You do not have access to this resource." How can I get Orchard to recognize my user?
desertfoxx
@desertfoxx:matrix.org
[m]
Hi,
is it possible to extend the tenent-properties like usersettings? I would like to create a tenant-ID and need to have access from all views on it.
aminmohammadi05
@aminmohammadi05
Hi, How can I enable graphql mutations?
Niraj Soni
@ns8482e
Use rest api
2 replies
Mike Paterson
@devlife

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

Mike Paterson
@devlife
Anyone have any thoughts on the captcha? I do see the div being spit out but no actual recaptcha being shown.
Niraj Soni
@ns8482e
did you enable the feature?
2 replies
Graham Southgate
@GLRSouthgate_twitter

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?

15 replies
Mike Paterson
@devlife
I am using the <captcha /> tag helper. It shows up and everything. But is there a way I can hide/show the submit button based on the validation status?
1 reply
Mike Paterson
@devlife
image.png
Garo Keshishian
@Keshish
Hey There,
I am having an issue with Migration,
I have created a model and added the Migration,
configured in the startup but it doesn't show in the dashboard neither in database that the Migration were build,
any suggestion guys?!
Niraj Soni
@ns8482e
Migration will execute ince you enable the module
Sirius4488
@Sirius4488

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?

1 reply
image.png