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

    BA7YA

    11/29/2022, 9:37 AM
    Hi. Should I create a bug in Github? Or it reproduces only in my project?
  • b

    BA7YA

    11/29/2022, 9:41 AM
    I have exactly the same behaviour
  • h

    Harings Rob

    11/29/2022, 9:42 AM
    Yes, please create an issue with minimal setup to reproduce.
  • f

    FireEagle

    11/29/2022, 9:46 AM
    Hello everyone! I have a question about revisions and user activity. I need to show all user actions (like in revisions when edit some record) at users page. Is there an existing way to do it? Or may be someone already did it. Thx!
  • h

    Harings Rob

    11/29/2022, 9:47 AM
    Hey @FireEagle I think you can use the dashboard for that: https://twill.io/docs/dashboard/#dashboard
  • k

    kalle

    11/29/2022, 9:49 AM
    I checked the module controller and it seems that Twill doesnt currently track revision activity.
  • b

    BA7YA

    11/29/2022, 9:52 AM
    Here https://github.com/area17/twill/issues/1957 🙂
  • d

    dakaalim

    11/30/2022, 1:13 AM
    Is
    /cms/users
    working the way it is supposed to be?
  • i

    ifox

    11/30/2022, 8:58 AM
    Can you clarify your question @dakaalim ?
  • b

    BA7YA

    11/30/2022, 3:00 PM
    Hi guys. Is it possible to use secondary_navigation in Settings? Im doing it like that, but getting error
  • i

    ifox

    11/30/2022, 5:55 PM
    you can nest other things than settings there, but I think settings page themselves can only be in primary
  • b

    BA7YA

    11/30/2022, 6:27 PM
    @ifox I’m just planning to have inside settings one tab ‘main’ which will contains 2 more tabs inside . Is there any work around?
  • d

    dakaalim

    11/30/2022, 9:52 PM
    When I click on that, it redirects to my localhost's index.blade.php, is that normal? I was expecting twill to render a list of registered twill users
  • i

    ifox

    11/30/2022, 10:02 PM
    yes of course it should show a table of users (hiding superadmin though)
  • i

    ifox

    11/30/2022, 10:02 PM
    maybe a conflicting route?
  • d

    dakaalim

    11/30/2022, 11:57 PM
    But that is not the case for me, am I missing something? I notice that page has stopped working on the later version
  • d

    dakaalim

    12/01/2022, 12:09 AM
    vendor\area17\twill\src\Http\Controllers\Admin\ModuleController.php:362
    Copy code
    $view = Collection::make([
                "$this->viewPrefix.index",
                "twill::$this->moduleName.index",
                'twill::layouts.listing',
            ])->first(function ($view) {
                return View::exists($view);
            });
    
            return View::make($view, $indexData);
  • d

    dakaalim

    12/01/2022, 12:10 AM
    if your laravel project has a blade called
    view/index.blade.php
    , twill will render the route
    /cms/users
    on
    view/index.blade.php
    , otherwise twill renders it either on
    twill::users.index
    or
    twill::layouts.listing
  • i

    ifox

    12/01/2022, 12:17 AM
    viewPrefix is supposed to be coming from here though: https://github.com/area17/twill/blob/038ecacce11fdcfbbe7ee062d4b707f6f022b868/src/Http/Controllers/Admin/ModuleController.php#L1761
  • i

    ifox

    12/01/2022, 12:18 AM
    so I'm not sure why it would end up loading an index view at the root of the views folder
  • i

    ifox

    12/01/2022, 12:20 AM
    I see
  • i

    ifox

    12/01/2022, 12:21 AM
    having an index file at the root of the view folder indeed is getting resolved in this case
  • i

    ifox

    12/01/2022, 12:22 AM
    we can address that
  • d

    dakaalim

    12/01/2022, 12:22 AM
    out of twill question, when debugging things or your own product, big or small, what tools do you use? im just
    dd()
    ing stuff, is there a better way?
  • i

    ifox

    12/01/2022, 12:24 AM
    dd, logs, tinker/tinkerwell, xdebug
  • d

    dakaalim

    12/01/2022, 12:24 AM
    I see, thanks!
  • i

    ifox

    12/01/2022, 12:25 AM
    In JS I always use the debugger with breakpoints and I feel like I should use xdebug more in php, but a lot of stuff I just use dd too to be honest
  • d

    dakaalim

    12/01/2022, 12:26 AM
    the debugger on the browser's devtool window? (js)
  • i

    ifox

    12/01/2022, 12:27 AM
    yes, or connected to my IDE
  • h

    Hip-Hop

    12/01/2022, 5:21 AM
    Good morning. Tell me how to get values from repeaters in the class for the block in the getData method?
1...431432433...484Latest