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

    Harings Rob

    08/23/2022, 1:39 PM
    I believe this is currently not possible.
  • h

    Harings Rob

    08/23/2022, 1:40 PM
    You could add some custom css on this blade file to hide it?
  • o

    onepiece

    08/23/2022, 1:45 PM
    I can't add custom css, but I tried another way. In this, I can remove the SEO part that is inside?
  • o

    onepiece

    08/23/2022, 1:46 PM
    @extends('twill::layouts.form', [ 'contentFieldsetLabel' => 'SEO', 'sideFieldsetLabel' => twillTrans('twill::lang.nav.settings'), ]) @section('contentFields') @metadataFields @stop @section('sideFieldset') @endsection
  • i

    ifox

    08/23/2022, 1:46 PM
    did you try
    disableContentFieldset
    ?
  • i

    ifox

    08/23/2022, 1:47 PM
    Copy code
    @extends('twill::layouts.form', [
        'additionalFieldsets' => [['fieldset' => 'metadata', 'label' => 'SEO']],
        'sideFieldsetLabel' => twillTrans('twill::lang.nav.settings'),
        'disableContentFieldset' => true
    ])
  • o

    onepiece

    08/23/2022, 1:48 PM
    worked Thanks for the help
  • o

    onepiece

    08/24/2022, 10:31 AM
    Hello I created a singleton and added metadata, but when I make a seed, it gives me an error
  • h

    Harings Rob

    08/24/2022, 10:31 AM
    Can you show the content of the seeder?
  • o

    onepiece

    08/24/2022, 10:32 AM
    yess
  • o

    onepiece

    08/24/2022, 10:32 AM
    <?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Repositories\IndustriesOverviewRepository; use App\Models\IndustriesOverview; class IndustriesOverviewSeeder extends Seeder { /** * Create the database record for this singleton module. * * @return void */ public function run() { if (IndustriesOverview::count() > 0) { return; } app(IndustriesOverviewRepository::class)->create([ 'title' => [ 'en' => 'IndustriesOverview', 'it' => 'Panoramica delle industrie', // add other languages here ], 'description' => [ 'en' => '', 'it' => '', // add other languages here ], 'published' => false, ]); } }
  • h

    Harings Rob

    08/24/2022, 10:36 AM
    Not much I can think of that could cause this. If you leave out "published" does it change the error?
  • o

    onepiece

    08/24/2022, 10:39 AM
    it's the same error
  • h

    Harings Rob

    08/24/2022, 10:44 AM
    'published' => [ 'en' => true, 'it' => true, ],
  • h

    Harings Rob

    08/24/2022, 10:45 AM
    does that work?
  • o

    onepiece

    08/24/2022, 10:46 AM
    But if I comment to the model and to the repositories HasMetadata and HandleMetadata seed repositories, it becomes ok. But I need these, I can't commen
  • h

    Harings Rob

    08/24/2022, 10:48 AM
    Where does hasMetadata come from?
  • o

    onepiece

    08/24/2022, 10:48 AM
    use CwsDigital\TwillMetadata\Models\Behaviours\HasMetadata;
  • h

    Harings Rob

    08/24/2022, 10:53 AM
    Ok, not sure if I can help you with that without a demo repository that I can reproduce. Make sure to double check the setup instructions and maybe create an issue on their end with how you get to the error.
  • o

    onepiece

    08/24/2022, 10:54 AM
    ok thnx
  • o

    onepiece

    08/24/2022, 2:56 PM
    Hello guys. I have a question I am building a multi lingual service. When I check both languages ​​and save them, they are saved, but after I reload the page, one is not saved. Any solution?
  • i

    ifox

    08/24/2022, 3:02 PM
    Hi @onepiece can you check the active column in your translations table for that module? I want to understand if it's a save issue or just rendering
  • o

    onepiece

    08/24/2022, 3:05 PM
    yep
  • i

    ifox

    08/24/2022, 3:14 PM
    ok, now can you check
    window.TWILL.store.languages
    in the browser console?
  • i

    ifox

    08/24/2022, 3:15 PM
    which Twill/Laravel/PHP versions are you on?
  • o

    onepiece

    08/24/2022, 3:17 PM
    twill 2.8.8 php 8.1 laravel 9.26.0
  • i

    ifox

    08/24/2022, 3:17 PM
    ok thanks
  • i

    ifox

    08/24/2022, 3:25 PM
    Ok so the problem is not in db and not in Vue.js, so there must be something going on with the php helper retrieving this. I see that Italian is your first language and wonder if that's the cause. Could you try using English as the first language to test?
  • o

    onepiece

    08/24/2022, 3:28 PM
    The problem is only with this model. It works with another model
  • i

    ifox

    08/24/2022, 3:28 PM
    Interesting. Traits in the same order? Same traits? Same translatedAttributes config?
1...378379380...484Latest