drupal 7 content type to publish to specific page.

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

Just started my first drupal 7 site. I want my content type "articles" to publish to a specific page. Best way to accomplish this?

Comments

Publish Content Type to specific page

LizD's picture

Create a view with Views filtered for that content type and give it a path and/or assign it to a menu item.

Thank you so much. I've been

jayareX7's picture

Thank you so much.

I've been trying to figure out all morning on how to get specific content to all point to one page without forcing it to be the front page.

You are a lifesaver!

Specific Page = Front Page

davidwheelerphd's picture

Articles does publish to a specific page: the Front Page. If you want to change the page title, you can use Page Title module to change the tile of the Front Page and PathAuto for changing the path.

I hate to change the D7 default types; so, you might want to make a new content type and do what LizD suggested.

If you want to display entire content and not just the teaser, go to:
Home » Administration » Structure » Content types » Article > Manage Display > Custom Display Settings
then check Full Content and uncheck Teaser

im ok with creating a new

bjc5070's picture

im ok with creating a new content type. I just thought it would be easier to point articles to a different page.

Learning D7

davidwheelerphd's picture

Especially when learning D7, it is nice to leave the default content types so you can refer back to them. (Now that I understand them, I have modified them to work the way I want. Big difference between Articles and Basic Pages: Articles published to front page and have tags. Basic Page is not published to front page and does not have tags. I added tags to Basic Page. )

When setting up a new content type, go through all the tabs at the top. Try adding new fields. Try changing the way fields are displayed. This is a really good exercise for learning D7.

I am still having trouble

bjc5070's picture

I am still having trouble maybe if i explain what i am doing, you guys can give me a better way to accomplish this goal. I am making a small site for a small business. the owner wants a "blog" where she can publish news about the company. I was debating the best way to go about this. My thought was to make a content type that published to a specific node, which would be the news page of the site. anyone know how to do this? or a better option?

Still Having trouble

LizD's picture

bjc5070

I think you are not understanding what a node is and so you are not understanding what we are trying to tell you. A node is basically an entry in Drupal - so each article or blog entry IS a node. You cannot create a content type and group them into a node. You can create a content type and then create nodes of that content type. Or you can create nodes of existing content types. You can then group the nodes - not the content types.

You can group nodes together using various criteria to limit which nodes are being shown using Views. By default, Drupal provides you with an Article content type and a Blog content type (among others).

If you want a blog - Go to modules and under core check "blog" to enable the blog content type. Then go to Menus under Structure and go to the Navigation Menu. Enable the Blog entry. If you want it in your primary menu rather than the Navigation menu - just change the menu popup. Blog's automatically group together by author. All your user needs to do is make a blog entry. If you want the latest entry to show up on the home page - create a view to show the last entry. When they click the blog link at the bottom they will go to the entire blog. Fotr an example see Christ Church Gilberstville. You will see Fr. Joe's Blog at the top above the rest of the content as well as a menu entry for a blog. This is D6 - but the principles are the same.

If you really want NEWS rather than a blog - just use Articles. Selecting publish to front page will put them on the front page. To group all the Article nodes into one page - use Views. Create a menu entry for the View and when the user clicks that menu item - they will be taken to the page with all your articles.

Thank you that was very

bjc5070's picture

Thank you that was very helpful and informative. As someone who drupals in there spare time I sometimes forget my drupal basics. thanks.

Blog not default content type in D7

davidwheelerphd's picture

Blog is not a default content type in D7.
Article in D7 makes the frontpage a blog roll.
The Blog module in Drupal 7 core is not for a single user blog but it is there to enable each user to have their own blog.
You can change the default frontpage at Home » Administration » Configuration » System > Site Information

With Pathauto module installed:
Home » Administration » Configuration » Search and metadata » URL aliases > Patterns Tab
lets you change the displayed URL for each content type. This might be what you want.
If you use the replacement pattern: blog/[node:title]
for Article content type, then your URL will become http://example.com/blog/article-title for each Article content you make.

thank you all I was able to accomplish my goal.

bjc5070's picture

thanks

Let us know...

davidwheelerphd's picture

Let us know what you did so we can all learn from it.

I didnt write down my exact

bjc5070's picture

I didnt write down my exact steps, but I created a new content type and a new view for that content type. I created a menu link to that view. So the view shows new content in a teaser list. It is very easy to do, and quite frankly a process that I had forgotten about.

I followed a tutorial that I cant seem to find. If anyone knows of a good one please post it here.

Gotta love Views

gregoryshearer's picture

I do not get to chime in on these threads often enough, or in a timely enough manner, but that is exactly the approach I'd take. For the record I am still on D6 so pls correct me if I state some old info.

Now that you have your main Page display created in your View it is very easy to add other "Displays" for this same content. Perhaps a Block display to list just the titles and dates of the 5 most recent posts? Perhaps a Block to output a teaser to one random post? (Random is one of the sorting options.)

It may well be different in D7 but in D6 you could also create a Display of type "Feed" that would create an RSS feed of your content type. You might set set that up and get that extra mileage out of your content.

Views have such a high learning curve that many people that I have talked to never really push past the basic level of setting up a Content Type and an associated page View, but it can do much more. Especially when you start getting into things like FileField/ImageField (CCK modules), ImageCache, and LightBox you can do some cool stuff. Again, not sure what exactly the status of CCK is in D7. I heard it is mostly core now.

I dug up this link to a tutorial I found really helpful when learning this stuff. Probably still valid for the most part:
http://jamestombs.co.uk/2009-03-18/create-a-simple-image-gallery-in-drup...

hi

dinakaran.ilango's picture

guys can you plese tell me how to enable image module in D7

Image Module does not exist in D7

davidwheelerphd's picture

Use Media and Mediafront modules.

Search http://drupalmodules.com/module-finder?title=media (limit scope to D7) and you will find other helper modules for media.

=David Wheeler

hi

dinakaran.ilango's picture

guys can you plese tell me how to enable image module in D7

thanks

dinakaran.ilango's picture

thanks for your replay davidwheeler

Pittsburgh

Group notifications

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