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

    user

    07/03/2021, 9:23 PM
    And will see the permission manager soon
  • u

    user

    07/03/2021, 9:23 PM
    One question: can I make my normal users (users) table primary for twill
  • u

    user

    07/03/2021, 9:23 PM
    Cause I work with posts
  • u

    user

    07/03/2021, 9:24 PM
    And the authors are clickable and needs to be linked to your profile
  • u

    user

    07/03/2021, 9:24 PM
    Or would you not recommend that?
  • u

    user

    07/03/2021, 9:24 PM
    To merge the twill_users and users table
  • i

    ifox

    07/03/2021, 9:26 PM
    that's not our recommendation because we prefer separating CMS users from frontend users, though it is a use case that has come up. I don't have an immediate answer but it is definitely possible.
  • u

    user

    07/03/2021, 9:26 PM
    Well I keep it seperated and see how I will create the link
  • u

    user

    07/03/2021, 9:26 PM
    Can I add extra stuff to twill users?
  • u

    user

    07/03/2021, 9:27 PM
    So I can make a nullable field for user_id
  • u

    user

    07/03/2021, 9:27 PM
    To have a link to their normal account
  • i

    ifox

    07/03/2021, 9:28 PM
    you could, by overriding the twill model through composer (which is gross and something that is going to be possible through configuration instead with the release of the permission manager). But you could actually do it the other way around, adding a relationship to twill_users in your users model.
  • u

    user

    07/03/2021, 9:34 PM
    Yea Ill go with a relationship on twillusers that will link to user
  • u

    user

    07/03/2021, 9:41 PM
    Cant find it easily in the docs but can I disable the
    publish
    option on my categories crud?
  • i

    ifox

    07/03/2021, 9:42 PM
    either by disabling it in the controller's
    $indexOptions
    or not having a published column at all in database
  • u

    user

    07/03/2021, 9:43 PM
    Amazing!
  • i

    ifox

    07/03/2021, 9:44 PM
    I meant that you could have
    twill_user_id
    on
    users
    instead
  • u

    user

    07/03/2021, 9:45 PM
    Mmmmmm that is also possible. But I thought the
    twill_user
    makes the blog post. And when clicking his name it needs to link to his
    user
    so I add the
    user_id
    to
    twill_users
  • u

    user

    07/03/2021, 9:45 PM
    Well got categories working like a charm 🙂
  • u

    user

    07/03/2021, 9:45 PM
    Now posts 😄
  • i

    ifox

    07/03/2021, 9:47 PM
    you could still do that by querying for the user using the twill user id of the post if the column is in users, it'd be implemented differently but that would avoid having to override the twill model
  • u

    user

    07/03/2021, 9:48 PM
    Ahhh I see what you mean there! That is smart. This will protect me from any overriding issues in the future.
  • u

    user

    07/03/2021, 9:48 PM
    Ill stick with that
  • i

    ifox

    07/03/2021, 9:52 PM
    you could even bring your users model as a module in the cms to select the associated twill user
  • u

    user

    07/03/2021, 10:19 PM
    Mmm that is nice, I have to think about it cause you shouldn't be able to select any1 other than yourself unless ur admin
  • u

    user

    07/04/2021, 12:32 AM
    How to get tags working?
  • u

    user

    07/04/2021, 12:32 AM
    taggables
    is not found what is weird cause twill did make the
    tags
    table
  • p

    pboivin

    07/04/2021, 12:57 PM
    @User do you have a
    tagged
    table?
  • u

    user

    07/04/2021, 2:38 PM
    Nope Im missing a table that is the issue if im right. But cant look atm, going to grandmas bday
  • p

    pboivin

    07/04/2021, 2:44 PM
    You should have
    tagged
    and
    tags
    tables from Twill's
    create_twill_default_tags_tables
    migration. From there, all that's needed for tagging is to add
    HandleTags
    to your repository and
    @formField('tags')
    to your form. Have fun at your party 🙂
1...434445...484Latest