bmasquio
TCTwill CMS
•Created by bmasquio on 4/24/2023 in #👊support
Where to find block repositories?
Thank you. Certainly this specific block is no big deal in coding, though I think it would help to have this little piece. But what would help me most is to get some block ideas that I haven't thought of.
To illustrate my particular scenario, I'm working on a news module, like the one in the tutorial video, and the same which I think a lot of people would be working on. Clearly, the main "field" is the content of the news, and we need more than just a WISIWYG to store it. I would like to find some blocks already coded and designed by the community.
It's just something that I think could be shared someway. Not sure how. Thank you for considering it.
9 replies
TCTwill CMS
•Created by bmasquio on 4/24/2023 in #👊support
Where to find block repositories?
I was looking for a library of block forms. One that I could find for instance "paragraph & image" or others alike.
9 replies
TCTwill CMS
•Created by bmasquio on 4/11/2023 in #👊support
multi select selected options
Got it. I created a model accessor. The problem was that it was not returning the collection as expected. I discovered it would use the array item with the key 'id'. So I had to adapt the accessor, as my 'getRoles' function would return an array of strings.
protected function observatoryRoles(): Attribute
{
return Attribute::make(
get: fn() => $this->getRoles()->map(function ($item) {
return ['id' => $item];
})
);
}
5 replies