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)

Kevin Welsh
@kdubious
The problem, but not the solution
We're building an eCom system, and have a separate authentication system for customers than from the OC Admin tool
so my theme calls: services.AddAuthentication in Startup
which I suppose is killing the OC auth
Do you know if I can use Areas and have different authentication for /admin and /booking?
9 replies
pbull001
@pbull001
So my shape has an alternate "Content_Summary__Process" and the Content-Process.Summary.cshtml file is in the Views folder of module. When I BuildDisplayAsync I am using "Summary" display type. Any ideas why the templating engine would fail to select this template? Default part templates are being selected instead.
6 replies
Andy Rose
@andycyberian
@deanmarcussen we had some custom code in our Admin Dashboard implementation that made use of the DefaultContentsAdminListFilter class as below:
await _defaultContentsAdminListFilter.FilterAsync(filteroptions, query, null);
This was used to retrieve a results count of the filtered content items using:
await query.CountAsync();
We have recently upgraded and this class appears to have been removed, is there a simple way to replicate this to maintain the functionality in our upgrade?
2 replies
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: My coworker hit the KB5003637 issue just now and he uninstalled the KB which fixed it for him. He's using Kestrel
Sébastien Ros
@sebastienros
5.0? 6.0?
somecodeguy
@dafergu2:matrix.org
[m]
We are running .net 6 prev 4
referencing all of the OC stuff via the cloudsmith.io nuget packages, so all of those are 5.0
genevadev
@genevadev
Is it possible to add a series of blog posts programmatically through the API? I have content from an RSS feed that I would like to add so that it will be searchable through lucene. Thanks
1 reply
Troy Parkinson
@trousyt
What's the best way to join to Taxonomies through a ContentItem? I have a BlogPost content item and am trying to get the DisplayText of the associated Category (there can only be one)...
1 reply
juergen-de
@juergen-de

If you create a liquid page with a query, is there any documented way to have a pager ?

{% assign newsItems = Queries.BlogPostByTimeline | query %}

      {% for item in newsItems %}
       {{ item | shape_build_display: "Summary" | shape_render }}
      {% endfor %}
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?