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 01:41

    jtkech on patch-1

    (compare)

  • Apr 12 01:39

    jtkech on patch-1

    Update ZoneShapes.cs (compare)

Jasmin Savard
@Skrypt
The second one is not even an issue
Just a task to enhance the feature
Rebuilding Lucene Indices is not that important for 1.0
Kévin Chalet
@kevinchalet
:+1:
Jasmin Savard
@Skrypt
The thing is that even when we will release a 1.0 the next day after there will be new commits in the dev branch to fix issues in 1.0
...
I think what needs to be done is that people look at it "overall" and decide if this is enough for them so that we can say it's a stable 1.0 release
Kévin Chalet
@kevinchalet
Day One patches :trollface:
Jasmin Savard
@Skrypt
If there are some scope issues then it's not ready
Kévin Chalet
@kevinchalet
It's never easy to determine when things are really "ready"... :cry:
Jasmin Savard
@Skrypt
nothing is perfect but everyone has minimum standards
If we keep adding new features it will take way more time
Dean Marcussen
@deanmarcussen
@OrchardSkills going to refer you to this pr OrchardCMS/OrchardCore#7532 which fixes the only MissingMethod issue on Net 5, and shows how you can run a Net 5 app with the current cloudsmith release of OrchardCore
@Skrypt @kevinchalet the data protection package was migrated to the azure.storage lib last week as well
Simon Novak
@snovak7
@deanmarcussen how do you override search layouts, my colleague applied the docs, but it doesn't work
11 replies
Steven Spits
@netwavebe
@kevinchalet @Skrypt Merged dev locally, now I'm getting a lot of build errors in OrchardCore.OpenId.Core. Reading the discussions here and on github, I'm not sure how to proceed? Should I install .net 5 to get it working again? SDK?
31 replies
Steven Spits
@netwavebe
This is what I get:
image.png
Installing .net 5.0 sdk did not help. What am I missing?
Steven Spits
@netwavebe
Thanks to @PiemP, I got it working again. Make sure Visual Studio is updated to the latest version (16.8.1) or build will fail in VS.
Richard Garside
@NogginBox

Trying to run OrchardCore on an Azure Web App and getting the following error:
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: Could not find file 'D:\home\site\wwwroot\App_Data\Sites'.

Should it be putting App_Data in wwwroot?
It's put a load of dlls in there too.

I've tried logging in with console to add a folder to wwwroot, but get an error. What am I missing?

Dean Marcussen
@deanmarcussen
@NogginBox You might have deployed with Run as package. Which gives you a readonly file system. Try Web Deploy
4 replies
Screenshot 2020-11-19 at 16.12.05.png
CrestApps
@CrestApps
how to add .AddViewLocalization() in orchardCore? I am getting this error on start up System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types. Method not found: 'Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer.WithCulture(System.Globalization.CultureInfo)'.'
Jean-Thierry Kéchichian
@jtkech
tip of the night;) in debug mode under Visual Studio, if you don't want to waste time for runtime compilation, go to your app project properties and set the aspnetcore env var to Production.
pbull001
@pbull001
TemplateIssue.png
pbull001
@pbull001
Issue with resolving Content.Summary when redefined in two custom
modules. I am going crazy. I have two modules defined. Each contain Content.Summary.cshtml in root of Views folder. When Module A runs it is using the Content.Summary.cshtml defined in that module A. When Module B runs it ignores the Content.Summary.cshtml in module B and uses the file from Module A. If I disable Module A then Module B is uses the default file from OrchardCore.Contents module instead of the file defined in Module B. I have spent two days trying to figure this out. Apologies if this is a newbie error. Any advice appreciated.
4 replies
MegaTragos
@MegaTragos
Guys I want to return to a question, i've never managed to make notifications work in wokrflow tasks. Im trying redirect after contact form to home page with a notification but i cant make it show it. Is there a liquid tag that im missing?
1 reply
Jean-Thierry Kéchichian
@jtkech

@pbull001 just for info, you would have to define a dependency on OC.Contents in your module manifest files, it is important for ordering registrations / configs, handlers / drivers execution (the dependency runs first, the dependent last), and so on, and for template precedences, e.g. if module A depends on module B, template of module A has an higher precedence than module B.

For modules ordering there are different strategies, e.g. manifest priorities, manifest dependencies. If not used and no deps between 2 modules, somewhere there is an alphabetic order, so here you may have this order

IAAssessment.CleverCluster, OC.Contents, Transformer.CleverCluster <= maybe your module A ;)

There is another implicit ordering strategy, the current theme depends on all modules, so its templates have an higher precedence. So you can't override a template already defined in the current theme (unless with advanced code, or a more specialized template name)

Gert Smith
@Garpo001
@deanmarcussen I have managed to add additional fields to the user via the "Custom User Settings" (again thanks for this awesome module) in my recipe and am able to manage the properties through the Admin Users. I need to migrate users from a legacy system and need to set these properties via code in my module. I am able to create the user but am unable to set the Properties values. Are you able to assist? I use the following to retrieve user detail as JToken object. How would I go about assigning values before persisting user? Thank you in advance.
                    var user = await _userManager.GetUserAsync(User);
                    try
                    {
                        var userDetail = ((OrchardCore.Entities.Entity)user).Properties.First.First["UserDetail"];
                        userName = (string)userDetail["Name"]["Text"];
                    }
Dean Marcussen
@deanmarcussen
@Garpo001 you want to use the EntityExtensions methods .As and what you will want is .Put
5 replies
Jean-Philippe Tissot
@jptissot
What is the purpose of a Module's version number in the Manifest.cs files ? Is this being used anywhere ?
Jasmin Savard
@Skrypt
@jptissot It's not.
Sammi Sinno
@ssinno28
Hey all! I'm starting off with my first orchard core site, and I'm attempting to just use the orchard core framework at first, one thing that has been confusing me is when I look at the source code I see a lot of modules listed under orchard core instead of orchard cms that seem like they should be an orchard cms module
for instance admin is under orchard core, does that mean that I can get an admin dashboard without enabling orchard cms?
CrestApps
@CrestApps
Can I use “OrchardCore.Admin” and “OrchardCore.AdminMenu” in an OrchardCore app outside the CMS?
zedjr
@zedjr
am doing research on what cms i am going ot learn. My first time using a cms btw. One question i have is Orchard core unobtrusive. Can i use my regular controllers the same as in asp.net core?
1 reply
pbull001
@pbull001

@pbull001 just for info, you would have to define a dependency on OC.Contents in your module manifest files, it is important for ordering registrations / configs, handlers / drivers execution (the dependency runs first, the dependent last), and so on, and for template precedences, e.g. if module A depends on module B, template of module A has an higher precedence than module B.

For modules ordering there are different strategies, e.g. manifest priorities, manifest dependencies. If not used and no deps between 2 modules, somewhere there is an alphabetic order, so here you may have this order

IAAssessment.CleverCluster, OC.Contents, Transformer.CleverCluster <= maybe your module A ;)

There is another implicit ordering strategy, the current theme depends on all modules, so its templates have an higher precedence. So you can't override a template already defined in the current theme (unless with advanced code, or a more specialized template name)

Thank you @jtkech This is a brilliant explanation of the precedence/s concept I suspected was lurking somewhere ;)

juergen-de
@juergen-de
I do not really understand the concept of handling of localized content in the CMS. I created a website in 3 languages, german being the default and english and spanish content being available .
If at any page I for example switch to english, it works fine, but if I go to a different page, it goes back to the default language. I would assume that if I set a language, the selection remains.
On top of getting the next page displayed in german, the admin pages come up in spanish.
What I noticed is that the cookie for language selection is deleted for some reason.
yiannis kyriazidis
@giannik
Is it fine to register multiple field drivers to do some extra work when updating a content item ?
Specifically I have registered in my module an additional driver for htmlfield to add some extra work during updating contentitem when a specific editor is selected from the admin
Is this ok or is there a better way ?
        public override void ConfigureServices(IServiceCollection services)
        {
            services.AddContentField<OrchardCore.ContentFields.Fields.HtmlField>().UseDisplayDriver<HtmlFieldDisplayDriver>(); //register additional driver for froala editor media manager updates

        }
VintageMo
@VintageMo
I currently have the dockerhub windows container with headless recipe deployed to an azure app service. The problem we have is that a call that comes in from the app gateway to the site root / using a custom domain https://custom.com/ is being redirected to the internal azure address https://custom.azurewebsites.net/login. If a call is made directly to https://custom.com/login it loads just fine. The problem is the redirect. Is there a way to set the url that is redirected to from config settings?
1 reply
Aaron Amm
@aaronamm

Hello everyone, I am working on a document for creating a simple OrchardCore module in the step by step approach and some useful introduction of terms in Orchard development.

I will keep improving it and hope it will be useful for those who want to learn Orchard module development.
Feel free to leave comments and suggestions.
Thank you so much.

https://github.com/codesanook/Codesanook.Map/blob/develop/README.md

1 reply
Sen-Gupta
@Sen-Gupta
@deanmarcussen (Apologies, if I was not supposed to tag you): Looking at https://docs.orchardcore.net/en/dev/docs/reference/modules/Queries/
Looks like Razor Helper section has type for the Query Name!
Orchard Skills
@OrchardSkills
@juergen-de I also noticed that there is an issue with localization. It gets confused. If you use the content language picker and switch it back to the default language and then switch it to the desired language it resolves itself.
Antoine Griffard
@agriffard
@juergen-de @OrchardSkills The culture of the current content item has a priority over the cookie.
Orchard Skills
@OrchardSkills
@agriffard I notice if I leave the content language picker in French and exit the application. Delete the App_Data folder and run it again Setup comes up in French even though the default browser settings is in English. The default culture is set to English in the Orchard Admin.
Neil Thompson
@white-label-development
What's the correct technique for Configuring EF with per-tenant connection strings from appSettings?
Richard Garside
@NogginBox

I'm trying to display a link to a content item in a view. I've got it working, but not sure if this is the best way.

@contentItem.Content.AutoroutePart.Path

I have a feeling that some autoroutes might break this. Is there a better way?

Julien Chomarat
@juchom
I'm backing up a prod db into a Sql Server container for dev purpose. Is there a way to patch connection string from production to dev?