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)

Extrateq Company LTD
@Munde
hellow guys am having difficult in deploying orchard-core decoupled web app everything works fine in development but when I publish the website all my pages cant not be found but if I try to reach /admin is available what am I missing during publish
3 replies
CrestApps
@CrestApps
When configuring a service as singleton, does it create a singleton instance for each tenant?
3 replies
Sotiris Roussos
@urbanit
Q: list_items liquid filter in an list with enabled order, should return items in ordered way? If so, may I file a bug?
Andrii Chebukin
@xperiandri
Any thoughts about this?
OrchardCMS/OrchardCore#8171
Does no one have such an issue with a recipe update?
CrestApps
@CrestApps
Is there a way to create a link to a page that list a specific content type and creates only content types of a specific type? For example, I have a content types for "Colors" I want to add a link on the admin menu that'll take the user to a page that'll list only "Colors" content types. and when the user clicks "New" button, it'll create a new Color instead of giving the user an option to create other content-types.
3 replies
I tried this but it does not do anything special
.Add(S["Colors"], "5", t => t .Action("List", adminControllerName, new { area = "OrchardCore.Contents", ContentType = "Color" }) .Permission(CommonPermissions.EditContent) .LocalNav()
1 reply
resting
@resting
how do we backup OC? for a site with multi tenant
pbull001
@pbull001
Does anyone else feel content creation process is a little constricted? Why does content creation have to be an "admin" experience, especially given the fine grain control over content types. Granted I may just not how to use the platform. Currently you have to maintain two themes which is a little annoying. What was the reasoning behind the admin/user theme thinking and is it still a relevant default in today's user content generation world?
19 replies
How to render SEO content item parts to the page via Razor?
Josiah Nunemaker
@JosNun
Looking at the RegisterUserTask (https://github.com/OrchardCMS/OrchardCore/blob/bc9888bef3082f5f265acf24c07f360636c74ace/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs#L97), it looks like there's no way to pass it a value from the workflow, and just pulls the email from the form. Is this assumption correct, or is there an alternative way of passing an email in?
Nic Scott
@Nic-84
Did something happen with how a new user gets assigned an ID? Before I was able to use var userData = await Orchard.GetUserByIdAsync(User.Identity.Name); (using decoupled razor pages) and it would return all of the info and fields for that user. However, when I create a new user in v1.0.0 or v1.1.0, all I get is a null when using this method. The method works for the older users created in the previous version, but this method doesn't seem to work for users created in the new version for some reason. Is there another method or process for retrieving custom fields/info for users?
Mike Paterson
@devlife
Can anyone let me know if I'm missing anything? I'm trying to use the dynamic-cache tag helper but it doesn't seem to be working. It is enabled with debug mode but is just literally rendering the html <dynamic-cache id="my-cache-item">
Dean Marcussen
@deanmarcussen
You’re probably missing the ref to the tag helper in your viewimports file . Don’t forget to take a direct reference to the dynamic cache module as well
2 replies
Nic you need to use claimtypes.nameidentifer now.
1 reply
Mike Paterson
@devlife
image.png
Dean Marcussen
@deanmarcussen
I think it’s cache-id as attribute not id to trigger the taghelper
ah! i needed to exclude .TagHelpers from the _ViewImports
Josiah Nunemaker
@JosNun
Is there a way to get a YesSql session from an IExternalLoginEventHandler? If I try to use DI to add it in the constructor, It throws with a Unable to resolve service for type 'YesSql.ISession'.
4 replies
agono
@agono
Hi All! I'm thinking of creating a module that would work with "virtual content types". That means, the actual content would be retrieved online from a web api. Where are the best extension points for this in OrchardCore?
Paulo Carvalho
@ps-carvalho
Hi there
Im facing a bit of an issue setting following https://www.youtube.com/watch?v=C3-_51u9IlU , Im getting invalid_request This client application is not allowed to use the specified scope. and the scope in question is Profile , I have tried to to connect other clients and see to get same issue everytime with Profile , can anyone point me into the right direction?
Thanks in advance for any help :)
Kevin Welsh
@kdubious
YesSQL to SQL Server? Is there a good way to migrate a site? (Perhaps export all content, update appsettings.json, create the new site, and import? Is SQL better (faster?)?
Nic Scott
@Nic-84
On any of Orchard's login, registration, password reset, (any system form that Orchard presents to the user) I am running in to a problem of being able to click the submit button multiple times. When I go to simply log in, I can click the submit button repeatedly (because sometimes it takes a few seconds to log in) and it fires off a new instance of my workflow for every time I click the submit button. I am trying to register new users through the login form, and I believe it has broken some of my workflows because someone has clicked the "Register" button multiple times when trying to register. I get errors when trying to view my workflow instances of my registration workflow, and it's no longer letting these users verify their email addresses because they appear to be broken. Could some code be put in place to only allow the user to click any submit/register button once?
Nic Scott
@Nic-84
An update to my previous post: I can't get access to any of my workflows now on my server. Everything still seems to work fine locally, but when I test them out on my server I just get a "This page isn't working, HTTP Error 500". Any ideas why workflows are working locally, but not on the server? Is there a folder that needs permissions updated for some reason? Sorry, I hardly know any .net, so this stuff is making me bonkers! Everything local works beautifully and is awesome...
Dean Marcussen
@deanmarcussen
@Nic-84 find the log file on the server and have a look at it, in prod we don't return anything more than a 500, so you have to look in the logs. They're in App_Data/Logs Depending on how you deployed them you may have to renegerate some data protection keys / urls on the http request activity. if that's what you're using
1 reply
Josiah Nunemaker
@JosNun

Is there a way to call Orchard.DisplayAsync from a page in the Pages/ folder? I have a page that looks something like this:

@page "/{item}/form"
@inject OrchardCore.IOrchardHelper Orchard

@{
    var itemPath = ViewContext.RouteData.Values["item"];

    var contentItem = await Orchard.GetContentItemByHandleAsync("slug:" + itemPath, true);
}

<div>
    Have some content:
    @await Orchard.DisplayAsync(contentItem);
</div>

And it can't seem to find DisplayAsync on Orchard? 'IOrchardHelper' does not contain a definition for 'DisplayAsync' and the best extension method overload 'OrchardRazorHelperExtensions.DisplayAsync(IOrchardDisplayHelper, ContentItem, string, string, IUpdateModel)' requires a receiver of type 'IOrchardDisplayHelper'. Is there a way to inject an instance of IOrchardDisplayHelper instead of IOrchardHelper?

3 replies
Jasmin Savard
@Skrypt
Do you have a _viewImport.cshtml file?
image.png
pbull001
@pbull001
Is the LastResult of an activity accessible via a Liquid expression e.g. Workflow.LastResult?
Nic Scott
@Nic-84
@deanmarcussen, or if anyone else has any ideas - This is in reference to my post a few posts up... I added logging to my site and I see the log file now. I will mention that I have created a custom email task to use in workflows, and it looks like that's where the error is coming from. Here is the error that I get: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|ERROR|An unhandled exception has occurred while executing the request. System.Exception: Shape type 'CustomEmailTask_Fields_Design' not found. And then there is probably like 500 or more lines of stack trace data. Again, the workflows work great locally. I am only running in to this problem on my dev/prod server.
Dean Marcussen
@deanmarcussen
CustomEmailTask_Fields_Design
did you forget to publish this file? it doesn't look like one of orchard's view files
Nic Scott
@Nic-84
Is there a reason why it wouldn't get published? All of my files for the CustomEmailTask for the workflows are included and part of my project. I will keep researching to see if I can find anything, but as far as I can tell, everything is getting published.
I will also note, I am getting both of these errors/exception, not just the one:
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|ERROR|An unhandled exception has occurred while executing the request. System.Exception: Shape type 'CustomEmailTask_Fields_Design' not found
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|ERROR|An exception was thrown attempting to execute the error handler. System.InvalidOperationException: Multiple handlers matched. The following handlers matched route data and had all constraints satisfied: Void OnGet(), Void OnGet()
I'll keep searching, but if you have any ideas in the meantime...
Niraj Soni
@ns8482e
What kind of project it is? Theme or module?
Kevin Welsh
@kdubious
@deanmarcussen could use some guidance on how to close out the PR for the doc I created from your dev team notes
Nic Scott
@Nic-84
I am using Orchard as a content management tool only. It's a decoupled razor page website. I have some workflows that publish/unpublish content items, as well as send email communications. I created a custom email workflow task to work specifically with my mail server instead of using the stock Orchard email settings (which I may switch back to). Everything works locally. My workflows actually work on the prod server, but when I log in to the Orchard admin and try to edit a workflow on my prod server, I get these errors.
Dean Marcussen
@deanmarcussen
did you remember to turn the module on @Nic-84
@kdubious sure, I'm here tomorrow for a bit. be good to tweak that one up and get it in
Kevin Welsh
@kdubious

2021-10-22 15:46:07.9675|Default|00-e58340824438a948a758976c2522db95-31eb2ee35aa67849-00||Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|ERROR|An unhandled exception has occurred while executing the request. Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PKDocument3214EC071B675274'. Cannot insert duplicate key in object 'dbo.Document'. The duplicate key value is (21).

Any ideas?

2 replies
@deanmarcussen I'll try to get on here tomorrow, not sure if I can
Nic Scott
@Nic-84
Yes, I have the email module turned on if that's what you are referring to. Some of the features of my site wouldn't work locally if something wasn't turned on, right? I feel like I probably need to abandon my custom email task for my workflows at this point. I was using them because I couldn't get the stock Orchard email module to work with my mail server. The email module works, but only when the encryption is set to none, so that's not going to cut it. Trying to use SSL just gives me errors. I was able to swap out the SMPT settings in my custom email workflow task and that worked. But I am going to have to figure out how to get the stock Orchard email module to work. I need to allow new users to verify their registration and manage their own password through email, and that only works with the stock Orchard email module.
3 replies
Niraj Soni
@ns8482e
Is your custom worflow task is in module or web application?
if its in web application check if your shape file is copied when you publish your web app
Richard Garside
@NogginBox
I've got Azure Devops setup to deploy an Orchard site with my own theme project.
The theme static files like CSS and images are not being displayed. I think they've not been deployed. Am I missing a step or a project setting?
Dean Marcussen
@deanmarcussen
have you checked they are in git @NogginBox . often the wwwroot folders are ignored by the default .gitignore
Richard Garside
@NogginBox
@deanmarcussen they're in there. Do all the files need a build action setting on them?