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)

svenniuwe
@svenniuwe
@kevinchalet I have a strange problem here getting OrchardCore-OpenID-Authorization Server to act as OpenID-SSO from Wordpress:
https://github.com/oidc-wp/openid-connect-generic/discussions/317
Probably I'm missing how to add the recommended parameters for "Code Authorization" Flow to the Redirect-URIs?
As shown in Orchard-Core-Client-Application-Config: grant_type = 'code', client_id, client_secret, scope ('openid, profile, roles)')
Any hint really welcome...
svenniuwe
@svenniuwe

https://github.com/oidc-wp/openid-connect-generic/discussions/317#discussioncomment-883642

Thank you! @kevinchalet That solved that issue. Now I'm logged into Wordpress. Wow! I added the scopes email profile openid in Orchard-Core.
But I have really no idea about how/where to edit the Orchard-Core full user profiles? In Admin under profile I see ony username + email + Roles, no chance to add an street address, surname, name etc. And in the scope editor I have no idea how to link these scopes to thing "allowed to share".
Any hint would really be helpful. Thanks.

svenniuwe
@svenniuwe
@kevinchalet If you have any idea why for "Logout" (in Wordpress) it redirects to Orchard Core but there is the error message:
"The specified 'post_logout_redirect_uri' is invalid."
I have specified as Logout Endpoint <AuthServer>//connect/logout and in the orchard-openid-application-setup I tried to enable/disable "Allow Logout Endpoint" - no change...

@kevinchalet If you have any idea why for "Logout" (in Wordpress) it redirects to Orchard Core but there is the error message:
"The specified 'post_logout_redirect_uri' is invalid."
I have specified as Logout Endpoint <AuthServer>//connect/logout and in the orchard-openid-application-setup I tried to enable/disable "Allow Logout Endpoint" - no change...

Post Logout URI empty or not empty, no change, either.

Shane Courtrille
@ShaneCourtrille
Where can I track down how to decipher the Schedule of a BackgroundTask -> [BackgroundTask(Schedule = "/30 *" ?
Shane Courtrille
@ShaneCourtrille
nm.. tracked it down.. NCrontab
pbull001
@pbull001
What happens when you delete a referenced ContentItem? For example Item A - ContentPickerField references Item B. You then delete Item B. Does the reference to B continue to "live" in A until you edit Item A? That is in the JSON data document.
Sébastien Ros
@sebastienros
@pbull001 yes, the reference is not removed. We don't track back refs
3 replies
it's just content item id that is stored
Kévin Chalet
@kevinchalet
@svenniuwe I don't think there's currently a way to achieve that, but I believe the claims mapping feature for the OpenID module is being discussed on GitHub.
Regarding your second question, are you sure the logout URL is correct? It must be an URL owned by the client (your WP app).
Antoine Griffard
@agriffard
OC solution does not load with VS 2022 Preview 1.
9 replies
John Morgan
@john-s-morgan

We're doing a lot of testing for mobile, and when we use OrchardCore.ContentPreview view, in the head tag above the two iframes, there isn't a viewport in place.

Something like
<meta name="viewport" content="width=device-width, initial-scale=1">

Is there anything in place to extend the ContentPreview module or a better way to handle this?

Sébastien Ros
@sebastienros
@john-s-morgan if that something that can be safely added to the default template then we should do it. If so do you want to add a PR?
1 reply
you might want to look at this view https://github.com/OrchardCMS/OrchardCore/blob/dev/src/OrchardCore.Modules/OrchardCore.ContentPreview/Views/Preview/Index.cshtml and it looks like any theme should be able to override it. Ideally the js inside of it would have been defined as an external resource to make it easier to change.
Andy Rose
@andycyberian
Could anyone give me some insight as to why I can't see the Audit Trail feature in our solution following an OC package upgrade to the Audit Trail feature branch?
When I go to features and filter by 'audit' I just see the Users Audit Trail feature, enabling this results in an error most likely because it has a dependency on the Audit Trail feature which is nowhere to be seen.
I've drilled into the OrchardCore.Application.Cms.Targets package dependency in our start up project and can see the OrchardCore.AuditTrail module referenced. There is also nothing in the logs to indicate and error with this. Any ideas or suggestions for further troubleshooting?
4 replies
reimac05
@reimac05
Is there an easy way to add style class to the parent node e.g. <body> if the content section shows a specific content type? We want to hide specific parts of the website based on the current content type.
4 replies
somecodeguy
@dafergu2:matrix.org
[m]
Can we use razor pages in our theme instead of mvc controllers + views?
Sébastien Ros
@sebastienros
@dafergu2:matrix.org yes
Check the OrchardCore.Demo module
Troy Parkinson
@trousyt
I have a Content Type that's in the database only that I created by using a recipe. How do I use this Content Type strongly-typed throughout my code? For example, if I wanted to access the type-specific fields and access it through the ContentType.As<T>() method.
pbull001
@pbull001
What have I shmangled ...? when I try and access the Admin panel for my default site the Admin menu is not rendering (no code generated). The new AdminDashboard is rendering but not the AdminMenu. I have checked the admin theme is set to TheAdmin and I am using the OrchardCore nuget packages (16316). Any pointers or thoughts greatly appreciated.
4 replies
somecodeguy
@dafergu2:matrix.org
[m]
When writing my own content part in code, can I delete the content part with the Admin pages in order to run the Create() method of the migration?
Dean Marcussen
@deanmarcussen
nope. you would have to edit the database migration record setting it back
1 reply
somecodeguy
@dafergu2:matrix.org
[m]
@deanmarcussen: Sorry to bother you, but I've got a delivery to make to my client today and I'm getting a really strange error. I've written my own display driver for a part following lombiq's tutorial in their dojo video. When I try to access something in the admin menu that contains the part I've developed, it's saying the shape for the type MyPart__Edit is not found. The MyPart.Edit.cshtml file is definitely in the Views folder. I don't see anything in the logs to indicate why it is not found.
Dean Marcussen
@deanmarcussen
I would guess you did it in a theme? needs to be in a module. parts should always be in modules, with default display views, and then override a custom display view in a theme
4 replies
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros @deanmarcussen: I can consistently reproduce that Win32 FileTime failure. Some images will do that when previewing in the Admin view of a MediaField.
1 reply
VectorMan
@vector-man
Is it possible to work entirely in code (not changing settings in the UI) when developing with Orchard Core?
VectorMan
@vector-man
Also, another question: I'm working on a giveaway website, and I'm not sure where to begin with Orchard Core. I need to create a custom entity type called Sweepstakes, and this has various properties such as Name, Date, Entrants (which are Users who entered the sweepstake) etc. Is there any examples where I can add custom entities and have them added/edited in the UI? I'm trying to do it with Razor Pages, not MVC, if possible.
(also, I'm trying to do it from code, not adding stuff through the UI backend. I prefer to work code first, but if it's not possible, any solution will do. )
VectorMan
@vector-man
(to clarify, I want to develop everything in code, but the editing of the sweepstakes entries I want to do in UI once everything is ready)
somecodeguy
@dafergu2:matrix.org
[m]
Yup, you can do it all in code. Take a look at the orchard core dojo videos by Lombiq on Youtube. They walk you through creating content parts and content items in code. Also gives you a good foundation.
Also, take a look at the OrchardCore.Demo project in the github repo. Shows you how to set up things to use Razor Pages instead of MVC.
Tony Han
@hyzx86
image.png
Is there a problem with JSON conversion? Is this a bug or is there a problem with my writing?
brunoAltinet
@brunoAltinet
Hey guys, i've searched all over but can you confirm that it is not possible to get changes to razor views inside modules reflected in browser by merely saving and refreshing?
Need to know before I switch over to liquid. I did see the comment by sebastian on 1 SO question that that is indeed the case
Dean Marcussen
@deanmarcussen
@brunoAltinet razor should recompile on save when the environment = development
brunoAltinet
@brunoAltinet
Even when views are in module?
Is there any setting i'm supposed to have for that?
Dean Marcussen
@deanmarcussen
yes. there are settings. if it isn't working and you have set your ASP_ENV = Development the easiest way to get the correct csproj settings is to gen an app with the templates https://docs.orchardcore.net/en/dev/docs/getting-started/templates/index.html and compare the differences to your web project.
brunoAltinet
@brunoAltinet
Ok, so it's not working for me, module looks pretty much the same but i took a look at the OrchardCore code and it seems that it needs that refs folder inside assembly to function. I dont see it, and when I add an empty one manually it bugs out
Dean Marcussen
@deanmarcussen
if it isn't working and you have set your ASP_ENV = Development the easiest way to get the correct csproj settings is to gen an app with the templates https://docs.orchardcore.net/en/dev/docs/getting-started/templates/index.html and compare the differences to your web project.
brunoAltinet
@brunoAltinet
Still not working but i can see in orchardCore source code that it's disabled if no refs folder is present in assembly folder
which is missing in my case
ASP_ENV is development if you mean by that on "ASPNETCORE_ENVIRONMENT": "Development"
Dean Marcussen
@deanmarcussen
You are making me repeat myself. the easiest way to get the correct csproj settings is to gen an app with the templates https://docs.orchardcore.net/en/dev/docs/getting-started/templates/index.html and compare the differences to your web project.
brunoAltinet
@brunoAltinet
Ah, ok:) i have misundersood
brunoAltinet
@brunoAltinet
Awesome thanks: If anyone gets the same issue i was missing <PreserveCompilationReferences>true</PreserveCompilationReferences> in my csproj file. Thanks again!