Hello we will study the relation field (relation reverse) of Flexicontent. This field is realy a powerfull field to create a link between multiple content. It is powerfull because it dynamic reversing ... in many extensions it only one way value. With flexicontent its a two way system.
We can use it for many thing :
- Artiste / Album / song
- User / Publication
- Showcase
- Product
- Forum
- Ticket system
- Job Board
.....
We will study 2 cases, Artist directory, JobBoard.
Artist directory
It important to create a clean structure to use relation field. In this case we need to create 2 types :
- Artist for his photo, birdthay, city etc ...
- Album for jacket, title, duration, audio, date etc
- Create a type "Artist"
![2019-01-23_08h44_08.png](/images/2019-01-23_08h44_08.png)
- Change title label for Name
- Change description label for Bio
![2019-01-23_08h45_00.png](/images/2019-01-23_08h45_00.png)
- Add fields for Artist
- Portrait : image field in mono value
![2019-01-23_08h47_09.png](/images/2019-01-23_08h47_09.png)
- Birthday date : date field
![2019-01-23_08h48_17.png](/images/2019-01-23_08h48_17.png)
- Galerie : image field in multivalue + mix video and image
![2019-01-23_08h49_24.png](/images/2019-01-23_08h49_24.png)
![2019-01-23_08h49_40.png](/images/2019-01-23_08h49_40.png)
- City of birthday : text field
![2019-01-23_08h51_06.png](/images/2019-01-23_08h51_06.png)
- Type of music : Textselect because is more flexible to add value in field
![2019-01-23_08h53_41.png](/images/2019-01-23_08h53_41.png)
Now you can mix existing value and custom value !!
- Awards : weblink in multivalue
![2019-01-23_08h55_39.png](/images/2019-01-23_08h55_39.png)
Allow adding image
set target
![2019-01-23_08h57_04.png](/images/2019-01-23_08h57_04.png)
- Discographie : a relation field to Album type
![2019-01-23_08h58_16.png](/images/2019-01-23_08h58_16.png)
![2019-01-23_09h24_42.png](/images/2019-01-23_09h24_42.png)
- etc.....
- Create a type "Album"
![2019-01-23_08h59_37.png](/images/2019-01-23_08h59_37.png)
- Add fields for Album
- Picture : image field in mono value
![2019-01-23_09h00_54.png](/images/2019-01-23_09h00_54.png)
- Publication date : date field
![2019-01-23_09h01_39.png](/images/2019-01-23_09h01_39.png)
- Productor : can be a text field or textselect field or an other relation field to a productor type
![2019-01-23_09h02_20.png](/images/2019-01-23_09h02_20.png)
- Track name : text with fieldgroup option
![2019-01-23_09h06_30.png](/images/2019-01-23_09h06_30.png)
- Duration : text with mask for time and fieldgroup option
![2019-01-23_09h07_47.png](/images/2019-01-23_09h07_47.png)
- Author music : text fieldgroup option
![2019-01-23_09h08_28.png](/images/2019-01-23_09h08_28.png)
- Author lyrics : text fieldgroup option
![2019-01-23_09h09_01.png](/images/2019-01-23_09h09_01.png)
- Mp3 : for this we have a lot of solution ... (file field, text field with mp3 player plugin tec ...), i use file field
![2019-01-23_09h11_04.png](/images/2019-01-23_09h11_04.png)
And i create template for display an mp3![2019-01-23_09h11_28.png](/images/2019-01-23_09h11_28.png)
- Tracks : now we can create fieldgroup with multivalue for all tracks, user can add many tracks easier
![2019-01-23_09h14_02.png](/images/2019-01-23_09h14_02.png)
- Number of sales
![2019-01-23_09h15_39.png](/images/2019-01-23_09h15_39.png)
- Artist : a relation reverse to Artist
![2019-01-23_09h17_32.png](/images/2019-01-23_09h17_32.png)
Now we can set values in item ....
For Artist
![2019-01-23_09h26_56.png](/images/2019-01-23_09h26_56.png)
And for album
![2019-01-23_09h28_29.png](/images/2019-01-23_09h28_29.png)
![2019-01-23_09h28_47.png](/images/2019-01-23_09h28_47.png)
And we can create a display
Comming soon
We can expand this concept with Musical Label, productor etc ...
JobBoard
Comming soon