-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change style of seo form #25
Comments
Hey @muhammedfayaz, thank you for your message! I'm afraid that that is not yet possible right now, but I am open to a PR that changes the class SEO
{
public static function make(array $only = ['title', 'author', 'description'], Closure $modifyTitleFieldUsing = null, ...): Group
{
return Group::make(function (Group $component) use ($modifyTitleFieldUsing) {
$titleField = TextInput::make('title')
->translateLabel()
->label(__('filament-seo::translations.title'))
->columnSpan(2);
if ($modifyTitleFieldUsing) {
$titleField = $component->evaluate($titleField, ['field' => $titleField], [$titleField::class => $titleField]);
}
return Arr::only([
'title' => $titleField,
// ...
// ... |
I talked about the hint below field not the title |
Yes, I just used the title field as example, but you would implement it like this for every other input field, so you can in the end just choose what you want. I don't have time quickly to implement this myself, but as I said I'm open to a PR if you are. |
@ralphjsmit Would it be possible to add something like ->translatable() using the closure? |
@AlexanderFalkenberg If this closure functionally is PR'ed (I talked about that I was open for a PR to it), then it would be possible yes, as you could yourself modify the TextInput and other form fields (each field a closure |
how to add a hint in each input field
The text was updated successfully, but these errors were encountered: