I have Static Blocks in which I have Static Content , So I want to Make that Content Dynamic ,So I want to know How to do it??

Comments

marcvangend’s picture

Some modules provide blocks with dynamic content. For instance, with the Views module you can create a list of the 5 latest nodes. You can also set the input type of a custom block to php and enter your own code.

If you can be more specific about what you need, we can be more specific about the solution.

Amit.lakhwani’s picture

I have Created Few Modules like Image Gallery or Celebrity Information in which I have Displayed the Names of Celebrities and their Images r there , Now Admin can Select that which Celebrity is in Focus or Toprated , So how to Create that Functionality Dynamically in Drupal

charter’s picture

Hello everybody,
Maybe out of topic right now... I was just wondering... I have a library page in my website and would like to have a disclaimer page that opens before people download the book.
It should basically be a download button next to my book, people click on it and get the disclaimer which they have to check to proceed with the download.

Look forward to hearing any options!
best,
charter

marcvangend’s picture

If you have a node for every celebrity, you could add a field to the content type indicating the 'in focus' status or a rating. You need the CCK module to be able to add fields to content types.
You'll also need the Views module. It allows you to set filters (type=celebrity, status=infocus), sort the results (by date, alphabet, rating...) and create a block with a list of the resulting nodes.

Battlehard’s picture

Hi Amit,
I’m really new to Drupal but I’m trying to do something similar to what you have done. I’m developing a free site for the RSPCA in Brighton and need to be able to show the latest 5 or 6 animals with their picture and a linked to a page on them. I’m using D6. If you could elaborate as to how you achieved it that would be great.

Any advice would be much appreciated

indianbusybees’s picture

Hi,

You can use view module to make dynamic blocks. You can download it from here.
http://drupal.org/project/dynamic_views

Thanks,
BusyBees

marcvangend’s picture

Sorry to corrct you but the views module is here:
http://drupal.org/project/views

ppblaauw’s picture

Hi all,

You can try out the dynamic display block module.
http://drupal.org/project/ddblock

Philip
Dynamic display block module maintainer