Hi,
Is it possible to have the DDBlock display a set of content for say the Homepage and different content on another page. The main reason for my request is that we want to have the home page using general content and then have a city page (one for each city in the UK) that has its own DDBlock content relating to that city.
Is this possible do you know, and if so where would I start in getting this working?
Many thanks
Turns out this is possible - but there's not really a quick & easy solution. Multiple DDblocks have to be created using multiple views. Following that, handling for the additional views have to be added to the preprocessing functions in template.php. How many cities would it be approximately?
Hi there, I need around 10 cities really but also have the possibility to extend if required..... Is this possible?
You'd be looking at creating a seperate DDblock for each city, with it's own View and additions preprocessing functions, so really to add another city you'd have to set this up manually each time. I tried to figure out a clever way to do this, but unfortunately from what I can tell this is the only option at present - there's no way to really streamline the process.
This thread addresses the issue with advice from the modules maintainer: http://drupal.org/node/405948
I'm not sure how comfortable you are with PHP, but the changes to the preprocessing functions are essentially adding additional conditional statements (via cut and paste) for each additional view. So although it's not as simple as it could be it's entirely possible. You'd just end up adding to template.php each time you add a specific city.
You may want to consult the Drupal forums and see if anyone's got a better suggestion for doing this - it's possible the DDblock isn't your only option. Admittedly my skills are stronger in theming than development so I might not be the best consult on it.




