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)

Niraj Soni
@ns8482e
@JosNun you can override views from Form module in your theme
Josiah Nunemaker
@JosNun
Can it be done from another module, if my module depends on the module I'm attempting to override? From what I understand, the only difference between a module and a theme (other than what they are indentended to be used for) is that a theme is loaded after all the modules?
Niraj Soni
@ns8482e
If your module has dependency of "OrchardCore.Forms" in manifest .cs then you can override using Views/Form.Wrapper.cshtml
CrestApps
@CrestApps
What is the difference between requiring dependency using mainifest.cs vs using FeatureRequirers attribute in the startup class?
Dean Marcussen
@deanmarcussen
one forces a dependency and module activation, the other activates if the specified module is enabled, but does not force activiation
Niraj Soni
@ns8482e
By defining dependency, when dependent feature is activated, it will also activate the dependency
where as RequireFeatures allows a module to contribute to services/pipeline to other feature without depending on it
e.g when OrchardCore.Feeds is activated it doesn't activate OrchardCore.Content
however if OrchardCore.Content is active, then activating OrchardCore.Feeds will also has services/pipeline related to content management
Josiah Nunemaker
@JosNun

If your module has dependency of "OrchardCore.Forms" in manifest .cs then you can override using Views/Form.Wrapper.cshtml

So this set me off on the right direction. If I create that file in another one of my modules, it works fine, but in the module that the file belongs in, it refuses to work. Both modules show up in the features section in the orchard admin, and work fine otherwise. Both modules also have OrchardCore.Forms listed as a dependency, and both are listed as projectReferences in the csproj for the startup project. Any suggestions for me to try?

4 replies
Screen Shot 2021-10-11 at 12.37.23 PM.png
pbull001
@pbull001
    Any ideas why the liquid expression below produces an invalid uri request error when used in an HTTPRequest Activity?
      "Expression": "{{ \"~/api/Rules/apply/Workflow1/id\" | replace: \"id\", \"4709a9022e7vnx4rsm5d7p7vcs\" | absolute_url }}"
2 replies
CrestApps
@CrestApps
Thanks you to both for the clarification!
Mark Clark
@daerogami
I created a module and I am using a recipe migration for the initial setup.
Should there be logs somewhere when the RecipeMigrator runs? I'm seeing multiple Microsoft.Data.SqlClient.SqlException and System.InvalidOperationException being thrown in my debug output, but I can't find out why my module's recipe is failing (or if it even is the recipe). It's also weird that when enabling the feature, it is enabled but doesn't even report that there were exceptions. I couldn't find a logging feature either.
Jasmin Savard
@Skrypt
I'm not sure if thse exceptions are logged on production
Mark Clark
@daerogami
I may have found the primary issue, I wasn't registering the Migrations class (now I'm wondering what was throwing the SqlException to begin with)
Something not clear from the module template example, it where AddPart is defined. Is that something from OrchardCore or is that specific to the module example?
https://github.com/OrchardCMS/OrchardCore/blob/main/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Cms.Module/Startup.cs
Dean Marcussen
@deanmarcussen
Check you’ve awaited the recipe migrator correctly. That throws weird exceptions if you don’t
1 reply
Mark Clark
@daerogami
Im starting to think that AddPart conditional isn't exactly a preprocessor conditional but used by the dotnet occms code generation tool.
1 reply
Hey! It worked. Helps if one follows directions and reads a little more 😅
Mark Clark
@daerogami
Mildly concerned about those SqlExceptions but I'm just gonna do the right thing and pretend I didn't see them.
Jasmin Savard
@Skrypt
They're mainly going to be about feeding these custom tables
Which is only useful if you use them with a session.Query<CustomIndex>
pbull001
@pbull001
Thoughts on why HttpRequestTask would send url twice? I have called the url manually and it works fine. When the workflow executes it issues one, pauses then issues another. This creates an issue when the associated controlled is trying to retrieve a content item. I end up with a "locked database" issue.
avojacek
@avojacek
Hi all, I'm thinking about use Orchad core for new presentation of our volleyball team. Now we are using wordpress. Is it possible to have more different presentation of same data with different urls? Say I want to present same data (team descriptions, news, match date and so on) but dependent on url (girlsvolleyballkpy.cz / boysvolleyballkpy.cz) have different theme?
10 replies
vmahant
@vmahant
Recently I came across a new issue when I set up a new tenant.
{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!