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

    Bibo

    06/13/2021, 12:18 AM
    please is the following php extensions differences could make this problem: The Local Machine: mysqli => mysqlnd 7.4.4 mysqlnd => mysqlnd 7.4.4 pdo_mysql => mysqlnd 7.4.4 On the live server: mysqli => mysqlnd 7.4.4 mysqlnd => mysqlnd 7.4.4 pdo_mysql => 5.7.34
  • b

    Bibo

    06/13/2021, 12:59 AM
    I found it 😆 it was the pdo_mysql php module, after I made the right module version to mysqlnd 7.4.4 it worked perfect, thanks you @User for replying and support, by the way, twill is an amazing package, I can say it the future cms which is not discovered yet, thanks again 🙂
  • r

    Rayderxx

    06/14/2021, 8:27 AM
    Why the thumbnail in the browser field is not crop by default ?
    Copy code
    $relatedElement->defaultCmsImage(['w' => 100, 'h' => 100])
    
    //should be better with :
    $relatedElement->defaultCmsImage(['w' => 100, 'h' => 100,  'fit' => 'crop'])
  • i

    ifox

    06/14/2021, 10:09 AM
    that'd make it image rendering service specific but you're right
  • i

    ifox

    06/14/2021, 10:10 AM
    you should actually be able to add it through https://github.com/area17/twill/blob/4aebb3e3a76c09613af3ee660585a63bbff45914/config/imgix.php#L37 or https://github.com/area17/twill/blob/4aebb3e3a76c09613af3ee660585a63bbff45914/config/glide.php#L39
  • s

    Shiftless

    06/14/2021, 10:38 AM
    Hello everybody. We are currently updating to 2.3.1 and are changing our blocks and repeaters to the annotation logic to get our twill.config cleaner. We are haveing a custom block with a custom vue template that gets included in a block via
    @include('admin.block.imageBlock, ['name' => 'image', ...some more vars...])
    now i have to add the annotation to the ImageBlock block to make it work. But then the annotations are getting rendered as normal text. What am i doing wrong? Is there some speciality to use blocks nested in blocks?
  • i

    ifox

    06/14/2021, 1:06 PM
    @User I think you'd need to move the content of the block form to another blade file, so that when you include it elsewhere you're not importing the annotations.
  • d

    Dmi3yy

    06/14/2021, 5:25 PM
    How can i do custom widget on dashboard ? need take view from vendor?
  • d

    Dmi3yy

    06/14/2021, 6:33 PM
    do with change layout in /resources/views/vendor/twill/layout/dashboard https://tppr.me/RKHAz
  • s

    Shiftless

    06/15/2021, 7:42 AM
    okay thank you i did end up with a folder /admin/blocks/custom where i did place the included block blade without the annotations.
  • d

    domihagen

    06/15/2021, 8:51 AM
    We are also updating our Config now, after updating to latest Twill-Version a week ago. Now we also got the same Issue as @User => Thanks for the solution! But we also getting this Errors now in Blocks-Editor
  • s

    Shiftless

    06/15/2021, 8:52 AM
    @User if you have a preview template blade you can still set the config for the preview template or you have to move your blade for the preview to the location in the error message
  • d

    domihagen

    06/15/2021, 8:53 AM
    @User we have them already defined from previous Version 'block_views_path' => 'components.blocks', 'block_single_layout' => 'layouts.block-preview',
  • s

    Shiftless

    06/15/2021, 9:02 AM
    may be run a
    php artisan config:clear
    or a
    php artisan twill:build
    i had to run these after the update. we got empty blocks before i ran these commands.
  • d

    domihagen

    06/15/2021, 9:21 AM
    This didn´t help. The issue is still there...
  • d

    domihagen

    06/15/2021, 9:28 AM
    Got it! The config musst be under the parent 'block_editor' now.
    Copy code
    'block_editor' => [
        'block_views_path' => 'components.blocks',
        'block_single_layout' => 'layouts.block-preview',
        'block_preview_render_childs' => false,
    ],
  • i

    ifox

    06/15/2021, 9:49 AM
    this hasn't changed @domihagen, did you have to move that?
  • d

    domihagen

    06/15/2021, 9:50 AM
    Yeah, something went wrong on the CleanUp 😅 . I was just reviewing the Changes from an other DEV.
  • s

    Shiftless

    06/15/2021, 10:02 AM
    ah i did expect it there tbh. Thats why i did not ask for the full config. 😄
  • r

    Rayderxx

    06/15/2021, 10:55 AM
    hhmm is it possible to load the related morph in the block preview ?
  • r

    Rayderxx

    06/15/2021, 10:57 AM
    Copy code
    // in the preview the blockable relaion is not loaded
    <div class=" resource-{{$block->blockable->getTable()}}  
    </div>
  • i

    ifox

    06/15/2021, 2:05 PM
    https://github.com/area17/twill/issues/797
  • r

    Rayderxx

    06/15/2021, 2:22 PM
    @User : It's not ideal and causes issues when trying to duplicate modules that use these blocks, but it's better than nothing. 😏
  • i

    ifox

    06/15/2021, 2:35 PM
    I know right, we still need to actually address this
  • i

    ifox

    06/15/2021, 2:35 PM
    PR welcome 🙂
  • r

    Rayderxx

    06/15/2021, 5:16 PM
    ahah I will have to dig into the vuejs code to do a pr 😦
  • i

    ifox

    06/15/2021, 5:37 PM
    hmm not necessarily, I think having blockable available can be addressed from the backend
  • v

    void

    06/17/2021, 3:37 PM
    after running route:list I'm getting App\Http\Controllers\Admin\CarController that is a deleted controller no longer used tried dump-autoload but that remains the whole project has nowhere "CarController" used or declared anymore
  • i

    ifox

    06/17/2021, 4:23 PM
    did you leave a
    Route::module('cars')
    in
    admin.php
    ?
  • v

    void

    06/17/2021, 4:58 PM
    yup that was it thanks 🙂
1...262728...484Latest