Tags for member profiles

Hi if I created member profile with wix code is there a way that if a picture or video or article contains a member or 2 that someone else can tag them and it will show on their profile page?

Hay haywardswoosh,

You can probably do so, but it will involve some coding. It sounds like a collection of tagged members & resource (pic, video or article). Given such a collection you can probably craft what I understand you try to do.

Thanks Yoav,
Is there an article or any references that I can follow?

Donnie

Hay haywardswoosh,

Such a solution includes two parts - the tagging, and the table of tagged resources.

Lets imaging the collections images and tagged_items with the following schema -

images:
  picture: picture
  // other fields

tagged_items
  tagged_item: reference to picture

keep in mind that all collections has the _owner and _id fields as well.

On the image page, add a button that enters an item to the tagged_items collection. will look something like the following -

export function BUTTON1_click() {
  wixData.insert('tagged_items', 
    {tagged_item: $w('#IMAGES_DATASET').getCurrentItem()._id}
  );
}

Note I do not need to set the _owner field - it is automatically filled in for the current site member.

On the members page, create a dataset for the tagged_items collection with

  1. Dataset on tagged_items

  2. Include Images (you get that option as the tagged_item is a reference)

  3. connect the dataset to a table
    With that, you will have a table of tagged items on the members page.