Drupal nested / complex / sub content types - drupal

I am trying to create multi-user system for CV managing using Drupal.
The basic idea is:
Each User has his own CV.
Each CV has several predefined sections as Education, Work experience, etc.
Each Section consists of unlimited {Dates range - Text} entries.
I've created two new content types - CV and Date_Range_Text but I cannot link them together, e.g. to make Date_Range_Text a complex/nested content type, used in the CV's sections entries.
Do you have any ideas?
Thanks.

I would use the Field Collection module.
Create a content type called CV.
Add a field_collection field to CV called education and allow unlimited entries.
Edit the education field_collection item and add a date field and a text field.
Do the same for work experience and any other fields.
Now when someone creates a new CV they can add unlimited education items, each consisting of a date and some text.

Related

calling of one taxonomy from another taxonomy, so both of them have used in the same content type

Can we call one taxonomy term from another as a parent and child relation for example I need to click on product category and that show me product series page and when I click on product each series that will lead me to actual product detail means node, so I have two taxonomies category and series I am about to click on category to carry me to series page and then to click on series page to carry me to product detail page on the concern series”
no codebase problem
i am expecting that these two taxonomies may be used as i have mentioned in the question summary but, i can't do it so i hope some help in resolving this issue
Let's look at this answer, I hope it will help you.
Taxonomy terms from the same vocabulary filtered and referenced on multiple content types
To do this you’ll need to have the Entity Reference module installed. So get that out of the way quickly with drush dl entity reference -y and drush en entityreference -y if you haven't already.
First up, we need the taxonomy set up.
Let's demonstrate with the help of an image.
You’ll notice that these terms could be more or less grouped into two categories: Transport and Sleeping. One term (couchette) kinda fits both criteria and is there to exemplify the reason for not using 2 different vocabularies to handle the issue. Now we need to technically make the distinction between these terms as well and since they are entities, we can use a field for that.
So we can now go ahead and add a new field to this vocabulary of the type List (text) with whatever widget you’d like (and let’s call the field Type). You should make the allowed number of values unlimited and put the following in the allowed values list:
Edit each term and select the appropriate type. As expected, for the term couchette, you should select both options.
Now that we have our taxonomy squared away, it’s time to create a View that will handle the filtering of these terms. Because if we now add the Tags taxonomy term reference field to our content types in the normal fashion (as it is already present in the Article content type) we’ll be able to select all the terms in the vocabulary for all the content types. And that's not what we want now.
So create a drupal 7/8 View that shows taxonomy terms of the Tags vocabulary - let’s call it Tags Filter. Add 2 displays of the type Entity Reference and a filter of the field we added to our terms earlier. So for instance the first display can show the terms which have Sleeping selected and the other one can show terms which have Transport. Save the View and you can close it.
Now finally we can edit our content types and add to each a new field of the type Entity Reference with a select list widget. For the target type select Taxonomy term and under Entity Selection choose the following: for Mode, go with Views: filter by entity reference view and then select the View in question - one of the two displays which we created earlier. In the picture below, I named one of the displays

To compare n number of fields in Kibana

Is there a way to compare two or more fields,as per requirement in Kibana?. Each document consists only 10 fields and the index consisits of only 50 documents. So is there a simple way to compare two or more fields?
From what I understand,you need a way,so that you could see all the fields and make random comparisons between fields. Kibana offers one such simple feature. This can be done by creating a new panel inside a row and selecting the panel type "table". This lists all your fields in the left side with selection checkboxes and then you can select any of them. On selection,the field details would get added as new coloumns to the right as show below.
A more detailed guide on how to use the above feature can be found in this blog

Drupal Profile2 / Field collection sorting records

As continuation of this article Drupal nested / complex / sub content types I have a new question.
As described, using Profile2 and Field collection I've managed to create multi-user CV management system:
Created a content type called CV.
Added a field_collection field to CV called education and allow unlimited entries.
Edited the education field_collection item and add a date field and a text field.
Did the same for work experience and any other fields.
Unfortunately, users should be able to reorder the records (date-text), e.g. to put some of the entries before others. For the moment being they appear in the order of their input.
How to achieve that?
Thank you!
The image below shows a field collection I have made with 3 fields.
One the left of each collection item is a drag handle.
You can re-order content using these handles.

Generate fields in content from other content values?

I want to generate fields in a content from the values of other content.
Specifically, I have a list of "players" stored as a content type, and a separate content type called "Events". Events list the rank of each player that participated. On the "player" content, I'd like to be able to display the players wins by searching all the "events" content. Is this possible?
Also, in Views, is it possible to generate a list of all the events a player has won, as well as how many?
1) Yes it is possible with views "Advanced > Contextual Filters". Before that you have to Create a Relationship ("Advanced > Relationships") with the field of the event that contains the Player information.
2) In this case you have to set the "Advanced > Use aggregation:Yes" and then use the "Count (Distinct)" aggregation in any field in the results.
If your Drupal level is not too high with views module better start with some learning tutorials like these from here: https://drupal.stackexchange.com/questions/5684/where-can-i-find-a-good-tutorial-on-drupal-7-views

Drupal 7: Search fields

I've just started to learn Drupal and decided to implement a simple "Student list" site.
In my content type "Student" I have added a numerical field "age". And now, after entering some content and reindexing I want to perform search on the "age" field.
If I enter some valid age into search box, then nothing is found.
How do I find students by age or by age range?
If you're new to Drupal, each of these steps will require its own instruction. Luckily, there are plenty of tutorials on the interweb.
To create a sortable/filterable list page from your student content type:
Create a view from the student content type.
Set the new view's display type to Table View and ensure that the the age colum is listed as a field you want to display.
Set the table's headers to clickable (so that you can sort your list when it's displayed.)
Use exposed filters to allow people to filter your group by an age, age range, or other criteria (e.g. last name, etc.).
I'd consider the following searches for each step:
Drupal 7 Create View site:youtube.com
Drupal 7 Table View Display Format
Clickable Table View Headers in Drupal 7
Drupal 7 Exposed Filter site:youtube.com

Resources