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

    jefsev

    01/26/2023, 7:34 PM
    OH
  • j

    jefsev

    01/26/2023, 7:35 PM
    I can just add name like with other field types?
  • i

    ifox

    01/26/2023, 7:35 PM
    Yes, and then by using
    renderNamedBlocks
    to render them
  • j

    jefsev

    01/26/2023, 7:37 PM
    thx! great news 😛
  • r

    rabol

    01/27/2023, 6:09 PM
    I'm new to twill, so bare with me 🙂 I just installed the rc3 and I was wondering how much the v3 is different from v2 - will the v2 doc still apply ?
  • i

    ifox

    01/27/2023, 6:17 PM
    Hi @rabol a lot from v2 still applies but there are a lot of new ways to do things too that are documented on https://twill.io/docs/3.x
  • r

    rabol

    01/27/2023, 6:18 PM
    Thanks - sorry I did not find that link before
  • i

    ifox

    01/27/2023, 6:19 PM
    it's on us, it's time we put the 3.x docs upfront with the stable being so close. We have a new documentation generator and some of the most up to date docs are only visible on GitHub or if you build the docs yourself locally.
  • r

    rabol

    01/27/2023, 6:20 PM
    newbie question: when creating a module, do you use Plural for the module name
    Copy code
    php artisan twill:make:module Posts
    ?
  • i

    ifox

    01/27/2023, 6:21 PM
    that's the expectation yes but the CLI will fix it for you if you put it singular anyway
  • r

    rabol

    01/27/2023, 6:22 PM
    But I only create one blog 🙂 Sorry - I get your point
  • i

    ifox

    01/27/2023, 6:22 PM
    Only one post on your blog?
  • r

    rabol

    01/27/2023, 6:23 PM
    No, but the module would be a 'Blog'
  • r

    rabol

    01/27/2023, 6:23 PM
    with Posts and Comments
  • i

    ifox

    01/27/2023, 6:23 PM
    If you want to manage a single blog record you would want to use a singleton module
  • i

    ifox

    01/27/2023, 6:24 PM
    they are exactly the same as a module but they have no listing since they store a single record. So you have a direct access to the form in the CMS navigation
  • i

    ifox

    01/27/2023, 6:24 PM
    so if you are looking to manage your blog settings or landing page, a singleton would be best
  • r

    rabol

    01/27/2023, 6:25 PM
    got it
  • i

    ifox

    01/27/2023, 6:25 PM
    and a regular module for posts
  • r

    rabol

    01/27/2023, 6:27 PM
    so first:
    Copy code
    php artisan twill:make:module Posts -N -B -S -M
    and then ```php artisan twill:make:module Comments --parentModel=Post```'
  • i

    ifox

    01/27/2023, 6:28 PM
    I don't think you're looking to nest posts are you?
  • i

    ifox

    01/27/2023, 6:29 PM
    you can also run without any flag and the CLI will ask you a bunch of questions
  • r

    rabol

    01/27/2023, 6:29 PM
    no, I would nest commnetns - so the otherway around
  • i

    ifox

    01/27/2023, 6:29 PM
    You probably want -R for revisions too
  • r

    rabol

    01/27/2023, 6:30 PM
    I'll give it a try, thanks!
  • r

    rabol

    01/27/2023, 6:34 PM
    small thing: Even if the 'box' around the info to add to the twill-navigation.php is nice, it would be nice without as it makes copy'n past easier 🙂
  • r

    rabol

    01/27/2023, 6:36 PM
    Copy code
    Route [twill..index] not defined. (View: /Users/rabol/code/web/twill/vendor/area17/twill/views/partials/navigation/_overlay_navigation.blade.php) (View: /Users/rabol/code/web/twill/vendor/area17/twill/views/partials/navigation/_overlay_navigation.blade.php) (View: /Users/rabol/code/web/twill/vendor/area17/twill/views/partials/navigation/_overlay_navigation.blade.php)
  • r

    rabol

    01/27/2023, 6:37 PM
    maybe it's better to look at the the morning
  • a

    amargoCactus

    01/27/2023, 11:33 PM
    hello, i updated twill to the lastest version in 3.x branch and some block clasess isn't working
  • a

    amargoCactus

    01/27/2023, 11:35 PM
    actually, all of them
1...453454455...484Latest