Best way to create content types

Events happening in the community are now at Drupal community events on www.drupal.org.
Tran's picture

I have been trying for a couple days to create content types (News, Sports, Obituaries).
First, I tried cloning article. But there is no clone ability for some reason.
So I exported it and imported it, but for some reason, it wasn't recognized as a content type (yes, FCC editor was off).
So then I tried taxonomy.
But that has been difficult. I was able to create page views just fine, based on article. But for some reason, the block views and featured homepage taxonomy isn't as effective. The blocks don't all get created. And even when they do, they don't always show.

I love the Article Format.
I want to have News article, Sports Article, Obituary, and Entertainment, all based on Article. I love the teaser/deck/blocks etc.
How do I best copy this format for other article types.

Comments

I've tried the same cloning

pigot's picture

I've tried the same cloning 'article' content, and related 'views' but it was too complex, and at last inefficient.

In trying to have my own sections, I've followed this path:

1) using taxonomy, I've created a new vocabulary called 'magazine' (you could call it anything else as 'sections'...), associated with contents: Article, Audio, Event, Feed, Feed Item, Image, Package, Resource, and Video. In parameters, I've selected the last two options ('selection multiple' and 'obligatoire' as my interface is in french), the first option 'tags' (created by users...) is not selected as I want to keep the control of my sections.

2) I've added 'terms' to vocabulary 'magazine', those terms corresponding to my sections: 'A la Une', 'Tendances', 'Bien-être', 'Rencontres', 'Découvertes', 'Hightech', 'Aventures', and 'Rendez-vous'. By this, I created as many categories, each one having its proper path as: /category/magazine/la-une, /category/magazine/tendances, etc.

3) I've associated these paths with the primary menu entries deleting the original paths recorded in OP1.6. It's seems there's another way to reach to same goal, it's using the 'URL alias' function, but I've not tried it so far. It seems such that, it's possible to keep the orgininal primary menu paths, by instead aliasing the category paths...

4) As it's possible to associate an article with multiple 'magazine terms', an article can be present in multiple sections. My purpose is to give a special behaviour to 'A La Une' category. In fact, I've created the 1st category 'A La Une' ('cover story' in english) to have a category that could become a filter to feed the 'Latest Headline'. The possibility is implemented, but not functioning yet, as I've not been able to create the right filter in the 'articles' view...

Any idea..?

Thank you

Tran's picture

I have used taxonomy and views to create pages for obituaries, news, sports and entertainment.
That works fine.

The problem I am having is with the front page.
I can't get the newly created views, created with taxonomy, to show up as options in context.

hmmmm, I think that what you

Adam S's picture

I just wrote a whole bunch of stuff then reread your question so although you have been sent the jist of it in an email I'm retracting. Not the answer you wanted. Unfortunately, you are ahead of me on the context module. I will get to in a couple of days.

Marine job board with Drupal 7 at http://windwardjobs.com

I just messed around with the

Adam S's picture

I just messed around with the context module a little. Perhaps you do need to create the views filtering by taxonomy terms and then also creating a menu trail which you will use in the end to activate the context. If that is the case then it's a views issue and you will need Using Drupal by the http://lollabot.com people.

This is bummer because the panels module allows you to send an taxonomy term as a argument saving you from having to create a new view for every article category saving loads of time. This worked great with the node breadcrumb module. For example, this page http://thetriton.com/columns used it. This page is created by panels over riding views. And if you click on any of the articles the node breadcrumb module creates an active menu path all the way back to the panels. This is the most basic implementation of the process.

How is this different than the context module?

(And, why does mollem think I'm spam?)

Marine job board with Drupal 7 at http://windwardjobs.com

I am not sure I fully

irakli's picture

I am not sure I fully understand the problem you are running into, so I will try to answer the last part.

Context is, mostly (at least as far as OpenPublish is concerned right now) a significantly improved substitute for the core block management interface.

Panels is a sophisticated way to assemble a page with layouts. Context and Panels are like a Toyota Prius and a big GM truck. Both useful in their own space but very different. You don't want to be commuting to work in a huge, gas-guzzling SUV (especially if you care about environment), but you would also not be able to do, with Prius, many things that GM trucks were created for.

For lightweight block-management, we think Context is the best Drupal has, right now. However, we also do use Panels for heavier lifting in OpenPublish and you can certainly, easily replace default home-page with a Panel-s driven one if you want to.

Since Panels3 is quite mature now, we are increasingly using it for some interesting things and plan to offer more cool features, based on Panels, in the next versions. That's all I can say, right now :)

.............................................
http://twitter.com/inadarei

Thinking the question was how

Adam S's picture

Thinking the question was how to use taxonomy terms to classify articles into different menu items, I went into an explanation about how to use views to do that. Then I realized that might not by what they are asking here. So, I erased everything I wrote.

I haven't used context although I have read some of the documentation, download OpenAtrium to look at it and Spaces and watched the screencasts. What I was inferring from this discussing -- I don't know why -- is that perhaps a context passed an argument into a view which is something that can happen with Panels, obviously it doesn't or I just don't understand either or which is usually how I pass through life. I still am not sure but I thought a context could be defined by taxonomy and that idea came from something I read about it in the corner of my eye on a blog.

I have a jist of what a context is now and how it can be utilized to create different sections with different block layouts. This I don't think is the problem being discussed here. I think that these two people are having a hard time developing page views for different taxonomy terms with active menu trails and correct breadcrumbs. This is a different problem than understanding context. The context module asks for a view and that page view needs to created with a filter.

This is an example that might highlight a problem of straying from Drupal with to many custom features outside Drupal's realm with OpenPublish. These support questions are Drupal problems and if they had asked the original question of this thread in a forum as a Drupal support issues concerning CCK, Taxonomy, Views, Menus and Breadcrumbs they would have been given an answer from someone in the wider Drupal community a long time ago.

Marine job board with Drupal 7 at http://windwardjobs.com

Little knowledge is sometime better...

stattler's picture

Now I feel that knowing less is good, sometimes, especially when it comes to Drupal Context. I found the context to be very smart tool as compared to blocks. I know less about Drupal, so it was easier for me to adapt to Context :)

With context, I just create blocks using views and add them wherever needed. Its that simple.

I hope OP will continue to have contexts in the future versions.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: