Wow! Great work @jenstornell
Kirby SEO 0.5 released
The only thing that is new in this version is that the fields are now registered with the plugin.
Require Kirby 2.3 beta 2
Hi, the plugin looks pretty good, but i canāt figure out how to install it, seems like you have missed an obvious and really important installation step in your doc, for the beginers its really important, because you only tell to install the fields but i dont know what to do with all the others folder in your plugin. I dont even see the folder āplugins/seoā that must be installed in āsite/pluginsā as you said in your original post.
Can you help me on that? Kirby tells me āseo plugin requiredā
Ok so, i found what to do first, and it really should be added to the docs for beginners,/casuals, drop the downloaded folder into site/plugins and rename it āseoā
Other issue, title fallback works fine but not description fallback.
Iām on vacation for 3 weeks but If you use Github you can add an issue there. Thanks!
the plugin is not responsive for mobile panel access.
itāll break the width creating horizontal scrolling.
( the url field if the url is longā¦)
I know. I added an issue:
I can not say when itās fixed.
Iāve removed the url entry in the viewing, since the url can be changed and viewed by vanilla panel option anyhow.
On one Server Configuration Iāve got an issue with this plugin
Giving error Message just on the home Page saying:
Undefined index: path
$uri = $scheme . $url_parts['host'] . $url_parts['path'];
the line above from the code below is the problem i guess⦠thatās what the new kirby debugger is telling me.
public static function uri($url) {
$url_parts = parse_url($url);
$uri = substr( $url_parts['path'], 1 );
return $uri;
}
// Url preview
public static function urlPreview( $url ) {
$url_parts = parse_url($url);
$scheme = ( $url_parts['scheme'] == 'https' ) ? 'https://' : '';
$uri = $scheme . $url_parts['host'] . $url_parts['path'];
return $uri;
}
// Edit slug url
public static function editSlugUrl($page) {
$url = u() . '/panel/pages/' . $page->id() . '/url';
return $url;
}
// Inside panel, get texts
public static function texts( $page, $field = null ) {
The Field inside the Panel also Errors out on the Homepage only⦠I guess it has something to do if the path is empty??
I added an issue about it:
github.com/jenstornell/kirby-seo/issues/30
I think there is room for improvements of the paths in general. Iāve learned a few things since then and Kirby has evolved as well.
Thanks for the report!
my fix is to exclude the seo('title) and seo(ādescriptionā) from the header snippet for home-page. obviously panel still shows me the error for that field.
not very elegant i knowā¦
It seems like you are a king of dirty hacks.
I always work with what is in line with what Iām working with and therefor this plugin has not have that much love from me recently.
Instead you can check if the path index is set:
isset($url_parts['path'])? $uri = $scheme . $url_parts['host'] . $url_parts['path']:$uri = $scheme . $url_parts['host'];
that solved it⦠your code lacks a ā)ā thoughā¦
isset($url_parts['path'])? $uri = $scheme . $url_parts['host'] . $url_parts['path']:$uri = $scheme . $url_parts['host'];
just found the languages folder and did a sloppy translation⦠i wonder for āfallbackā there are many words i wouldnāt actually useā¦
<?php
l::set( array(
'seo.title' => 'SEO Titel',
'seo.description' => 'SEO Beschreibung',
'fallback' => 'Ersatzwert',
'values' => 'Werte',
'plugin.required' => 'SEO plugin wird benƶtigt!',
'description.fallback' => 'Dies ist der meta description tag (Meta Beschreibung). Wenn dieser zum Seiteninhalt passt, wird die Suchmaschine diesen im Suchergebnis anzeigen. Falls dieser nicht relevant ist, zeigt die Suchmaschine stattdessen einen Teil des Textes aus dem Seiteninhalt.'
));
Sorry, this almost ALWAYS happens to me when I post code here⦠I think I need an automatic alarm
no problems sonja, still doing a good job!
I this context Iād probably use āStandardwertā, āErsatzwertā sounds a bit strange.
$html
is defined as empty string, but then used as array.
Try this:
$html = array();