Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dean Marcussen
    @deanmarcussen
    well at least you didn't fry the whole thing ;)
    Jasmin Savard
    @Skrypt
    Else I'd be poor for running on natural gaz all day. Cost around 50$ CAD per day.
    And it does not include heating the house
    Which would require a bigger generator :S
    mawendel
    @mawendel
    @dean i dont have a fieldname thats the issue
    {% assign categories = Content["alias:mycategories"] %}
    i'm trying to list all the taxonomies for a user
    i can get the taxonomy contentitem by alias, but as far as i can see the taxonomy_terms is related to finding what is already selected for another content item, and not the list itself?
    @deanmarcussen ups wrong person
    basically i just need to allow for a user to select one of the categories from the taxonomy list
    in a form that is then submitted to create this content item
    Dean Marcussen
    @deanmarcussen
    hmm, @mawendel yes, I am confused, but I think I see what you're saying. you're going to have to write some custom code to do that. You want to list all terms of a taxonomy, so you can display those terms for selection?
    mawendel
    @mawendel
    @deanmarcussen yes exactly
    i thought it would be pretty simple but god damn :D
    also if i try to dive into the content, at some point the json it returns is malformed
    I think it was if i {{categories.Content.TaxonomyPart.Terms }}
    then try to validate the json output
    my thoughts was otherwise to use two for loops, to iterate over the Terms and sub Terms to manually generate the list
    Dean Marcussen
    @deanmarcussen
    ok, I have no clue how to do it in liquid. But .Terms is a JArray with a nested JArray. It's not malformed as far as I can tell, and I've been working with it quite a lot over the last few weeks on and off.
    mawendel
    @mawendel
    @deanmarcussen
    Parse error on line 1:
    ...CreatorPage" } } ] }{ "ContentItemId": "
    -----------------------^
    Expecting 'EOF', '}', ',', ']', got '{'
    Dean Marcussen
    @deanmarcussen
    yeah like I said I have no clue how to do it in liquid. I'd be using razor by this point, but only cause I know it better, and liquid is harder to push pop into arrays
    mawendel
    @mawendel
    ok
    mawendel
    @mawendel
    I've tried to use liquid for everything so far
    i mean some of the idea of Orchard kinda goes if i just hardcore everything into cshtml, but maybe there are some places where i will have to
    Dean Marcussen
    @deanmarcussen
    Yeah it's up to you there. I just haven't spent much time with liquid, so can't offer much advice.
    I did finish of a very beta version of this over the weekend, it's not exactly what you're describing, but you might find some of the code / ideas helpful https://github.com/ThisNetWorks/ThisNetWorks.OrchardCore.AdminTree
    mawendel
    @mawendel
    @deanmarcussen thanks, let me check it out
    Who has made the taxonomy feature do you know?
    Dean Marcussen
    @deanmarcussen
    @sebastienros built taxonomies.
    mawendel
    @mawendel
    @deanmarcussen Ok maybe he can she some light on why it happens.
    However, I have just figured out how to get the correct data out! I only needed 3 hours of sleep and then i figured it out :-)
    the filter | display_text doesnt work when doing it like this. So i have to use category.TitlePart.Title directly .. thats it..
    Gencebay Demir
    @gencebaydemir_twitter
    image.png
    Dean Marcussen
    @deanmarcussen
    just use category.DisplayText
    Gencebay Demir
    @gencebaydemir_twitter
    I could not override OrchardCore.Users/Admin/Index.cshtml view ?
    Steven Spits
    @netwavebe
    @gencebaydemir_twitter There seems to be an issue with your theme? Yellow triangle on 'Dependencies'. Also make sure your custom theme is active/enabled.
    Gencebay Demir
    @gencebaydemir_twitter
    Admin module features can only be overriden within Admin Theme. I was try override with the default site theme :)
    Matt Kenney
    @themattkenney
    @dumbgamedev we are waiting to upgrade the AdvancedForms module to from Beta to 1.0. I would wait to try to use it until after that so that you can leverage any RC features.
    Sotiris Roussos
    @urbanit
    I asked again but I didn't manage to succeed... I need a different layout for a specific content type... I tried Layout-{ContentTypeName}.liquid & Layout-rul-{ContentItemPermalink}.liquid but no result... Any ideas?
    Dean Marcussen
    @deanmarcussen
    @urbanit I don't think there are alternates by default for Layout - ContentType or any url related alternates. Could be wrong. Probably you need to add an IShapeProvider to add the alternates you want. I'm not sure that layout would even know what the content type is tbh
    Sotiris Roussos
    @urbanit
    @deanmarcussen i am coming from O1... We had Layout alternates there.. That's why I 'm asking.. Anyway, what's your proposal? Adding IShapeProvider where?
    Dean Marcussen
    @deanmarcussen
    yeah I haven't seen any. it would be IShapeTableProvider. have a search of the code for the existing ones. Maybe there is one for layout I can't remember
    Sotiris Roussos
    @urbanit
    Ok, found it.... Adding a template named "ContentTypeName" and in my Content Template to add {% layout "ContentTypeName" %}
    Reference here: \src\docs\reference\modules\Liquid\README.md
    tempcode
    @PiemP
    @urbanit alternates exist in orchard core https://orchardcore.readthedocs.io/en/dev/docs/reference/modules/Themes/#alternates. I believe you need to use DisplayType to create a different layout for your content type (explained here https://orchardcore.readthedocs.io/en/dev/docs/reference/modules/Templates/#content-templates).
    Sotiris Roussos
    @urbanit
    @PiemP
    Sotiris Roussos
    @urbanit
    @PiemP still I believe that adding {% layout "ContentTypeName" %} at the beginning of your altermate Content template is the solution. Display type is not about layout