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)

Aleksey Filippov
@happygrizzly
Here's the list of the views I'm using so far:
image.png
Menu.liquid contains the following markup:
image.png
But it doesn't even contain nav elements
somecodeguy
@dafergu2:matrix.org
[m]
@happygrizzly: Your alias doesn't match. See line 7 in your Layout.liquid compared to what you entered in the alias field for your menu.
Aleksey Filippov
@happygrizzly

I tried setting the alias to match menu content items aliases:

{% shape "menu", alias: "alias:main-menu" | append: "-" | append: Culture.Name, ... %}

to no avail

somecodeguy
@dafergu2:matrix.org
[m]
whatever is in your alias text box for the content item....let's call that "myalias"
{% shape "menu", alias: "alias:myalias", <reset of parameters here> %}
you can't put in the filter like that. I believe that will create the shape then pass the shape to the append filter.
{% assign aliasvar = "alias:main-menu" | append: "-" | append: Culture.Name %}
then
{% shape "menu", alias: aliasvar, ..... %}
Aleksey Filippov
@happygrizzly
If you look at OrchardSkills tutorial (https://github.com/OrchardSkills/OrchardSkills.OrchardCore.Localization/tree/main/LocalizationTheme/Views) I mentioned earlier. There's a tricky part with ContentCulturePicker shape. It's in the 'Templates' recipe step. There he defines a special alias to match the localized versions of menu. But I haven't seen him doing it in the Layout view. ??
4 replies
somecodeguy
@dafergu2:matrix.org
[m]
np. :)
Aleksey Filippov
@happygrizzly
Why wouldn't Views/Menu.liquid get called given it's in a referenced / custom theme?
Aleksey Filippov
@happygrizzly
image.png
I'm sure I'm getting a different template, and I think that it relies on the alias
Aleksey Filippov
@happygrizzly
How do I use a liquid template for the Menu provided that I have three different menu aliases:
  • main-menu-uk-ua
  • main-menu-ru-ru
  • main-menu-en-us
    ?
6 replies
Seth Cleaver
@scleaver
Gday, when I bring a multi-tenant DB and azure shells down from production in order to troubleshoot/ locally what do I need to do to get the default site to kick up... got the connection strings right but localhost is trying to load a setup screen instead of the default site.
6 replies
Kevin Welsh
@kdubious
Getting an error trying to run a new front end application against an existing OC DB setup:
An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object. OrchardCore.ContentManagement.Display.ContentItemDisplayManager.BuildDisplayAsync(ContentItem contentItem, IUpdateModel updater, string displayType, string groupId)
3 replies
Praveen Raghuvanshi
@praveenraghuvanshi
Is NoSQL DB supported in Orchard? Now, Azure CosmosDB has a consumption based plan which is a serverless offereing. I am planning to use that along with Azure App service plan.
4 replies
Antoine Griffard
@agriffard
image.png
7 replies
Does anyone have this kind of problem?
somecodeguy
@dafergu2:matrix.org
[m]
I've not seen that but I haven't updated to the latest recently.
Seth Cleaver
@scleaver

I am in a bit of error hell here... 2 days ago OC sites I host started spitting out uncompleted chunks of HTML even though the code has not been touched recently. I am on a version of OC that is around 6 months old. The error I am seeing is below... anyone seen similar?

OrchardCore.DisplayManagement.Implementation.DefaultHtmlDisplay|ERROR|Func`2 thrown from System.Func`2[[OrchardCore.DisplayManagement.Implementation.ShapeDisplayContext, OrchardCore.DisplayManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Threading.Tasks.Task, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] by ArgumentOutOfRangeException System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'index')

I am looking at upgrading to the latest but that is not going as smoothly so looking for the best avenue to resolve.

Dean Marcussen
@deanmarcussen
@scleaver that one looks like the asp.net core security patch issue I mentioned to you yesterday . upgrade is probably the best solution, but the asp.net fix should have been in this months patch released a few days ago from asp.net
Seth Cleaver
@scleaver
@deanmarcussen I'l PM you
Nicholas Mayne
@Jetski5822
Morning all - Kinda in a bind, I need the Azure Keyvault stuff, but its not on master... and we havent released in a while. Now, I could just copy it locally... but thought - peeps! when are we releasing? its been over a year now...
I see there are no P0's, 2 P1's... are the P1's the blockers?
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?
9 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?
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?