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)

vmahant
@vmahant
{tenant-url}?token=CfDJ8Dnsa5iZHrdCqNenptIsX3phhaQnPaJhhpBIiAdDd_pIhczRGIRtu093M9Rfnv9JDR2XWXDCsmtQ_3YB2rVQj7_TDkdURmB08gIeEVqaKLd0DaGVJdySsOy_wr40lJgFMZdU9PTZRX7aiMwFxYmr4RRc0ItQJvFqi_lDU1jUdrfh
not sure what is causing the issue. no trace in the error logs
I recently moved the SQL server from one resource group to another. Wondering if that's the issue. but getting same error while switch back to othe old resource group now
vmahant
@vmahant
Existing tenants working fine though
Nic Scott
@Nic-84
I am using var jobs = await Orchard.GetRecentContentItemsByContentTypeAsync("JobPost", 9999); to get all content items of the type "JobPost" on my Razor page (decoupled site). I just recently deleted several test content items that I no longer needed, but they keep showing up when I generate this list of content items. And new content items that I have just created are not showing up. Is there something that needs to get refreshed somewhere in order to get an up-to-date list of these content items?
1 reply
Mark Clark
@daerogami
Are po localization files always generated or are they intended to be edited? I'm just trying to figure out if these should be going in source control.
4 replies
avojacek
@avojacek
Hi all. I would like to import events from google calendar to OrchadCore, can you recommend how to implement events from calendar in OrchadCore?
41 replies
Josiah Nunemaker
@JosNun
Is it possible to have a module have another module as a dependency? In my case, if I have Module A that has Module B as a dependency, Module B won't show up in the features section of the admin. Is it a requirement to have all dependencies of a module be installed in the project that's using orchard?
Jasmin Savard
@Skrypt
There's a distinction that should be made between Features and Dependencies
We just had a quick chat about it here : https://github.com/OrchardCMS/OrchardCore/discussions/10437
Josiah Nunemaker
@JosNun
In my case, Module B is a package that has multiple modules within it. My package (Module A) only depends on one feature of Module B, say, Module B.FancyFeature. If I don't add Module B as a package reference in my startup project, Module B.FancyFeature doesn't show up in the features list, even if it is listed as a package reference in the Module A .csproj, and Module A has the specific feature I'm using (Module B.FancyFeature) listed as a dependency. Make sense?
Jasmin Savard
@Skrypt
Module B is a Nuget package?
Josiah Nunemaker
@JosNun
Yeah
Jasmin Savard
@Skrypt
Is it an Orchard Core module?
Or an assembly library?
Let's say Module B is Newtonsoft.Json
Of course it won't be listed in the Admin UI as a feature
Josiah Nunemaker
@JosNun
Orchard core module (Etch.OrchardCore.Fields in particular)
Jasmin Savard
@Skrypt
Then the Etch.OrchardCore.Fields module need to be referenced in the web project too.
Because what you are doing is extending this module with your own
So both should be enabled features in Orchard
But if you add a dependency on Etch.OrchardCore.Field in your custom module then it will automatically enable it.
Josiah Nunemaker
@JosNun
Gotcha. So anywhere I need to use my module (Module A), I'll also have to add a package reference to Module B, then.
Jasmin Savard
@Skrypt
In the web project yes.
Josiah Nunemaker
@JosNun
That almost makes it feel less modular? I can see why that is a requirement, though. Thanks for the help!
Jasmin Savard
@Skrypt
We don't harvest OC modules dependencies. We maybe should.
So basically, a dependency for all the OC modules are needed on the web project so that they get harvested and that the startup.cs file be hit.
Josiah Nunemaker
@JosNun
Gotcha
Jasmin Savard
@Skrypt
Else, you create a dependency on a module but the DI doesn't know about it
Josiah Nunemaker
@JosNun
yeah, which isn't ideal
Jasmin Savard
@Skrypt
Well, maybe we could enhance this part but at the same time... we don't want this to be recursive
Else you could have Module A referencing Module B referencing Module C referencing Module A
And then the DI would not be happy about it
So, I think it's fine how it is
avojacek
@avojacek
hi all is it possible to define different content part for different users. I do not know if it make sense, but when I want to let some people edit content of blog post using html wysiwyg editor, but another user want to use markdown?
Jasmin Savard
@Skrypt
@avojacek Not possible.
avojacek
@avojacek
@Skrypt thank you. I have another question :-) If I do hadless orchad and then create frontend I saw, that I can use OpenID connect to authenticate frontend app to run GraphQL queries. But how to authenticate users on frontend?
Jasmin Savard
@Skrypt
You mean how to login?
23 replies
Niraj Soni
@ns8482e
Is there built-in way to display Numeric field as currency? i.e prefixed with $?
31 replies
Rustem
@rserj
image.png
21 replies
Hello, can I display Nested/Conditional fields somthing like this?
Steven Spits
@netwavebe

Is there a way in OC to get the html of a content item using a specific displayType in a controller?
I tried this:

var productShape = await _contentItemDisplayManager.BuildDisplayAsync(product, this, "Detail");
var productHtml = await displayHelper.ShapeExecuteAsync(productShape);

This works, but productHtml also includes the theme html, which I do not want. Any ideas?

Niraj Soni
@ns8482e
check productShape.Content it will have html you need
Jasmin Savard
@Skrypt
What you mean by theme html? You mean the admin theme styles?
The BuildDisplayAsync will use whatever templates you implemented in your own theme too.
Small screenshot would help
S├ębastien Ros
@sebastienros
@netwavebe definitely there is a way ... trying to remember
S├ębastien Ros
@sebastienros
I know !!!!!
Steven Spits
@netwavebe
@Skrypt productHtml includes the frontend theming (a complete page) but I want only the fragment rendered by one product.
@sebastienros I'm all ears! :-D