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)

Jasmin Savard
@Skrypt
        "LocalizationSettings": {
            "DefaultCulture": "fr",
            "SupportedCultures": [
                "fr",
                "en"
            ]
        },
Something like this should be supported to be imported / exported from these SIteSettings.
Or as Cultures like you say.
But that's kind of strange to require to export them separately as they are SiteSettings.
Dean Marcussen
@deanmarcussen
nope. it shouldn't ;) the Properties box shouldn't be there. it should be cultures.
Jasmin Savard
@Skrypt
But then, Properties -> Cultures ... or something that we can use for these IEntity Extension point.
Or not like you seem to prefer. As long as it works :)
Dean Marcussen
@deanmarcussen
ok, so I looked there's a missing registration to export Cultures. and Properties shouldn't be shown. I will tweak it.
We decided ages ago that users shouldn't know that these are stored on SiteSettings, (and it is dificult to export Properties properly)
Dean Marcussen
@deanmarcussen
Jasmin Savard
@Skrypt
Yeah, I guess they need to be exported individually if you want to cast them with something.As<YourSettingModel>
Ammar Al-Sayegh
@aalsayegh
@sebastienros thank you for your followup... I followed the steps in https://docs.orchardcore.net/en/dev/ for VS. git clone https://github.com/OrchardCMS/OrchardCore.git. Then opened OrchardCore.sln in VS 2019 and built it. Then ran the solution and the page I posted earlier opened up. I selected "Agency" then filled in all the required information and clicked "Finish Setup", nothing happened and the URL on the browser remained the same but with the # sign at the end. When I tried options other than "Agency" immediately after the failed "Finish Setup" but didn't work either. Now I refreshed the page and tried "Empty Site" and I progressed to the next step, but it gave me an empty site with "Page could not be found" as the main page, so I think the option "Agency" for a full site is broken and need to be fixed. I now went to /sitename:port/admin and it gave me the login page and was able to login, however, the site has no template and no contents. Is there a library for open source templates that we can try? Is there sample contents that we can import to for trying out?
1 reply
Sébastien Ros
@sebastienros
The Empty template will display Page Not Found by design, the created site is empty.
Can you check what you have in the logs for the other recipes?
Ammar Al-Sayegh
@aalsayegh
@sebastienros . There were few errors related to wrong db credentials, but they are not related to the "Agent" option because they happened another time. I deleted all the errors and will continue with the empty site and check the log again later on to see if there are any new errors.
Phil Davies
@lazcool
does anyone know of any work that's been done to add 'groups' to the security side, i.e. a group contains users, and has a set of roles?
Dean Marcussen
@deanmarcussen
none at all @lazcool . There was an issue discussing it - but it quickly disappeared of into a custom requirement. It's something i've implemented numerous times with O1 and AspNetCore. The experiance I've had implementing it, is that the requirement always gets quite custom, so it's not that easy to implement something that would be universal
Phil Davies
@lazcool
thanks once again @deanmarcussen
Simon Novak
@snovak7
hmm why is @ not a valid username character ? (in newest version) ?
35 replies
Frank Akogun
@FrankDupree

Hi Guys,
I enabled openId, i was able to retrieve the endpoint configuration.
the problem is, i configured the login page as "account/login".

but openid seems to pick another url for its Authorization url.
how do i force Openid to use "account/login" as its Authorization url?

thanks
Orchard Skills
@OrchardSkills
@FrankDupree Orchard Skills has created a half dozen videos along with source code on OpenID Connect and Orchard Core https://www.youtube.com/c/OrchardSkills
5 replies
@FrankDupree If you need any help just let me know.
Tony Han
@hyzx86
Could you upload the video to https://www.bilibili.com/ ?
Chinese networks don't have access to YouTube 😢
Frank Akogun
@FrankDupree

@FrankDupree Orchard Skills has created a half dozen videos along with source code on OpenID Connect and Orchard Core https://www.youtube.com/c/OrchardSkills

yes, i'm actually following a tutorial of yours :D, you configured openid using recipe. I didn't use recipe, i just enabled it from the admin and now id like openid to use "account/login" as the default authority url.

thanks for the hard work between, your tutorials have been helpful

Mike Paterson
@devlife
Hi all. is it possible/recommended to use more than one instance of Orchard Core in production for high availability? Is there anything special I would need to do?
Sébastien Ros
@sebastienros
@devlife Some modules have been created to synchronize the data when the content is edited, or settings are updated. But it also requires Redis.
ropstah
@ropstah
I like the ContentDefinition.jsonin the Site folders! :D
Sotiris Roussos
@urbanit
Tags improvement ✔ by @deanmarcussen // Yessql Improvement ✔ by @sebastienros ... Busy weekend, thanks.
Tal McMahon
@TalMcMahon
This message was deleted
Raniel Quirante
@RanielQuirante

just a question in https://docs.orchardcore.net/en/dev/docs/reference/modules/Contents/#loading-from-a-content-item-version-id

where do I get to see the alias of the content item in admin?

6 replies
lengockyquang
@lengockyquang
how can i display difference form validation message for difference cultures ?
PascalDeclercq1964
@PascalDeclercq1964
I've added to an orchard core an .apk file that can be downloaded. Orchard seems to compress the app to .zip. Can this be avoided?
1 reply
D97
@datnt97
Can I manage the content types by modules/features?
Himanshu Swami
@hswami
Hello folks ... it's been a looong time I've been away and this question may have been asked ... but is there a way I change the default sort order for the content items list in admin? I am looking for a way to influence the OrderBy property set to ContentsOrder.Modified in the ContentOptionsViewModel constructor - we have a need for this to be ContentsOrder.Title all the time on one of our sites. I've been staring at code for a week and haven't been able to figure out an obvious way to do this, if there is one. I have looked at PR OrchardCMS/OrchardCore#6551 by @agriffard and the current OC code. Please help!
Dean Marcussen
@deanmarcussen
@hswami you need to look at implementing an IContentsAdminListFilter and (probably) replacing the default implementation in DI
Simon Novak
@snovak7
@deanmarcussen question about visibility with roles for non-admins for a feature Taxonomy, even though enabled customer claims it still doesn’t have access
Simon Novak
@snovak7
For manage taxonomies
Salik Ahmed Khan
@salik634
Hi, Can anyone tell me that is there any session option for login on website theme and if we have how can we use it?
Himanshu Swami
@hswami
@deanmarcussen @sebastienros I could do a PR to allow changing the default sort order in OC admin UI - say on the site settings page (or wherever you suggest is appropriate) and consuming that setting in ContentOptionsDisplayDriver when initializing ContentOptionsViewModel. Would you be willing to consider that approach? It would be a lot simpler IMO.
Sébastien Ros
@sebastienros
@hswami probably just a setting in the admin to set which property to use as the dfefault order, and change the controlelr to use it.
Salik Ahmed Khan
@salik634

Hi, Can anyone tell me that is there any session option for login on website theme and if we have how can we use it?

Anyone can help me?

Salik Ahmed Khan
@salik634

Hi, Can anyone tell me that is there any session option for login on website theme and if we have how can we use it?

Anyone can help me?

Is there any option for separate login for front end theme and admin end theme?

Himanshu Swami
@hswami
Thx @sebastienros I’ll try that out and submit a PR soon.
Mark Clark
@daerogami
I want to see if an idea sounds feasible. We currently have a Blazor-client app served by a AspNetCore back-end. The blazor client speaks to the backend almost entirely through API calls except for some auth for login/logout/external auth via Identity.
Our client wants more control of the content and styling, would it be feasible to also stuff in OrchardCore as a headless CMS for providing the admin backend to customize and load content on the blazor-client?
In my head it makes sense, but I haven't really poked at OrchardCore in the context of a headless CMS.
Mark Clark
@daerogami
To narrow down my question, using services.AddOrchardCms() to pull in the OrchardCms:
How nicely will that play with existing routing? And is there an out-of-the-box way to access that content as an API endpoint?
Sébastien Ros
@sebastienros
@daerogami that should work, but some middleware might conflict, like auth ones. Unless you have two specific routes to isolate them. Or if you create the aspnet backend as a module of the orchard instance. 3rd option is to run a different service with the content
David Ferguson
@somecodeguy_twitter
@daerogami I just finished getting a custom blazor site to play nice with a full orchard core CMS in the same web app. It isn't trivial at the moment due to several reasons. I'm planning on documenting what needs to be done at some point within the next few days.
Although, in your case, the root of the site will be the blazor site and you should be able to get to the admin page as well. I'm pretty certain I had that working fairly easily to start. Then I had a need to flip it around (have Orchard Core as a full CMS at the root and my custom site in an isolated Area route).
NRGadade
@NRGadade

Hi All,

We have integrated Orchard CMS application from ADFS to Azure Authentication and whenever login OR doing any operation in admin page we are getting Nonce issue. Can you please help to resolve this issue, we tried multiple way like installing NuGet package 'Kentor.OwinCookieSaver', setting flag on chrome to disabled, AD App Registrations with Reply URL and Start URL,.. etc.

Bellow is the error details-
"Server Error in '/' Application.
IDX21323: RequireNonce is '[PII is hidden]'. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'. Note if a 'nonce' is found it will be evaluated.
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: Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolInvalidNonceException: IDX21323: RequireNonce is '[PII is hidden]'. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'. Note if a 'nonce' is found it will be evaluated.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OpenIdConnectProtocolInvalidNonceException: IDX21323: RequireNonce is '[PII is hidden]'. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'. Note if a 'nonce' is found it will be evaluated.]
Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidator.ValidateNonce(OpenIdConnectProtocolValidationContext validationContext) +1013
Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidator.ValidateAuthenticationResponse(OpenIdConnectProtocolValidationContext validationContext) +263
Microsoft.Owin.Security.OpenIdConnect.<AuthenticateCoreAsync>d__11.MoveNext() +4494"