332 Posts
Kenneth
9 years ago
2
Topic

Hi,

I've created several userfields to add information to their profile. I've made the fields Global because I need to use them several places.

One of the places is in a normal content article (seblod content type article). The field should only be visible for logged in users. So when a user logs inn, she/he sees the field in the article it's placed, so they can fill it in and save.

Also, the next time they see the article I of course want the value they previously saved to show up in the field. Which they then can modify and save again if they want to.

How can I set it up to work?

Get a Book for SEBLOD
9 years ago
1
Level 1

Hi Kenneth,

it's not working like you think.


A field "Global" like you said, is a field created from the fields manager or from a content type with the padlock open.

This kind of fields are stored in the table :

  • if the storage is article : #__cck_store_item_content
  • if the storage is user : #__cck_store_item_user


Like it is in a common table, those fields are available for every content type. But it mean, that every time a content from those content type is created, an entry is added in the table above.

But it doesn't mean that you can get in an article, data from the user.

Fields for User profil must be in the content type user and are not available for article.


Best regards

Lionel

332 Posts
Kenneth
9 years ago
0
Level 2

Hi again, Lionel, and thank your for the answer.

What if I create a module that loads the form with the user fields, and place that module in an article with normal loadposition tag? Will that enable the userfield to be placed wherever I want?

Get a Book for SEBLOD