By catam on
does anyone know how to create a news like block? what i want is to have on my site a block called NEWS and beneath the title to have news title, part of the article and maybe a picture. those that are interested in the article should click the link and get the whole story
Comments
Yes, this is possible, but
Yes, this is possible, but you will need to learn how to use the Views and the CCK modules, especially if you want an image to accompany the text. If you want straight text only, you can use a php snippet similar to the one here:
http://drupal.org/node/44854
----------------------------------------------------------------------
http://music.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
If you install the Views
If you install the Views module, you can easily create a block view exactly as you've described.
You'd need to follow the documentation and instructions for Views, as the View creation page can look quite complicated when you first see it.
Assuming you're using the Story content type:
1. Add a bunch of news items (Stories).
2. Create a block view called "News", display as Teasers, limit it to 10 items (for example), add a Filter that only displays Story nodes, add a Sort Criteria (maybe Updated Time descending for most recent stories first).
3. Go to blocks admin and add the new view to your Theme layout (left sidebar for example).
Good luck, one step at a time.
I am not so technical. I
I am not so technical. I have views module installed, i'm trying to adding a new view module (Home › Administer › Site building
Views) but i am loosing myself in the adding process
The learning curve is a bit
The learning curve is a bit steep. Give yourself some time to become somewhat technical. Also, have you activated the advanced_help module? It will help a lot to guide you.
----------------------------------------------------------------------
http://music.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
i created a view that
i created a view that generates exactly what I need. What should I do with the code? The news section is a block, so I enabled the "Show if the following PHP code returns TRUE (PHP-mode, experts only)." and there i placed my code, but nothing happened. That block contains two nodes. Where did i do wrong?
I found my view block in the
I found my view block in the admin page. it works fine, but it print's out all my stories(including front page and the rest of the buttons). How do i print just the stories I want?
You will need to somehow tag
You will need to somehow tag the stories you want. You can do this with taxonomy, for example. Another way: do all the stories you want contain a specific word, in the body or in the title? Are they all authored by a particular user? You can constrain your results that way as well, by using a filter.
----------------------------------------------------------------------
http://music.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
bwv, can I write you on your
bwv, can I write you on your email?
yes, of course. thanks for
yes, of course. thanks for asking.
----------------------------------------------------------------------
http://music.bwv810.com
http://classicvinyl.biz
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
bwv I sent you a mail did
bwv I sent you a mail did you get it?
Yes, and I replied. You
Yes, and I replied. You will need to post that question to the forums, as I have very limited experience with multiple languages on the same site. regards
----------------------------------------------------------------------
http://music.bwv810.com
http://classicvinyl.biz
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.