GetSimple Support Forum

Full Version: i18n special pages error on home page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, sorry for my english.
I have a problem with display content of i18n Special Page fields on my Home Page.
When I type url: http://iskol.home.pl/ I can't see in Search result item Image and txt field content.
but when i type url: http://iskol.home.pl/index.php or go to menu link "News" I can see this content - image and text are displayed. Where is the problem?
I use: i18n, i18n search, i18n special pages and I created special page type "News" with 2 fileds: Image and Text field.
Thank you for your help.
MarioSimple Wrote:Hi, sorry for my english.
I have a problem with display content of i18n Special Page fields on my Home Page.
When I type url: http://iskol.home.pl/ I can't see in Search result item Image and txt field content.
but when i type url: http://iskol.home.pl/index.php or go to menu link "News" I can see this content - image and text are displayed. Where is the problem?
I use: i18n, i18n search, i18n special pages and I created special page type "News" with 2 fileds: Image and Text field.
Thank you for your help.

Try replacing
Code:
if (basename($_SERVER['PHP_SELF']) != 'index.php') {
by
Code:
if (basename($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) != 'index.php') {
in /plugins/i18n_specialpages.php, line 35.
Does this work?
it works, thanks a lot
mvlcek Wrote:
MarioSimple Wrote:Hi, sorry for my english.
I have a problem with display content of i18n Special Page fields on my Home Page.
When I type url: http://iskol.home.pl/ I can't see in Search result item Image and txt field content.
but when i type url: http://iskol.home.pl/index.php or go to menu link "News" I can see this content - image and text are displayed. Where is the problem?
I use: i18n, i18n search, i18n special pages and I created special page type "News" with 2 fileds: Image and Text field.
Thank you for your help.

Try replacing
Code:
if (basename($_SERVER['PHP_SELF']) != 'index.php') {
by
Code:
if (basename($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) != 'index.php') {
in /plugins/i18n_specialpages.php, line 35.
Does this work?