85 Posts
yuberlin
7 years ago
4
Topic

I have a groupx field with two fields in it. Fields are stored in
custom->article->introtext[my_field]
because i use them in search type. That works so far.


In this manual i found how to use groupx fields with typo:
https://www.seblod.com/resources/manuals/designer/playing-with-typographies

But its not working? You say:

Typography settings are available in any 'output view' (content view, list view, item view)

and then for groupx:

$cck->getValue('groupx_name',[x],'field_name')

But this doesnt work ;(

I use template seb_list

(latest versions of seblod and seb_list installed)

Get a VIP membership
1283 Posts
Bucklash
7 years ago
0
Level 1

Hi

Not an answer, more of a tip:

Do not use introtext for fieldx or groupx.

Seblod already uses introtext to store the id from #__cck_core.

Use:

custom->article->group_x_name[my_field_name] 
4229 Posts
Kadministrator
7 years ago
1
Level 1

Is the problem that value not retrieved or are you saying that typography has no effect?

85 Posts
yuberlin
7 years ago
0
Level 2

When using this in list-type as typo...

$cck->getValue('groupx_name',[x],'field_name')

...i see exactly this piece of code in the output . 

I can get all other fields (not groupx) by

$cck->getValue('my_field')

this is not a problem.

When disabling typo on groupx field i get the values normally (but with the markup i dont want). 

When using...

$cck->getValue('my_groupxField')<br>

...i get "Array.

85 Posts
yuberlin
7 years ago
0
Level 1

Here are my settings:

GroupX field: 

kurs_termin (custom->article->kurs_termin)

Fields in GroupX:

kurs_wochentag (custom->article->kurs_termin[kurs_wochentag])

kurs_uhrzeit (custom->article->kurs_termin[kurs_uhrzeit])

Here the typo i want to use in seb_list template:

$cck->getValue('kurs_termin',[x],'kurs_uhrzeit')

Get a Book for SEBLOD