Multiple content in a single view - Drupal - drupal

Is that possible, in Drupal 7 or 8, to use multiple content type in a single view, ordered by a taxonomy that those are shearing.
For now, i get to have one content type, ordered by his attached taxonomy, but i can't figure out how to add an other content type witch is using the same taxonomy.
The difference between the two content type is that the first one have two more field. The second one will have later an other field.
Is that possible and how to do that?
Thank's !

Yes it's possible and if your question is full detailed very easy:
Just open in "Filter Criteria" filter called "Content: Type" and in opened window choose "Is one of" at the right part and your content type(s) at the left part

Related

Drupal change row weight in Content Types list

in Drupal 7 you have two content types by default ("Article", "Basic page"). On this page www.site.com/admin/structure/types you can set up a new Content Type (e.g. "My type 1", "My type 2") having in mind your specific reasons. However, the list does not have a row height (ordering) option for this list and I am unable to find any solutions for that.
Given examples above, current Content Type list will always have the following sequence:
Article
Basic page
My type 1
My type 2
The problem is that when a content manager wants to create new content (www.site.com/node/add) he sees exactly same sequence of content type options and might intuitively choose "Article" rather than "My type 1" if not instructed.
In other admin pages like Blocks, Main Menu List Links etc. I have an option to move items up and down (or to "change weight"). How can I achieve the same for Content Type List, so that "Article" and "Basic" comes below "My type"?
I had the same problem, but never figured it out in a coding way. What I did is add a number before the name of content type. In your case, you can do like:
Content type:
1. Mytype
2. Article
3. Basic Page
If you want to do in a coding way, you need to hack into Drupal core, create a column in the database for content type, with auto increment. Then in drupal core, you need add a function to reorder the content type. But as you know, you will lose the change once you update drupal. Or you can create a custom module. Good luck

How to display different contents types(twitter, imges, blog etc.) in Viewslide show in Drupal?

I am trying to display different content types on Drupal as views slideshow, including twitter, images, and blogs. Currently they are all saved in a field (unlimited value fields). I am going to extract these values to nodes as views only accepts node type values. I am wondering what is the best way to do it? I am new to drupal and can think of following ideas:
1. Use one node type, and create a display mode for this node type with customized codes
2. A separate node type for different content types, and each node type with some display mode
3. A minipanel for each node type,is it possible to display it in view slideshow?
4. some code to get data directly from fields, and export to views?
5. Or I use Colorbox and completely forget about View Slideshow?
Please help. Thanks.
You must set all the content types you want to pull in the query in the "edit" form of the view. It is not possible using only the one-step setup, you must choose "continue & edit" and then add different content types to your slideshow view.

Drupal | remove default value of a select box constructed from Taxonomy

I have a taxonomy attached with my content type. While creating node of that content type I see "- Choose one -" value in the drop down of taxonomy. I want to remove that and want to set default value to a specific term. What could be the preferable way of doing this? I also don't have much experience in Drupal.
I am able to resolve the issue now. Just added the following line in my form alter
unset($form['taxonomy'][$vocabulary_id]['#options']['']);

Drupal - show content from a content type in different regions

I am a newbie on Drupal.
I am building a product page whose layout is 2 column, the first column (main content) displays text content and the second column (right hand side) displays two information boxes one below the other.
To implement this I created a new content type called "product detail" and added two text fields calling it as box1 and box2.
Now, when I post a page using the "product detail" content type, it shows the 2 fields below the main content.
I configured the managed fields to 'Exclude' so they are not part of $content.
But now, I don't see them, how do I get them to show them on the RHS?
My .info file has $content and $right.
Thanks,
jackdive
If you are not familiar with the ins- and outs of developing blocks, or assigning variables to a theme, I suggest you use the "turnkey" solution called cck_blocks.
Otherwise, the pattern you are looking for is:
Use template preprocessors to extract certain field values of the current shown node.
Shrub (XSS etc) and print these values anywhere in the template.

Content Taxonomy along with Conditional Fields

I'm still young at Drupal.So please correct me wherever needed.
I have a requirement wherein I want my content type to have my own fields (achieved with CCK), then I want one of the fields to be a selectable drop down and each drop down value should actually categorize them so that each type can come on separate page. This I managed with taxonomy. And in addition to these,I wanted some other fields in the same content type to be dependent on a particular value in the drop down. So I used conditional fields. And in order to use taxonomy term as field,I used content taxonomy. But unfortunately, conditional fields doesn't see the content taxonomy drop down (it works perfectly well if its a normal non-taxonomy drop down).
So basically,
I want content to be separated (i.e.
on different pages) on the basis of
a value selected from drop down.
And if a particular value is
selected from drop down, few other
fields should become visible.
How am I to incorporate these things? Am I on the right track or completely off track?
I am using Drupal 6.14. :)
Thanks for all the help!
I think you are on the right track, but the Conditional Fields is still in beta, so bugs/missing features are to be expected. Also, Content Taxonomy is a bit special compared to other CCK modules, as it only provides a replacement of the taxonomy fields on node edit forms, but is not present/active during node rendering.
That said, your Problem is already filed as a feature request in the issue queue of the conditional fields module, and there are some patches available and discussed to solve it - so you might want to check out that thread.
I'm not completely sure how you require the 'different pages' part to work, but if everything else works with a non-taxonomy dropdown - and you don't have time for the issues with Conditional Fields to get shaken out - then you may be able to set up a View page that filters on the value of the CCK node.

Resources