Hello,
I've got a website I'm developing for a library. On the front page will be displayed new events, updated and added pages, etc. What I'd like to do is have a small area on the page that shows a few featured events. Kind of like this site: http://www.aadl.org
My question is, where do I start? How do I classify an event as being 'featured', and how do I get a block to only display those items?
Thanks in advance for any help you can provide.
- jody
On Oct 20, 2006, at 10:41 AM, Jody Cleveland wrote:
I've got a website I'm developing for a library. On the front page will be displayed new events, updated and added pages, etc. What I'd like to do is have a small area on the page that shows a few featured events. Kind of like this site: http://www.aadl.org
My question is, where do I start? How do I classify an event as being 'featured', and how do I get a block to only display those items?
Here's one approach that could work:
Create a view using views module. Designate it a block. In the footer, point to your calendar in a link.
For the filters, use node is event, node is published, node is promoted. Sort order by event date or post date, whatever is your preference.
Display the block on your front page. There are a half dozen ways to do that.
In your workflow under admin/settings/content, change your event node type defaults to simply published, but not promoted to front page. To feature an event, simply promote it to the front page (which you can do during creation or under admin/content).
Based on how long you make the views block, your featured events will display or roll off the list, as indicated by your views settings.
To adjust your block, give it a new name, header, footer, whatever, all you need to do is edit your view.
Hope this helps!
Best, Laura
•)))
Laura Scott pingVision, LLC http://pingv.com
303.415.2559 • inquiry@pingv.com
On Friday 20 October 2006 09:41, Jody Cleveland wrote:
Hello,
I've got a website I'm developing for a library. On the front page will be displayed new events, updated and added pages, etc. What I'd like to do is have a small area on the page that shows a few featured events. Kind of like this site: http://www.aadl.org
My question is, where do I start? How do I classify an event as being 'featured', and how do I get a block to only display those items?
Thanks in advance for any help you can provide.
- jody
You could try using taxonomy to classify the events as "Featured" (or whatever) and then using views to only show those items.
The best, and easiest, way to do this would be to use the wonderful nodequeue module.
http://drupal.org/project/nodequeue
On 10/20/06, Jason Flatt drupal@oadae.net wrote:
On Friday 20 October 2006 09:41, Jody Cleveland wrote:
Hello,
I've got a website I'm developing for a library. On the front page will be displayed new events, updated and added pages, etc. What I'd like to do is have a small area on the page that shows a few featured events. Kind of like this site: http://www.aadl.org
My question is, where do I start? How do I classify an event as being 'featured', and how do I get a block to only display those items?
Thanks in advance for any help you can provide.
- jody
You could try using taxonomy to classify the events as "Featured" (or whatever) and then using views to only show those items.
-- Jason Flatt http://www.oadae.net/ Father of Six: http://www.flattfamily.com/ (Joseph, 13; Cramer, 11; Travis, 9; Angela; Harry, 5; and William, 12:04 am, 12-29-2005) Linux User: http://www.sourcemage.org/ Drupal Fanatic: http://drupal.org/ -- [ Drupal support list | http://lists.drupal.org/ ]
Hello,
The best, and easiest, way to do this would be to use the wonderful nodequeue module.
Wow, that looks excellent!
Quick question though. I've got the module enabled, went to actions and added the two for the module, but what do I do now? I would think under publishing options of a page is where I'd set whether it's in the queue or not, but I'm not seeing it anywhere. Am I missing something?
- jody
When a node type is configured for a particular queue, Nodequeue adds a tab to the edit page for nodes of that type, which allows you to add nodes to the queue. Then there is a snippet of PHP which you need to place where you want the queue to be displayed. Read the documentation--it will show you the PHP you need.
On 10/20/06, Jody Cleveland Cleveland@winnefox.org wrote:
Hello,
The best, and easiest, way to do this would be to use the wonderful nodequeue module.
Wow, that looks excellent!
Quick question though. I've got the module enabled, went to actions and added the two for the module, but what do I do now? I would think under publishing options of a page is where I'd set whether it's in the queue or not, but I'm not seeing it anywhere. Am I missing something?
- jody
-- [ Drupal support list | http://lists.drupal.org/ ]
Hello again,
Wow, that looks excellent!
Quick question though. I've got the module enabled, went to actions and added the two for the module, but what do I do now? I would think under publishing options of a page is where I'd set whether it's in the queue or not, but I'm not seeing it anywhere. Am I missing
something?
Ok, nevermind, I got it. Had to add permissions to the user role.
Question now is, I've created a block with this in it: <?php print nodequeue_nodes(1); ?>
Which, is copied exactly from the readme file. I just changed QUEUEID to one, since that's the qid of the one queue I've got.
When I view the page, there's just a blank spot where that block should be. Am I missing something?
- jody
Hello yet again,
Question now is, I've created a block with this in it:
<?php print nodequeue_nodes(1); ?>
Which, is copied exactly from the readme file. I just changed QUEUEID to one, since that's the qid of the one queue I've got.
When I view the page, there's just a blank spot where that block should be. Am I missing something?
Helps if I change input format of it to php. ;)
Do you know if there's any more detailed documentation for it other than the readme file? Right now, it looks like it's taking exactly how the content element looks. I'd prefer it match the stylings of the area I placed the block. You can see what I mean here: http://beta.menashalibrary.org/
The upper right is where it is.
Is it completely controlled by the stylesheet, or is there something else too?
- jody