28 Posts
pabro
6 years ago
3
Topic

Hi,

i use a link to current content (article) on list and search type, and set links manually via $cck->getLink('fieldname') on typography html of other fields. Lnk behavior is set to „prepare“ and it works. But if i set menu item to use mapping of fields, the $cck->getLink('fieldname') does only work on typography html for same field, all others contains only baseurl. Is this a bug?

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
2
Level 1

Try changing order of the fields so that field you are taking  link from and fields used for mapping are placed before the field that will read this value in typography.

28 Posts
pabro
6 years ago
1
Level 2

Thanks klas, that works!

Only for your info: if i set the field (free text) at first, i get a notice, also if i use default link options and remove to get link on other fields. But only if field is linked: 

Undefined index: #__content in … /plugins/cck_storage_location/joomla_article/joomla_article.php on line 739
Undefined index: #__content in … /plugins/cck_storage_location/joomla_article/joomla_article.php on line 779
Trying to get property of non-object in /plugins/cck_storage_location/joomla_article/joomla_article.php on line 779

It works for me, and its only a notice, but it I'm interested what could cause this. (for live site the messages would be disabled, so its ok.)

4229 Posts
Kadministrator
6 years ago
0
Level 3

Probably problem is that free text field does not have any storage but link rendering obviously expects one

Get a Book for SEBLOD