Перейти к содержимому


Фотография
- - - - -

Elements automatically being filled! Need to switch off!


Сообщений в теме: 5

#1 net

net

Отправлено 14 August 2015 - 09:39

The current installation of JBZoo automatically fills empty fields with "---" when re-indexing or updating database. Is there any way of switching this off?

 

Particularly because I have a weblink field which turn's the "---" into a hyperlink and goes to a 404 page if clicked so can be penalised when the site gets crawled by google!


  • 0

#2 SmetDenis

SmetDenis

Отправлено 17 August 2015 - 05:45

Hello,

Can you tell me your current JBZoo version ?
What type of element you are using?
Can you show screens of configuration?
Where did you use the "---" string?

Thanks.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#3 net

net

Отправлено 24 August 2015 - 10:34

Currently using the following:

 

Joomla: 3.2.4     JBZoo: 2.1.5 Pro (build 1)     Zoo: 3.3.4     WidgetKit: 2.2.1

 

Elements affected are Text, Date, Link.

 

The data has been transferred from another database and I can see in phpMyAdmin there are fields which contain "NULL". Upon reindexing the data in JBZoo these fields are converted to the '---' string.

 

I am trying to determine if this is standard JBZoo practice or whether a custom script has been created to make this happen?

 

Here are a couple of examples of the affected elements and as you can see the default field is blank in the Text element.

 

https://drive.google...TmV6X2E5YTJUMFk

 

https://drive.google...UjM3ODdJVkNWcE0


  • 0

#4 SmetDenis

SmetDenis

Отправлено 24 August 2015 - 12:49

Hello,

Thanks for explaining.

Can you give me access to Google drive (that two links).
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#5 net

net

Отправлено 24 August 2015 - 13:00

Access given!


  • 0

#6 SmetDenis

SmetDenis

Отправлено 24 August 2015 - 13:15

Thanks,

JBZoo doesn't handle any weblinks fields.

JBZoo Filter (and database index) uses standart method getSearchData of element.
So if getSearchData() return "---" it will be used for JBZoo filter.

Element "link" doesn't have so it return "null" by default or you can overload it and return something like
protected function _getSearchData()
{
    return $this->get('value', '');
}

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.





Click to return to top of page in style!