https://twill.io logo
Join Discord
Powered by
# ❓questions
  • i

    ifox

    09/21/2022, 11:46 PM
    ok, so what do you want to change in the navigation when you're on the services listing? Seeing "articles" in a sub menu?
  • i

    ifox

    09/21/2022, 11:46 PM
    or is your question about when you're on the article listing or form?
  • s

    saeed-sikandar

    09/21/2022, 11:47 PM
    look when I click service link from navigation
  • s

    saeed-sikandar

    09/21/2022, 11:47 PM
    I have list of all services
  • i

    ifox

    09/21/2022, 11:47 PM
    yes, makes sense
  • s

    saeed-sikandar

    09/21/2022, 11:48 PM
    I need to list all services in Services child but with articles url
  • s

    saeed-sikandar

    09/21/2022, 11:48 PM
    like If I one of services I want above page of each service
  • s

    saeed-sikandar

    09/21/2022, 11:49 PM
    did you got my point ?
  • i

    ifox

    09/21/2022, 11:49 PM
    did you mean "list all articles in Services?"
  • i

    ifox

    09/21/2022, 11:51 PM
    Sorry if I'm missing the point
  • s

    saeed-sikandar

    09/21/2022, 11:51 PM
    no when I hover on Service menu it shows the list of all services with title but when I click on any service title it open all articles of that particular service
  • i

    ifox

    09/21/2022, 11:53 PM
    In your screenshots could you add an annotation of what is missing/wrong, I feel like we're not understanding each other so it would be simpler to visualize what you're looking for
  • s

    saeed-sikandar

    09/21/2022, 11:53 PM
    please don't I know I'm week to explain
  • s

    saeed-sikandar

    09/21/2022, 11:53 PM
    alright
  • s

    saeed-sikandar

    09/22/2022, 12:03 AM
    does it makes sense now ?
  • s

    saeed-sikandar

    09/22/2022, 12:03 AM
    this is what I want
  • i

    ifox

    09/22/2022, 12:28 AM
    Ooooh ok, yes it totally does now but that's not currently possible without customizing the navigation partials manually and adding your own code to do this. How is it supposed to work if you have a lot of services? It means that all pages of the CMS needs to query all your services to get their titles.
  • i

    ifox

    09/22/2022, 12:30 AM
    I understand at a small scale it wouldn't really be an issue, but such feature would quickly become a problem with more content. now, it is entirely possible to achieve with a bit of work in your case. It would be a bit long for me to explain right now but tomorrow I can give you more info if you're looking to implement it
  • s

    saeed-sikandar

    09/22/2022, 12:42 AM
    make sense 🤔
  • s

    saeed-sikandar

    09/22/2022, 12:43 AM
    no friend I got your point if there's was more services UI would crash and then I would go another issue
  • s

    saeed-sikandar

    09/22/2022, 12:43 AM
    Thans Alot for your support thank you 👍
  • h

    Hip-Hop

    09/22/2022, 3:09 AM
    Good morning, may I ask a question? To store blocks we have a folder views/admin/blocks Is it possible to store blocks in folders? I want to separate the blocks into folders.
  • h

    Hip-Hop

    09/22/2022, 4:26 AM
    The question is irrelevant! Implemented through "directories" in twill.php
  • h

    Hip-Hop

    09/22/2022, 7:14 AM
    Still, the question remains relevant to me. Is it possible to assign a storage location for each block? I want to store blocks in different folders. There is such a code, but the block is still defined in the admin panel, although logically it should give an error that it was not found.
    i
    • 2
    • 4
  • c

    Camille

    09/22/2022, 7:40 AM
    Hi everyone, I have a problem that is not blocking but still quite weird, I wanted to share it with you to see if others have had this problem. On this project I am working with Twill capsules. # Context: I have a form to build on the CMS that needs 2 different repeaters, I followed the documentation for that => https://twill.io/docs/guides/json_repeaters.html#json-repeaters everything is saved in the database and I can send them to the frontend. Now I just have a problem with an error in google console. # Explanations: On the video, I show the weird behavior I have and you have the form code as well. If you need anything else feel free to ask ✌️. # Versions Twill version: 2.8.8 Laravel version: 9.23.0 PHP version: 8.1.8 Database engine: PostgreSQL 13.3
    i
    h
    a
    • 4
    • 16
  • i

    ifox

    09/22/2022, 9:01 AM
    Repeaters issue
  • i

    ifox

    09/22/2022, 9:03 AM
    Blocks directories
  • m

    mateoD

    09/22/2022, 10:41 AM
    Hello everyone, it is possible to render one specific block somewhere on page not all like
    Copy code
    {!! $item->renderBlocks() !!}
    does
  • i

    ifox

    09/22/2022, 10:45 AM
    Hi @mateoD for sure, you can get the block you need from the
    blocks
    relation on your model and call it's render method to get a string you can use anywhere.
  • m

    mateoD

    09/22/2022, 11:01 AM
    that means to create in model a function to get dhe block data from database and then call to blade $item->functionName(). This foreach block a have in my module ?
1...404405406...484Latest