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

    ifox

    03/10/2023, 1:30 AM
    yup exactly
  • m

    MD

    03/10/2023, 1:30 AM
    yeah cool - is there docs for multisite? I couldn't see them on the twill site
  • i

    ifox

    03/10/2023, 1:32 AM
    there's isn't much more to say than what's in the configuration section about it. routing for frontend is really up to you. Missing part might be around how to setup permalinks accordingly. feel free to ask if you're blocked
  • m

    MD

    03/10/2023, 1:33 AM
    ahhhh yep missed it in the config page
  • m

    MD

    03/10/2023, 1:46 AM
    @ifox the subdomain routing is just for routing yeah? like I'd still have to manage what site a piece of content belongs to myself cos afaik Twill doesn't handle that side of things?
  • i

    ifox

    03/10/2023, 1:47 AM
    correct
  • m

    MD

    03/10/2023, 1:47 AM
    👌
  • m

    MD

    03/10/2023, 4:47 AM
    What's the go with
    config('twill.namespace')
    vs
    App\Twill\
    ?
  • m

    MD

    03/10/2023, 4:49 AM
    I can see
    twill.namespace
    is used everywhere except
    SingletonModuleController
    which would mean I could move a lot of my "frontend" models to a different namespace than my backend but I'm confused about why
    App\Twill
    is hard-coded for Capsules and Blocks?
  • m

    MD

    03/10/2023, 4:49 AM
    I'm happy to work on a pull request to standardise usage if that's needed?
  • m

    MD

    03/10/2023, 5:01 AM
    For my use-case I've got multisite going so I want to separate my frontend CMS models from my backend platform models so I'm looking to change
    twill.namespace
    to
    App\Frontend
    or
    App\Twill
  • a

    AntonyPL

    03/10/2023, 7:47 AM
    @ifox i change to default modules, and its work. But i would like to use Capsules. So i need some helps to include partials form project_folder->resources->view->admin. Maybe i forgot to config my Page Capsules, like https://github.com/cwsdigital/twill-capsule-pages/blob/main/config.php ?
  • h

    Harings Rob

    03/10/2023, 7:49 AM
    @AntonyPL are. you on twill 3?
  • h

    Harings Rob

    03/10/2023, 8:03 AM
    You should be access the view based on the capsule name (case sensitive):
    view('Tests.resources.views.test')
    for a capsule named
    Tests
  • a

    AntonyPL

    03/10/2023, 8:06 AM
    @Harings Rob nope, Twill 2x (stable release)
  • h

    Harings Rob

    03/10/2023, 8:07 AM
    you could try the same pattern
  • a

    AntonyPL

    03/10/2023, 8:12 AM
    Another approach, how can I use @include('admin.utils.builder.forms.seo._local') [form: resources/view/admin/utils...] in Twill/Capsule/Pages/resources/view/admin/form.blade ? How declare project default resources view in include ?
  • h

    Harings Rob

    03/10/2023, 8:17 AM
    @include includes a view path afaik. So you can refer either a local resource or a capsule resource (given that works on 2.x per my example above)
  • b

    BlazinglyFast

    03/10/2023, 8:23 AM
    Hey there. What is the best way to add comments for the blog module? If anyone know if there is some package, I would be grateful 🙂
  • h

    Harings Rob

    03/10/2023, 8:25 AM
    hey @BlazinglyFast there is no package for that afaik. But you could add a module for comments specifically.
  • b

    BlazinglyFast

    03/10/2023, 8:26 AM
    I see, thanks.
  • a

    AntonyPL

    03/10/2023, 8:30 AM
    So i can't mixed? If i use Capsule i must @include form capsule resources folder ?
  • h

    Harings Rob

    03/10/2023, 8:31 AM
    You lost me here, what is the issue you are having? What are you trying to solve?
  • a

    AntonyPL

    03/10/2023, 8:36 AM
    I trying to include a partial blade from local app resources into capsule resources - in my case, Page Capsules 🙂
  • h

    Harings Rob

    03/10/2023, 8:36 AM
    That should work just the same as you would do it in any file.
  • h

    Harings Rob

    03/10/2023, 8:37 AM
    @include('name.of.view')
  • a

    AntonyPL

    03/10/2023, 8:48 AM
    i try yesterday and does't work in capsule. i revert into model approach - its work fine.
  • k

    kalle

    03/10/2023, 9:42 AM
    Can you tell us the full error? View not found or something else?
  • f

    feelgoodinc

    03/10/2023, 10:11 AM
    Thanks @ifox, i'll check tiptap, that should work i guess
  • n

    Nechalon

    03/10/2023, 11:26 AM
    Hello There, is there a way to get db row from twill forms through id? like
    'name' => id->email,
1...474475476...484Latest