Creating an Entity Reference View

The Entity Reference module is a useful Drupal 7 module and can be used to reference any entity from a field added to any other entity.  For example, you can add a entity reference field to the Basic Page content type, which references taxonomy terms of vocabulary (bundle) tags.  When you are creating a page and want to reference a particular term, it may help the user to see a custom format for the terms.  By default the term name will be displayed for the terms that can be referenced.  It may be convenient for the user to have a more detailed descprition of the term to make a decision.  Perhaps for good reasons you have terms named "1" and "2" in a Staff vocabulary.   You may write descriptions for those terms where "1"s description is "Director" and "2"s description is "Teacher".  You want to reference one of these terms when you create a Basic Page.  The entity reference module comes with built in funcitonality for the use of views in creating a filtered list of entities available for selection for an entity reference field.

I want the options in my Staff Reference field to be "1 - Director" and "2- Teacher".

First create the Taxonomy vocabulary and terms

  • Goto: admin/structure/taxonomy/add
  • Enter Staff in the name field
  • Click Save
  • Click on add terms for the Staff vocabulary
  • (Creating first term)
    • Enter 1 for the Name field
    • Enter Director for the Description field
    • Save
  • Create second term
    • Enter 2 for the Name field
    • Enter Teacher for the Description field
    • Save

Now create an entity reference view

  • Goto structure/views/add
  • Name the view Staff Reference View
  • Select Taxonomy terms from the Show select list
  • Select Staff from the Type select list
  • Uncheck the Create a page checkbox
  • Click Continue and Edit

Configuring the view

  • Click the +Add button
  • Select Entity Reference
  • In the Fields section click the add link
  • Check the box next to Taxonomy term: Term description
  • Click Apply
  • Uncheck Create a Label
  • Click Apply
  • Click the Taxonomy term: Name link in the Fields section
  • Uncheck Link this field to its taxonomy term page
  • Under the Format section you will see a Format: Entity Reference List | Settings
  • Click Settings
  • For check Taxonomy term:Name
  • Click Apply
  • Under the Format section you will also see Show: Inline fields | Settings
  • Click Settings
  • Under Inline Fields
    • Check Taxonomy term: Name
    • Check Taxonomy term: Term description
  • Click Apply
  • Save the view

Lets add and configure an entity reference field.

  • Go to admin/structure/types/manage/page/fields
  • Enter Staff Reference in the Add new field text field.
  • Select Entity Reference from the Field Type select list
  • Select Select List from the Widget select list
  • Click Save

You are now presented with the Field Settings page

Target Type sets the entity which this field will reference. In our example we will be using Taxonomy Term. Inside the Entity Selection fieldset is the Mode field with two options: Simple (with bundle filter) , and views (Filter by an Entity Reference View).

  • For Mode Select Views (Filter by an Entity Reference View)
  • For View used to select the entities choose the view we created earlier staff_reference_view  Entity reference
  • Click the Save Field Settings button
  • Click Save Settings when the next page loads

Create a page

  • Goto: node/add/page
  • You will see the Article Reference field select list under the body field
  • The Options say "1-Director" and "2-Teacher"

 

Tags: 

Comments

qwer

rewq

qwerty

View arguments?!

I would like to pass an argument (a field) by using "View arguments" in "View used to select the entities" (last step of your guideline) but I can't pass it to my view (in the view I am getting it via "CONTEXTUAL FILTERS"!In "View arguments" I have tried to pass token by [node:field_example1] and %node:field_example1 neither worked! Any suggestion?

IELTS Online Tutorial

IELTS online will provides everyone for their success with a step by step course structure.Because of online activities you can trak your progress and study planner. IELTS Online Tutorial is been developed using the best practice of standards in online test preparation, so you won't miss out important tips and hints or knoledge that you need.

Need help with Relationships (I think)

I'm trying to create a view that is based on a content type called "Feedback". This content type has a User Reference field that allows the creator to choose a user, then provide feedback to them.The view should display the feedback (content type) that has been created. This is easy and I have done this without a problem. However, I'd like individual users to be able to view the feedback that was created for them (they were selected as users in the User Reference field) and no one else's feedback. I can't figure this out!!Any help is appreciated.

miom

Produk Jelly Gamat -Not only good for health but also very useful for the treatment, Ace maxs made from mangosteen peel and soursop leaves, Had a very remarkable properties. Because the content is owned mangosteen peel is needed by the human body.recent post- Ace Maxs

miom

Produk Jelly Gamat -Not only good for health but also very useful for the treatment, Ace maxs made from mangosteen peel and soursop leaves, Had a very remarkable properties. Because the content is owned mangosteen peel is needed by the human body.recent post- Ace Maxs

miom

Produk Jelly Gamat -Not only good for health but also very useful for the treatment, Ace maxs made from mangosteen peel and soursop leaves, Had a very remarkable properties. Because the content is owned mangosteen peel is needed by the human body.recent post- Ace Maxs

Throughout the course Cheap

Throughout the course Cheap UGG Boots uk of years, there have been many different manufacturers making the Ugg Boot. There have been knock offs as well as other well known spin offs of the Ugg Boot as well. When it comes to the rich color palette of Cheap ugg boot styles, you will face with a rainbow of possibilities. Regardless if you are a self-aware fashion addict or an individual who prefers a more classic style, never pass up a pair of sand ugg footwear from http://www.bootsuggssale.co.uk the land down under! Then why sand but other hues on the UGG color palette?

Cara Mengobati Kanker Rahim dengan Sarang Semut

<a href="http://tokoherbaltasik.com/penyebab-sakit-telinga-pada-ibu-hamil/">Penyebab Sakit Telinga pada Ibu Hamil</a><a href="http://obatinfeksirahim.tipssehatonline.web.id/cara-alami-mengobati-kank... Alami Mengobati Kanker Rahim dengan Sarang Semut</a><a href="http://www.pengobatanhipertensi.info/olahraga-untuk-mengatasi-hipertensi... untuk Mengatasi Hipertensi pada Ibu Hamil</a><a href="http://obatlukapayudara.com/usia-rentan-terkena-kanker-payudara/">Usia Rentan Terkena Kanker Payudara</a><a href="http://jianxincapsule.com/cara-alami-mengobati-jantung-bengkak-pasca-mel... Alami Mengobati Jantung Bengkak Pasca Melahirkan</a>

Useful Info

I think the details which you have provided here about the Entity Reference module will be useful to all those who are studying drupal. If it is explained with a pictorial representation, then the concept will be more clear. Please update it soon. rent a ipad online

http://goo.gl/iAJsRz

الشرق الاوسط افضل شركة نقل عفش بالدمام شركة نقل عفش بالخبر شركة نقل عفش بالجبيل شركة نقل عفش بالقطيف تنظيف كنب بالدمام تنظيف كنب بالخبرhttp://goo.gl/iAJsRz شركة نقل اثاث بالدمام http://www.east-eldmam.com نقل عفش بالدمام http://goo.gl/qga5YC شركة نقل عفش بالخبر  http://goo.gl/Vv4Sp9 شركة نقل العفش بالخبر  http://goo.gl/52zZFy نقل العفش بالدمام    http://goo.gl/VgTwlW شركة نقل عفش بالجبيل http://goo.gl/SHZHnV  http://goo.gl/1kXTpJ شركات نقل العفش بالدمام والخبرhttp://goo.gl/DuLCNP  http://goo.gl/iksDnr http://goo.gl/Etnu4A  http://goo.gl/x3BKPU http://goo.gl/hAu2Pm  http://goo.gl/7VW8I5  http://goo.gl/3NkrF1 

http://emc-mee.com/movers-in-riyadh-company.html

http://emc-mee.com/blog.html شركات نقل العفشhttp://emc-mee.com/tanks-cleaning-company-jeddah.html شركة تنظيف خزانات بجدةhttp://emc-mee.com/water-leaks-detection-isolate-company-dammam.html شركة كشف تسربات المياه بالدمامhttp://emc-mee.com/anti-insects-company-dammam.html شركة مكافحة حشرات بالدمامhttp://emc-mee.com/tanks-cleaning-company-jeddah.html شركة تنظيف خزانات بجدةhttp://emc-mee.com/  شركة نقل عفش واثاثhttp://emc-mee.com/movers-in-riyadh-company.html شركة نقل اثاث بالرياضhttp://emc-mee.com/transfer-furniture-jeddah.html شركة نقل عفش بجدةhttp://emc-mee.com/transfer-furniture-dammam.html شركة نقل عفش بالدمامhttp://emc-mee.com/transfer-furniture-almadina-almonawara.html شركة نقل عفش بالمدينة المنورةhttp://emc-mee.com/transfer-furniture-taif.html شركة نقل عفش بالطائفhttp://emc-mee.com/transfer-furniture-mecca.html شركة نقل عفش بمكة 

http://jumperads.com/transfer-furniture-mecca.html

http://jumperads.com/ نقل الاثاثhttp://jumperads.com/transfer-furniture-riyadh.html شركة نقل عفش بالرياضhttp://jumperads.com/transfer-furniture-jeddah.html شركة نقل عفش بجدةhttp://jumperads.com/transfer-furniture-dammam.html شركة نقل عفش بالدمامhttp://jumperads.com/transfer-furniture-medina-almonawara.html شركة نقل عفش بالمدينة المنورةhttp://jumperads.com/transfer-furniture-taif.html شركة نقل عفش بالطائفhttp://jumperads.com/transfer-furniture-mecca.html شركة نقل عفش بمكةhttp://jumperads.com/transfer-furniture-yanbu.html شركة نقل عفش بينبعhttp://jumperads.com/transfer-furniture-in-najran.html شركة نقل عفش بنجرانhttp://jumperads.com/transfer-furniture-in-khamis-mushait.html شركة نقل عفش بخميس مشيطhttp://jumperads.com/transfer-furniture-abha.html شركة نقل عفش بابهاhttp://jumperads.com/transfer-furniture-buraydah.html شركة نقل عفش ببريدةhttp://jumperads.com/transfer-furniture-qassim.html شركة نقل عفش بالقصيمhttp://jumperads.com/transfer-furniture-tabuk.html شركة نقل عفش بتبوكhttp://jumperads.com/transfer-furniture-hail.html شركة نقل عفش بحائلhttp://jumperads.com/transfer-furniture-dammam-khobar.html شركة نقل عفش بالخبرhttp://jumperads.com/transfer-furniture-ahsa.html شركة نقل عفش بالاحساءhttp://jumperads.com/transfer-furniture-qatif.html شركة نقل عفش بالقطيف    http://jumperads.com/transfer-furniture-jubail.html شركة نقل عفش بالجبيل

http://jumperads.com/transfer-furniture-jeddah.html

http://jumperads.com/transfer-furniture-hafr-albatin.html نقل عفش بحفر الباطنhttp://jumperads.com/price-transfer-furniture-mecca.html   اسعار شركات نقل العفش بمكةhttp://jumperads.com/transfer-furniture-mecca-2017.html   نقل اثاث بمكة 2017http://jumperads.com/how-transfer-furniture-mecca.html   كيفية نقل العفش بمكةhttp://jumperads.com/all-company-transfer-furniture-mecca.html   اهم شركات نقل العفش بمكةhttp://jumperads.com/best-company-transfer-furniture-mecca.html افضل شركة نقل عفش بمكة  http://jumperads.com/price-transfer-furniture-jeddah.html   اسعار شركات نقل العفش بجدةhttp://jumperads.com/transfer-furniture-jeddah-2017.html   نقل اثاث بجدة 2017http://jumperads.com/how-transfer-furniture-jeddah.html   كيفية نقل العفش بجدة 

http://www.domyate.com/2015/08/30/furniture-transport-company-in

http://abyath.net/

شركة نقل عفش واثاث بالدمام ابيات الشرقيه لخدمات نقل العفش والاثاث بالدمامhttp://abyath.net/  شركة نقل عفش بالدمامhttp://abyath.net/news/details/transfere-furniture-khobar-dammam-company... نقل عفش بالخبرhttp://abyath.net/news/details/company-transfere-furniture-dammam-2017.h... شركة نقل اثاث الدمامhttp://abyath.net/news/details/furniture-transfere-dammam-now.html  نقل عفش الدمامhttp://abyath.net/news/details/dammam-all-company-transfere-furniture.ht... نقل عفش بالدمامان اردت نقل عفش منزلك بالدمام ابيات الشرقية من اهم شركات نقل العفش بالدمام والخبر والجبيل والقطيف والاحساء 

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.