by

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)

David
@ChocoMachine

I'm Desperate! How do I access the listParts within a List within a content item?

 @foreach (var item in Model.ContentItem.Content.ListPart)
    {
        <h4 class="service-heading">@item</h4>
    }

Is producing

       "FeedProxyUrl": null
        "FeedItemsCount": 20

I'm at a loss! Please what do I need to do to render the ContentParts in a List ?

4 replies
Mario Fuentes
@mario-fuentes
@jtkech thank you!
BJury
@BJury
is it possible for the context in a po file to be a wildcard instead of the actual source. I can't see a way of doing it here https://docs.orchardcore.net/en/dev/docs/reference/modules/Localize/
Stu Ratcliffe
@sturatcliffe
Hi all, is there any way of setting text fields, or any other fields for that matter, to be readonly?
Or if not, any plan on the horizon to add that kind of support?
Sébastien Ros
@sebastienros
@sturatcliffe who would define the content, and when? What is the business case you have for this, just to understand what would be the best thing to do in this case.
3 replies
BJury
@BJury
arg. I disabled the creation of new Taxonomies by mistake, I re-enabled it and now I just get lots of 'object reference not set' errors when I try to edit one.
BJury
@BJury
so apparently you can delete a content type that is used by others. No idea how it happened. But delete the type your taxonomy uses and it'll delete and the site will continue to work until you try to edit said taxonomy!
2 replies
Mario Fuentes
@mario-fuentes
Any example of how to use EF inside a module with tenant support?
dhawal-mrm
@dhawal-mrm
How to fix: No service for type 'OrchardCore.Liquid.ILiquidTemplateManager' has been registered?
dhawal-mrm
@dhawal-mrm
@BJury @sebastienros
@jtkech
Dean Marcussen
@deanmarcussen
Try enabling the Liquid feature -> Configure / Features / Liquid. Maybe there is a missing dependency somewhere
Sébastien Ros
@sebastienros
@dhawal-mrm could be the case in decoupled mode, as the theming engine, where this service comes from, is not enabled in this case. Is the use case that you are doing decoupled or headless cms, and you try to evaluate something that can have liquid in it? How can we reproduce this?
Jean-Thierry Kéchichian
@jtkech
@sebastienros thanks for the link, interesting, i will read it more in depth when i will have time, about the ViewBufferTextWriterContent we did it together ;) So, if i understand correctly, we would just need to define it in a lower level namespace
Sébastien Ros
@sebastienros
seems like only a namespace issue ... to be verified, didn't read in details
David
@ChocoMachine

is it possible to get the container of a content item in Razor?

For instance in fluid you can do this:

{{ Model.ContentItem | container | display_text }}

Which I am assuming returns the container of the content item ( which can then be rendered).

I am trying to get a many to one on the same page (if that is possible), in the sense of displaying some content from the parent as well as the details of the current shape. I see that Orchard Core cascades down naturally, but what about pulling content from parents?

alin-devnet
@alin-devnet
Hi, is it possible to restrict the number of content items that can be created for a content item type?
BJury
@BJury
You can stop more being made, but to have a hard cap you'd have to write something for that.
So you could make say 5 of something, unpublish 3 and turn off the creation.
Alex
@jasper22
Hi
I'm new to Orchad and just pulled the latest (?) version
Whenever I'm trying to run it from VS Code on Linux I get an error in Firefox console: jQuery is not defined
and actual site is freezed
Is there anything I'm missing ?
I'm on 'dev' branch, already run 'npm run postinstall' and 'npm run rebuild'
everything completed successfully
alin-devnet
@alin-devnet
@BJury thanks for that, I'm looking for a more configuration driven solution.
Dean Marcussen
@deanmarcussen
@jasper22 it would by default load jQuery from a cdn so can you check your network tab for load errors
alin-devnet
@alin-devnet
how can I query a content item by a custom field using graphql? tried following the documentation, but I can't get the filtering to work. Am I right in expecting the custom field to show under the where node in the graphql explorer? as it's now showing atm.
Alex
@jasper22
image.png
@deanmarcussen Here is a screenshot of error:
image.png
@deanmarcussen Here is screenshot of 'network' tab:
image.png
@deanmarcussen and here is screenshot of 'inspect' tab:
it's really seems that coming-soon.min.js using jquery before it downloaded at all
I'm just started with Orchad - may be there's a way to move the declaration/using of coming-soon.min.js just below <script> tag that loading the jquery ?
Dean Marcussen
@deanmarcussen
ah cool @jasper22 you found a bug in the coming soon theme. the scripts are def registered in the incorrect order. we should fix that. can you open an issue?
Alex
@jasper22
@deanmarcussen :) :) yes I can. Will do now
Alex
@jasper22
Dean Marcussen
@deanmarcussen
great issue report cheers @jasper22 :)
Yuriy Zaletskyy
@YuriyZaletskyy
hi, I want to ask if it is possible to import content from old orchard to orchard core?
or as another option, migrate data from old db to a new one?
Sébastien Ros
@sebastienros
@YuriyZaletskyy you'll need to export your data to the new json import/export format.
Has nobody done some sort of migration tool for the content types and data already? we don't support it oob but I assume it shouldn't be that hard. I feel like i am asking every few months ;)
William Best
@wpbest
Chech out Orchard Skills new YouTube Video: Stripe payments in Orchard Core: https://youtu.be/i3nJGNqHzdU
Alex
@jasper22
Incorrect ZIndex on video element on ComingSoon theme - hide foreground text
should I open an issue ?