Flexicontent directory demo
  • Home
  • Movies
  • Actors
  • Directors
  • Tv movies
  • My account
  • Home project
  • Doing this site
Print

Create Relation field

Relation is a very important flexicontent field

it can create a "dynamic relation" between 2 contents. Like a book with his author, all fields between 2 items can be displayed dynamicly in each view wihout editing two item.

To acheive this wee need to create a relation field and a revers field !

For this site we create 6 relations / revers fields :

  1. "Director"  -> "Movie" and tv show and "Related to Director" -> "Person" (Display director in movie and tv show)
  2. "Team" -> "Movie" and "Related to Team" -> "Person" (Display team in movie)
  3. "Actor" -> "Movie" and "Related to Actor" -> "Person" (Display actor in movie)
  4. "Season" -> "Episode" and "Episodes in relation" -> "Season" (link episode to to season)
  5. "Related to TV movie" -> "Season" and "Season in relation" -> "TVshow" (Link TV show to season)
  6. "Rest to this movie" -> "Movie" and "Reverse rest of this movie" (to link a movie with his suite)

Now how it works

  1. Create a field
  2. Select relation (list of related items)
  3. Assign to your type

relation

in editing tab configure your field to filter item wanted (categorie, order etc)

in viewing tab you can create your display loop with small html

any field can display with {{nameoffield##0}} (##0 is to select firt value in field)

For the revert create a reverse field

in editing tab choose your relation field for linking 

in viewing tab you can filter your content return

And you can create your html output

Login Form

  • Forgot your password?
  • Forgot your username?

Copyright 2021 Com3elles Joomla! and flexicontent specialist :  site for demo only

© 2023 FLEXIcontent Directory demo

Acces to this site

Acces Administrateur :
DemoAdmin
DemoAdmin

Acces Contributor:
contributor
contributor