Monday, November 9, 2020

How to get title with content type name in autocomplete field in drupal 8



STEP 1:- Create a two content type like Article is my content type name and other one is Gallery. below  show in screen shot.



STEP 2:- Add the content in Article content type like screen shot.



STEP 3:- Add the Entity Reference field in content type Gallery.


STEP 4:- Click on edit and set the reference method

before created the view










after created the view means completed the step 5


STEP 5:- Now create a view  for Entity Reference field in.









STEP 6 :- goto (node/add/gallery) means content + add content +under gallery content type and type to field article tile then that field is autocompleted with content type name.



No comments:

Post a Comment

If you have any problem please let me know.