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)

Dean Marcussen
@deanmarcussen
The keyvault stuff is super light weight @Jetski5822 an extension method and a class... in terms of release we're really just on some housekeeping and a couple of bits n bobs
Nicholas Mayne
@Jetski5822
Nice one - thats what I was looking for :) - thanks @deanmarcussen
Seth Cleaver
@scleaver
So just upgraded to latest (from pre-Fluid 2 build)... InputPart this was previously working {% assign contentData = Model.Value.ContentItem.Content.InputPart %} any ideas what has changed here
2 replies
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: Thanks for the merge. :)
@deanmarcussen: Let me know if there's anything I can help with.
7 replies
Guilherme Müller
@gmullernh

Hey people!
I'm in need for some help with Orchard Core.
I'm trying to set up a single site in the Orchard Core instance through the appsettings.json file.
After reading the documentation, I've reach the point where my appsettings.json contains the follow:

  "OrchardCore": {
    "DatabaseProvider": "Sqlite",
    "OrchardCore_AutoSetup": {
      "Default": {
        "SiteName": "MySiteName",
        "TablePrefix": "Test",
        "SiteTimeZone": "America/Sao_Paulo",
        "AdminUsername": "admin",
        "AdminEmail": "info@orchardproject.net",
        "AdminPassword": "OrchardCoreRules1!",
        "RecipeName": "MyCustomTheme"    // This theme recipe has been created in the project.
      }
    },
  }

The database gets set up correctly, but the default tenant doesn't load up and I'm throw at the tenant setup screen with all fields empty.
Anyone knows what might be wrong?

is-DW
@is-DW
How orchard core find out my "module"
2 replies
juergen-de
@juergen-de
To all who use list and order content manually: How do you order items manually with a pager being involved?
10 replies
somecodeguy
@dafergu2:matrix.org
[m]
Is there any gotcha's differences between this documentation for shapes in O1 and what exists in Orchard Core? https://docs.orchardcore.net/projects/O1/en/latest/Documentation/Accessing-and-rendering-shapes/#introducing-shapes
maggihd
@maggihd:matrix.org
[m]

Hi there,
I am just getting started with Orchard Core and I am currently working on a project in which I need to show a main menu and alternatively on some pages one of two different sidenavs.

So I started implementing this as different menus which seems to work fine so far but I just stumbled about the "navigation" documentation and now I am wondering which is the right approach.

Unfortunately I didn't find any further resources about the navigation but as far as I understood the documentation, the advantage of the navigation is that items can dynamically get created from the code (e.g. depending on loaded modules). Is this right and are there other important reasons to prefer the navigation over the usual menus?

resting
@resting
am using OO as headless cms, however some of my fields aren't appearing in graphiql. there're no errors either...is there anything i check?
basically, image field, text fields aren't appearing. only the title appears
Jeff Olmstead
@jeffolmstead
@Skrypt I see you wrote up the "Localization" portion of OrchardCore Docs (thanks!) and was wondering if you knew of a way to PREVENT localization files from copying over (i.e. every time I make a change and compile I get 'Copying translation files: {Project.Name}' which adds time when changes are made. It would be nice if it only copied over the localization I cared about (or option to copy none at all). If you have any tips / advice, it is appreciated
somecodeguy
@dafergu2:matrix.org
[m]
I'm creating a way for user's to add multiple backgrounds to a widget they drop in a flow part. I'm tackling this as a new content part they add to the content type, say HtmlWidget, and then they can set the background for the widget, or multiple if they so desire. The rendering of the part will render a css style block that sets the style for that widget based on the id of the widget.
Is there a good bit of documentation or sample code for setting up this part? It will need to contain a list of background definitions, which include the url or color, as well as the other css styles.
So far, I'm thinking I may need to create a new content field for the background definition. Am I wrong in this?
Partak
@Partak
My friends, when will version 1 of Orchard be released in full?
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: Any thoughts on my question above concerning a background image part?
6 replies
Troy Parkinson
@trousyt

I'm finding using GraphQL cumbersome on my front end. All I'm trying to do is a couple of queries: 1) Get a list of blog posts with "summary" fields (ie Title, author, etc); 2) Get a specific blog post with "detail" fields (ie Title, body, etc), as well as the post before and after the one I'm querying for.

Using GraphQL sucks because of all the "drilling down" you have to do on the results; I can map the results to another model, but what a pain. Anyone know of the best way to do this without GraphQL? I'm willing to implement a web API, but do I use Queries or what to actually get the data I need? I know I can use YesSQL directly, but how would I map a blog post to a model since "Blog Post" isn't a class?

1 reply
Kevin Welsh
@kdubious
HELP. I'm locked out of my admin tools. Between publishing to test / production and using the same DB for dev, I've somehow lost the ability to sign in.
Is there a way with access to the DB to "reset" a password to a known value?
Dean Marcussen
@deanmarcussen
dup. cut and paste a known salted password into the User document
Kevin Welsh
@kdubious
what's the key for the SALT? The file in the tenant folder? "DataProtection-Keys"?
Dean Marcussen
@deanmarcussen
salts aren't keyed. it's just identity
Kevin Welsh
@kdubious
so I can use any db from any site on this server?
Kevin Welsh
@kdubious
I'm still locked out. What do you think changed that made this happen?
13 replies
Troy Parkinson
@trousyt
Couldn't you just create a new user programatically?
5 replies
Kevin Welsh
@kdubious
Are these fields new:
image.png
somecodeguy
@dafergu2:matrix.org
[m]
hoping on the weekly OC standup.
Kevin Welsh
@kdubious
NOTE 1: When I try to log in with an email / password, the SQL is creates is this:
exec sp_executesql N'SELECT TOP (1) [OBXPontoonMan_Document].* FROM [OBXPontoonMan_Document] INNER JOIN [OBXPontoonMan_UserIndex] AS [UserIndex_a1] ON [UserIndex_a1].[DocumentId] = [OBXPontoonMan_Document].[Id] WHERE ([UserIndex_a1].[NormalizedUserName] = @p0)',N'@p0 nvarchar(4000)',@p0=N'TOBY@U****S.COM'
3 replies
Kevin Welsh
@kdubious
I get Success messages for this:
var rslt = await _userManager.CreateAsync(user,"pwd");
and this:
result = await _signInManager.PasswordSignInAsync(user, "pwd", true, lockoutOnFailure: false);
but I still get a 302 from the login form
and redirected back to the login form
Kevin Welsh
@kdubious
I enabled TRACE in the log file:
2021-06-15 19:40:07.1782|OBXPontoonMan|00-210ccfb003c4134b8561b64719afa138-420d14b2bdb9fc42-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request 
2021-06-15 19:40:07.3318|OBXPontoonMan|00-210ccfb003c4134b8561b64719afa138-420d14b2bdb9fc42-00||OrchardCore.Users.Controllers.AccountController|INFO|User logged in. 
2021-06-15 19:40:07.4117|OBXPontoonMan|00-e07b67d3753f5f42a02ea69534fd5a53-62f0050707be1b47-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request 
2021-06-15 19:40:07.4117|OBXPontoonMan|00-b17fbf83dcf0a848b5ed03a848a1e9c8-e8489671c0583a45-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request
Sébastien Ros
@sebastienros
You might not have the permission to see the resource you are trying to access
Kevin Welsh
@kdubious
I think I may have worked it out
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