kirby-deprecated-plugins / kirby-seo

51 stars 10 forks source link

From a mail - Frontend does not reflect backend #35

Open jenstornell opened 7 years ago

jenstornell commented 7 years ago

One thing i noticed is that the fallback works perfectly in the backend panel while in the frontend it doesn't. I digged a bit into the code and found the problem:

Here you call the panel function with field parameter: https://github.com/jenstornell/kirby-seo/blob/master/fields/seo/seo.php#L16

while here you don't: https://github.com/jenstornell/kirby-seo/blob/master/seo.php#L10

and for the fallback to work the field needs to be defined here: https://github.com/jenstornell/kirby-seo/blob/master/core/core.php#L304

Since the field is not a string but an object, I don't have an Idea how to pass it in the frontend call.

Could you have a look into this? That would be awesome!