#1 2014-11-07 08:37:45

epescol
Member
Registered: 2012-05-27
Posts: 86

[SOLVED] Page SEO options for the page are saved incorrectly in the DB

if I define special SEO options for the page, ionize save for all defined languages the SEO options of the firts defined language (tab) of the page.

It seems that for the SEO options saving for articles work properly

Last edited by epescol (2014-11-14 19:39:02)

Offline

#2 2014-11-11 21:47:30

Kostas_Z
Member
Registered: 2014-10-23
Posts: 7

Re: [SOLVED] Page SEO options for the page are saved incorrectly in the DB

I can reproduce this, is there anyway to fix this? Will let you know if I find something.

Offline

#3 2014-11-13 20:09:12

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: [SOLVED] Page SEO options for the page are saved incorrectly in the DB

the function save_options() in /application/controllers/admin/page.php is reponsible for the page options save

with

var_dump($this->lang_data); die();

the values are available but not saved to DB :-(

Offline

#4 2014-11-14 19:38:41

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: [SOLVED] Page SEO options for the page are saved incorrectly in the DB

I found the error.

It's in /themes/admin/views/page/options.php, line 331 and line 350.

Chanege rispectively:

$languages[$lang]]['meta_description']

with

$languages[$language['lang']]['meta_description']

and

$languages[$lang]]['meta_keywords']

with

$languages[$language['lang']]['meta_keywords']

It would be nice if you could fix this in future releases.

Thank you for your nice work

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations