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

    dakaalim

    08/09/2022, 10:34 PM
    Is this a bug or me not following the instruction correctly?
  • i

    ifox

    08/09/2022, 10:38 PM
    singleton should be auto seeded by default (when trying to access them for the first time in the CMS) unless you configured it otherwise.
  • i

    ifox

    08/09/2022, 10:38 PM
    you should still be able to call that from artisan tho
  • i

    ifox

    08/09/2022, 10:39 PM
    did you try providing its actual namespace? since Laravel only looks in the root database/seeds folder
  • d

    dakaalim

    08/09/2022, 10:49 PM
    Copy code
    Migrate your database & seed your singleton module:
    
        php artisan migrate
    
        php artisan db:seed AboutPageSeeder
    
    Enjoy.
    😵‍💫 Okay, I forgot about the namespace, I just copied what the instructions say on the terminal, thankyou
  • i

    ifox

    08/09/2022, 11:17 PM
    👍 we could make that instruction dynamic if the singleton is created as a capsule
  • a

    alitak

    08/10/2022, 7:10 AM
    Hi, we are heading to choose a cms for our next few project. I am currently building a demo system with Twill, and as I see, it is a really nice and simple system. Meanwhile I have some issues, which I cannot solve and I haven't find any solution in the docs. Maybe it is my fault, but please help me.
  • a

    alitak

    08/10/2022, 7:11 AM
    I added a block editor, with quote, text and image, but the quote does not appear in the list. Is there any other stuff, which I must set to use other block editors? Only text and image works for me
  • i

    ifox

    08/10/2022, 7:19 AM
    Hi @alitak these are default blocks provided as a basic example, you are meant to create your own blocks in Twill. There are a couple examples you can enable if you find them useful, by updating
    twill.block_editor.use_twill_blocks
    which currently defaults to
    ['text', 'image']
    .
  • i

    ifox

    08/10/2022, 7:20 AM
    in
    config/twill.php
  • a

    alitak

    08/10/2022, 7:21 AM
    oh, i see, thank you. I will check the configs
  • a

    alitak

    08/10/2022, 7:22 AM
    I have an other question for the blocks. Is there any way to define translatable fields within the form blade?
  • a

    alitak

    08/10/2022, 7:22 AM
    Or I must create custom block editor for the translatable fields?
  • i

    ifox

    08/10/2022, 7:23 AM
    'translated' => true
    on the fields you're using in a block is all you need
  • a

    alitak

    08/10/2022, 7:23 AM
    yes, on the formField it works like charm, but if I want for example to translate the text block editor, can I define it from the form blade?
  • i

    ifox

    08/10/2022, 7:24 AM
    Do you mean the whole field? As in creating different blocks per language?
  • i

    ifox

    08/10/2022, 7:25 AM
    if you mean on the text block that is provided by default, you'd need to create your own text block with translated true on the field you need translated
  • i

    ifox

    08/10/2022, 7:25 AM
    your own from resources/views/admin/blocks will take precedence
  • a

    alitak

    08/10/2022, 7:25 AM
    ok, I see
  • a

    alitak

    08/10/2022, 7:26 AM
    maybe this should be a nice improvement in the system, if i could define some formField parameters within the blocks 🙂
  • a

    alitak

    08/10/2022, 7:26 AM
    i will create custom block, yesterday I tried it and it was really easy
  • i

    ifox

    08/10/2022, 7:27 AM
    do you mean from
    @formField('block_editor')
    , being able to pass options to the blocks?
  • i

    ifox

    08/10/2022, 7:28 AM
    Like this https://github.com/area17/twill/issues/1688?
  • a

    alitak

    08/10/2022, 7:29 AM
    for example, yes
  • a

    alitak

    08/10/2022, 7:29 AM
    or like this for translated field
  • i

    ifox

    08/10/2022, 7:29 AM
    ok yeah I see
  • a

    alitak

    08/10/2022, 7:29 AM
    or any other parameters for the inputs
  • i

    ifox

    08/10/2022, 7:30 AM
    can you leave a comment on that issue with this idea?
  • a

    alitak

    08/10/2022, 7:30 AM
    yes, of course, thank you!
  • s

    Sami

    08/10/2022, 11:23 AM
    Hello, what's the advantage of using
    $relatedBrowsers
    property? I've been using browsers for a while but I noticed this property today (also read something in docs) and wonder what is it good for. Seems it allows using
    getRelated(...)
    but what's the difference from using regular relationships functions?
1...371372373...484Latest