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

    Dmi3yy

    05/23/2021, 11:38 AM
    Try work with files $page->file('contract') - render link:
    Copy code
    http://localhost/storage/uploads/9ad958b8-1d36-478e-8a35-af9bb76e778d/ContractServices.pdf
    but get 404 error after go by link ( https://tppr.me/dLypW
  • d

    Dmi3yy

    05/23/2021, 11:53 AM
    https://tppr.me/Af8Se
  • i

    ifox

    05/23/2021, 11:58 AM
    Did you run artisan storage:link?
  • d

    Dmi3yy

    05/23/2021, 12:53 PM
    Nope, thanks
  • u

    user

    05/24/2021, 1:02 PM
    Can anybody tell me which formField the following is?
  • i

    ifox

    05/24/2021, 1:12 PM
    Copy code
    @formField('multi_select', [
        'name' => 'sectors',
        'label' => 'Sectors',
        'options' => $sectorsList,
        'placeholder' => 'Select some sectors',
        'unpack' => false
    ])
  • h

    hazelbag

    05/24/2021, 2:18 PM
    Hey all, so I created a block which has a paragraph and image and when opening the editor there is no error but then there is also no content being rendered. I have created a layout in
    resources\views\site\layouts\block.blade.php
    and also in
    resources\views\site\blocks\paragraph.blade.php
    but this does not seem to render anything for me
  • h

    hazelbag

    05/24/2021, 2:19 PM
    Okay never mind, closed my browser and went in again and now it is there.
  • r

    Rayderxx

    05/24/2021, 2:22 PM
    Is it new ?
  • i

    ifox

    05/24/2021, 2:22 PM
    nope
  • h

    hazelbag

    05/24/2021, 2:25 PM
    @User just one question on blocks, can I use WYSIWYG forms? I tried now with an ul and this does not seem to render as such
  • r

    Rayderxx

    05/24/2021, 2:26 PM
    There is no exemple on the doc !
  • i

    ifox

    05/24/2021, 2:26 PM
    you can use any field in blocks. Quill is rendering some formatting with custom classes, but ul should render as ul
  • i

    ifox

    05/24/2021, 2:27 PM
    true. I see the unpack option is documented on the
    select
    but not
    multi_select
  • h

    hazelbag

    05/24/2021, 2:29 PM
    This is how it shows on the block editor preview on my side
  • r

    Rayderxx

    05/24/2021, 2:32 PM
    "There are several ways to implement a multi_select form field." 😄
  • i

    ifox

    05/24/2021, 2:32 PM
    check the html it outputs and you'd have to style accordingly. you can also try Tiptap instead of Quill for the wysiwyg editor and see if you prefer its output
  • h

    hazelbag

    05/24/2021, 2:40 PM
    I think it might be with the render process as when I am on the post view before opening the editor it shows up as needed.
  • h

    hazelbag

    05/24/2021, 2:47 PM
    Just one more question, is tiptap available like quill?
  • i

    ifox

    05/24/2021, 2:54 PM
    'type' => 'tiptap'
  • i

    ifox

    05/24/2021, 2:55 PM
    it looks weird but there are actually 2 ways explained just below that sentence
  • r

    Rayderxx

    05/24/2021, 2:58 PM
    Yep , a PR will be welcome I suppose
  • i

    ifox

    05/24/2021, 3:05 PM
    definitely. we're working on an update to the docs so that it's not a single page anymore, it'll be much better. each page will get an "edit on github" button and prev/next links
  • d

    Dmi3yy

    05/24/2021, 3:52 PM
    Will be great add comments to pages in docs, some time comments more useful )
  • d

    Dmi3yy

    05/24/2021, 3:52 PM
    but need moderate
  • h

    hazelbag

    05/24/2021, 7:34 PM
    Okay so now I need some help please. I went over the docs but it does not make all that sense to me. I created a new block editor with just a paragraph and an image. When I want to render this in the front end is where I get stuck. I already have a built blog with the article view in
    resources\views\article.blade.php
    but from what I understand I need to render this in the site directory but this is where I become stuck
  • i

    ifox

    05/24/2021, 7:37 PM
    everything is configurable so you don't have to use a site directory. blocks, if you use the renderBlocks helper, expect one blade file per block type though. you do not have to use renderBlocks either, you can totally work in your article blade file and loop on ->blocks
  • h

    hazelbag

    05/24/2021, 7:42 PM
    This is my layout currently and I want to render the article using the helper to render in the pointed article view, if this is possible
  • h

    hazelbag

    05/24/2021, 7:43 PM
    So I added the various items as per the docs and this does not seem to allow me to render the view with my own layout files
  • i

    ifox

    05/24/2021, 7:44 PM
    I'm not sure where you mean it doesn't allow you to render the view
1...131415...484Latest