andreasgj / seo-meta-field-nova Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
We've created a fork of this package to make some changes in order to support SEO translations, but we've noticed this package is missing a license, please add one.
Thank you
I have made all the setup and the data is even saved.. but when trying to load the information with @include('seo-meta::seo')
just the default ones from the .env shows.
Hi,
I found your awesome package on GitHub and was very happy to have a package which takes core of the sitemap.
However, there is one problem. The sitemap the package generates does not meet the WC3 and google supported date time format.
You print the normal Laravel ‚updated_at‘ format like "2020-10-10 12:34:12“ for the tag lastmod
. But this is not correct. According to this article the date format needs to be "YYYY-MM-DD" or Datetime which would be "YYYY-MM-DDThh:mm: ssTZD“.
Could you guys please update that as soon as possible?
I really would appreciate that a lot!
Thanks!
laravel-nova
front end dependecyI'll submit a PR that addresses this in a bit.
subscribe @AndreasGJ
I am trying to show the SEO feature on the create page so that I can create the SEO feature then I can edit it,
but when I put some data and click save, no data is saved in the seo_meta table
and it comes back empty, but the feature works fine in updating the page.
this is my code SeoMeta::make('SEO', 'seo_meta') ->disk('s3') ->showOnCreating(),
If Relation::morphMap is set in the AppServiceProvider, then the entry with the polymorphic relationship is created by the fully qualified class name.
After creating a seo record, the fields in the form are not filled.
Thanks for building this package!
Is there a way to integrate this with multilingual sites? For example, I have been using the https://github.com/DigitalCloud/multilingual-nova in a few projects and it would be great to integrate this package in order to make it possible to have SEO that is localizable.
is it possible to delete seo record. or delete when all fields are empty!
Panel::make("SEO", [
SeoMeta::make('', 'seo_meta')
->disk('s3-public')
])
Image will be broken on detail.
Hi, I tried using this field on my project, but it simply doesn't work. I followed installation instructions to the detail, rechecked if I missed anything several times, and still it won't work. Existing database records show "SEO" column in index, but its value is empty empty (no red/green circle). New database records cannot be saved at all: dev tools shows TypeError: "e.t0.response is undefined" when I try to save them. Furthermore, SEO field isn't visible on edit form at all. My eloquent model looks like this:
`
class FaqCategory extends Model
{
use SoftDeletes;
use SeoMetaTrait;
protected $table = 'faq_category';
protected $fillable = [
'creator_id',
'title',
'ordering',
'published',
];
public static function orderColumnName(): string
{
return 'ordering';
}
public function creator()
{
return $this->belongsTo(User::class, 'creator_id');
}
public function initOrdering(): void
{
$this->ordering = (int) self::max(self::orderColumnName()) + 1;
}
}
`
I'm setting creator_id
and calling initOrdering
in an observer, during creating
event.
SeoMeta::make('SEO', 'seo_meta'), // in my nova Resource
in model=> use SeoMetaTrait;
but form doesn't show
Just ran into this issue while trying to insert some date using the nova field
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'description'
It would be a good idea to set some validations rules so the users don't try to insert data that is too long, as it will only fail saying server error.
Laravel 7
Nova 3
On installation, presented with many notices from Composer
Deprecation Notice: Class Gwd\SeoMeta\Traits\SeoSitemapTrait located in ./vendor/gwd/seo-meta-nova-field/src/traits/SeoSitemapTrait.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185
Deprecation Notice: Class Gwd\SeoMeta\Traits\SeoMetaTrait located in ./vendor/gwd/seo-meta-nova-field/src/traits/SeoMetaTrait.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185
Deprecation Notice: Class Gwd\SeoMeta\Models\SeoMetaItem located in ./vendor/gwd/seo-meta-nova-field/src/models/SeoMetaItem.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185
Deprecation Notice: Class Gwd\SeoMeta\Helper\SeoSitemap located in ./vendor/gwd/seo-meta-nova-field/src/helper/SeoSitemap.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185
Deprecation Notice: Class Gwd\SeoMeta\Helper\Seo located in ./vendor/gwd/seo-meta-nova-field/src/helper/Seo.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:185
If I try to install your package with composer I get the following error:
[InvalidArgumentException] Could not find a matching version of package agj/seo-meta-field-nova. Check the package spelling, your version constraint and that the package is avai lable in a stability which matches your minimum-stability (dev).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.