Using Profile 2 with Entity Reference–How to display the user name and not the “Profile Name”

I’ve reviewed the threads similar to this, and can’t seem to find a definitive answer. I have a Content Type in Drupal 7 where I want to be able to associate multiple users to a content item. For example, I have a “Music Ensemble” content type, and I want the ensemble leader to be able to select all of their ensemble members from the list of user profiles.

I’ve been through all the steps to configure a view with the Entity Reference Widget, and add / configure the Entity Reference field on my content type. When I go to create a content item, the View loads, displays the correct profile fields and allows me to select users.

However, when I submit the view form and return to the content UI, I get the following:

ensemble widget

The “Main profile” text is displayed for every member I select. What I really want to display on the content item is the user’s name from their profile.

I can’t seem to find a way to configure around this. Is this simply a limitation of the Entity Reference / Profile 2 relationship, or is there something I’m missing that could solve this? I can figure things out on the front-end display with Views, but this is rather challenging for someone unfamiliar with content authoring (which most of my authors are).

Thanks in advance for any help.

Column names in each table must be unique. Column name ‘LastName’ in table ‘HumanCustomers’ is specified more than once

After update my model and add data annotation.

then use add-migration and update-database command get below error:

Column names in each table must be unique. Column name ‘LastName’ in table ‘HumanCustomers’ is specified more than once.

But LastName field once used.

for guid:

HumanCustomer Class:

public class HumanCustomer     {         public int Id { get; set; }         public int UserId { get; set; }         [Required]         [MinLength(2)]         [MaxLength(20)]         public string Name         {             get => Name;             set             {                 value.TrimAndReduce();             }         }         [Required]         [MinLength(2)]         [MaxLength(20)]         public string LastName         {             get => LastName;             set             {                 value = value.TrimAndReduce();             }         }         [NotMapped]         public string FullName         {             get { return Name + LastName; }          }         [Required(AllowEmptyStrings = true)]         public int GenderId { get; set; }         public string Address { get; set; }         public string Phone { get; set; }         [DataType(DataType.EmailAddress)]         [EmailAddress]         public string Email { get; set; }         public DateTime BirthDate { get; set; }         public int IdentityTypeId { get; set; }         public string IdentityCode { get; set; }            [Required]         [ForeignKey("UserId")]         public virtual User User { get; set; }           [Required]         [ForeignKey("IdentityTypeId")]         public virtual IdentityType IdentityType { get; set; }         [Required]         [ForeignKey("GenderId")]         public virtual Gender Gender { get; set; }     } 

and migration:

 protected override void Up(MigrationBuilder migrationBuilder)         {             migrationBuilder.AddColumn<string>(                 name: "LastName",                 table: "HumanCustomers",                 maxLength: 20,                 nullable: false,                 defaultValue: "");              migrationBuilder.AddColumn<string>(                 name: "Name",                 table: "HumanCustomers",                 maxLength: 20,                 nullable: false,                 defaultValue: "");         }          protected override void Down(MigrationBuilder migrationBuilder)         {             migrationBuilder.DropColumn(                 name: "LastName",                 table: "HumanCustomers");              migrationBuilder.DropColumn(                 name: "Name",                 table: "HumanCustomers");         } 

How to show the name and data in a customized map?, with GeoRegionValuePlot

How to show the name of each division and data/values (even customizing the TextStyle for adapt to different sizes) ?. Show all the data, not only when the mouse is over on a region.

Or how to add names and use GeoLabels->True

I tried multiple options with GeoLabes but have no results.

geometry data available at https://we.tl/t-NqBdMYcOSN

geom = Association[Import["Estrada.shp", {"SHP", "Data"}]]["Geometry"] /.Polygon[x_] :> (Polygon[GeoGridPosition[#, "UTMZone29"] & /@ x]);   values = RandomInteger[20, 51]; parroquiasss = {"Agar", "Aguións", "San Pedro de Ancorados",     "Santo Tomé de Ancorados", "Arca", "Arnois", "Baloira", "Barbude",     "San Miguel de Barcala", "Barcala", "Berres", "Callobre",     "San Miguel de Castro", "Cereixo", "Codeseda", "Cora", "Couso",     "Curantes", "A Estrada", "Frades", "Guimarei", "Lagartóns",     "Lamas", "Liripio", "Loimil", "Matalobos ", "Moreira", "Nigoi ",     "Oca ", "Olives", "Orazo ", "Ouzande", "Parada", "Paradela",     "Pardemarí­n", "Remesar", "Ribeira", "Ribela ", "Riobó", "Rubí­n",     "Sabucedo", "Santeles", "A Somoza", "Souto", "Tabeirós", "Toedo",     "Santo André de Vea", "San Xurxo de Vea", "San Xiao de Vea",     "Santa Cristina de Vea", "Vinseiro"};  GeoRegionValuePlot[AssociationThread[geom, values],ImageSize -> Large] 

Thanks a lot for Carl Lange for previous help at enter link description here

Loading data from a shapefile

Note1.- I supposse that MAthematica will place in the middle of each region.

Note2.- I think that the mathematica documentacion would be so much helpfull. In gengeral all the help is about info autocontained in Mathematica.

iptables: No chain/target/match by that name., but chain EXISTS

I have created a new chain with the following command

iptables -N INPUT2 

I then attempted to add a fire wall rule with the following command

iptables -I INPUT2 1 -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT 

But I get this error

iptables: No chain/target/match by that name. 

However when I attempt to see if the chain exists, it does

iptables -L INPUT2  Chain INPUT2 (0 references) target     prot opt source               destination 

Any ideas whats going on here?

how to assign file name with full path to a variable in bash script

suppose i opened my file manager nemo and select a file named “abc” so in the location bar it shows media/myuser/folder1/subfoler/ and the selected file name is abc How can assign the selected (highlighted) file name with full path in a variable in my bash script (please note this file is not in home directory) anybody can help me please

Malayproject.com (Domain Name)

Malayproject.com
Registered : Namebright.com
Payment Method : Paypal
Price : $ 100 USD
————————————————————-
How To Buy This Domain Through DigitalPoint Forum

1. You must have an account at digitalpoint forum, if you don't have yet, just create one, it's free.
Register -> https://www.digitalpoint.com/register/
2. click "domain info : malayproject.com (Beta)" at above this page, or you can just go to this link…

Malayproject.com (Domain Name)

Shoaibkhalid.com (Domain Name)

Shoaibkhalid.com
Registered : Namebright.com
Payment Method : Paypal
Price : $ 150 USD
————————————————————-
How To Buy This Domain Through DigitalPoint Forum

1. You must have an account at digitalpoint forum, if you don't have yet, just create one, it's free.
Register -> https://www.digitalpoint.com/register/
2. click "domain info : shoaibkhalid.com (Beta)" at above this page, or you can just go to this link…

Shoaibkhalid.com (Domain Name)