10 years ago
Topic
I am probably making a very simple error here, I have set up the address to coordinates plugin in a form and the results are successfully being saved into two text fields ven_long / ven_lat. When I set up the fields i set the padlock to open (as I may need these coordinates in another content type) and the results save into jos_cck_store_item_content. When i try to display just the co-ordinates in the content(front end) using $cck->getValue ('ven_lat') ?> i see nothing. Should I be using something else to recall the value from fields in #__cck_store_item_content?
Get a Book for SEBLOD
10 years ago
3
Level 1
Hello @MarcT,

be sure to have put the two fields in the view.
Which storage do you used for this two fields (lat, lng) ?
The storage have nothing to see with displaying the value, it's transparent, be sure you have a value in the database.

Regards.
Lionel

10 years ago
2
Level 2
Hi Lionel

The Long and Lat fields are stored in Custom>article>ven_long and custom>article>ven_lat and if i look in the database i see results in the table jos_cck_store_item_content. Both Longitude and Latitude text fields are in the Content view and i am trying to call them from seb_minima template using " echo $cck->get('longitude')->value;" and "$cck->getValue ('longitude');" where 'longitude is the name of the field- but neither method is showing the results in the front. Should I be using something else to call from that table of the database?
Thanks for your help
10 years ago
1
Level 3
Hi,
why do you use the "Custom" Storage. Simply use the standard for 99% of your fields and keep the custom storage for FieldX and GroupX.

Have you try to display fields normally, without custom code ?
It's the first thing to try.

Regards.
Lionel
10 years ago
0
Level 4
I used the custom as that is what is default for unlocked fields so, being new to Seblod, assumed that was the most common choice. I change it to standard and it works like a charm now. Thanks for your help.
Get a Book for SEBLOD