Display Field Collection items inplace of field_links? Drupal 8.1.3 - drupal

I am Newbie to Drupal. I want to create a plant taxonomy website to my college. Here I add a image field with description field inside field collection. It displays inside a new page. But I want to display field collection data in the same page in place of the link(field_parts_of_plant 0).
Here the image for your reference
Help me to do this!!!

It works fine after adding "reference table formatter" module. Drupal 8 is awesome]1

Related

How to see field names of a view in Drupal 7?

How can I find the name of a certain field in my Drupal 7 view? For example I'm trying to find the event date field name in this view so that I can use it in my template file.
Thanks.
You can hover over the field name on the view edit page and you will get the field machine name at the bottom left corner of your browser screen.
But what you should really do in my opinion is download and enable the Devel module and add dsm($fields); in your template that will output all the fields available and their structure.

Exposed views filter made of titles

I'm making a views slideshow of some images.
These images have a title.
I would like to expose this title as a drop-down list filter.
I'm able to do this with pr-configured filter values, but i want this list to be build by the values that the end users gives as a title to a image. (or made of another field like description etc...)
So, when a user uploads images with a title "vacation", i would like this value to come up in the exposed filter in the views slideshow...
Thank you
This can easily be done using the Views Reference Filter module.
Create a views page with the fields you wish to display.
Add an Entity Reference display to your view.
Set which field should act as your search field in the format settings of the Entity Reference display (in this case Content: Title). Remove or exclude all other fields for this display only (override).
To your page display add a filter Content: Nid (entityreference filter) and expose it to visitors. Remember to select the correct view in the "View used to select the entities" drop down if you have more than one Entity Reference views.
Optional steps:
Enable Ajax for your view.
Set the exposed form style setting to auto submit.
If I were trying to accomplish this I would add a taxonomy vocabulary for these images, then I would add a field to the image content type referencing this vocabulary.
After that, I would use create a Rule that would react to saving a new image and add a new taxonomy term to that image that is the title entered.
You can then easily create a filter in views to filter off that taxonomy term and expose that as a dropdown. By doing this each image should have a taxonomy term attached to it that is the image's title. As images are added the taxonomy terms should appear in the dropdown.
Let me know if you need any additional guidance.

Drupal 7 - Taxonomy terms based on pages?

No idea if this is the best way to do this but here is what i'm thinking.
I have a content type called 'Widgets' and each widget is a little piece of content. I wish to then have a generic 'View' which goes off and grabs all the widgets for the current page that the user is on.
Here is how I see it working in my head.. just not sure how to do it.
-When creating a content 'widget' the admin can somehow select a page they want it to appear on from a list taxonomy terms based on the site structure (as new pages are added they are also added to this tree automatically somehow)
-When a user then browses a page the generic view then works out what page the user is on and fetches all the widgets that have been tagged with this current page
Is this possible? and if so can someone please give me some pointers.
I figured this out, in the fields for the main pages you can add a term reference field that allows you to enter a new tag into the vocabulary.
The 'widget' content type can then select this new tag using a term select field. My view then automatically displays it because it is related.

Drupal 6.20, fields missing when viewing a node appear when editing

I have a node that contains 6 fields. When the user views the node, the only fields that appear are those for which the user has already entered data. When the user edits the node, all the fields are visible. I have inspected the HTML to confirm that the missing fields are not being hidden by CSS. How do I make all the fields visible when the user views the node?
If the field is empty, then drupal won't display it.
You can create a views with Views Module http://drupal.org/project/views and display all fields with a default value.
Contemplate is also a good solution to create easily template for your node : http://drupal.org/project/contemplate

DRUPAL: adding CCK image fields to other CCK fields

can I add a CCK image field to another CCK field ? I would like to add icons for each item i add. At the moment I can only write the description.
This would be very cool functionality!
You could do this with JQuery if you want to add an icon by file type. For example see http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/ tip #10.
If you want to be able to specify an icon per item added (so it could be a different icon for every added item) then how you do it depends on how you are displaying it.
So lets say each CCK field is being added to a particular node type and you have a view that lists those nodes then I'd recommend adding a CCK image field to the node (so that each node of the required type has the descriptively named CCK image field and the original CCK field) and then adding a custom template to the view that controls how the image and field are output relative to each other.
I was about to write an example of how to do that but thought I'd check if that describes your needs before I add unnecessary info to the response.... can you clarify what you're trying to do?
You can do this using CCK 3.0's multigroup functionality. Note that there is no stable release for this branch, but it seems to work fine for most use cases.
You would add an image field (icon) and a text field, into a multigroup, and then when adding a new node, instead of the traditional 'add another' button, there is a button to add another group of associated fields.

Resources