Use ddblock as really simple Slideshow generator

lutin - May 21, 2009 - 15:46
Project:Dynamic display block
Version:6.x-1.0-rc6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi there,

this is what I'd like to do with ddblock:
1) User uploads pictures to a folder via FTP
2) User generates slideshow by simply specifying the path to the images and the number of images
3) User adds link to slideshow on overview page

Step 3 is already done (one page showing the block id that is in the GET parameters).

My biggest problem is currently Step 2:
All other block-specific settings such as sizes, pager, fading effect, delay, etc. should not be available to the user; instead standard settings should be applied to all slideshows. These can be set by the Admin or somewhere in the code; both would be fine for me.

How can this be achieved? I tried to hide the form elements on the configuration page, but I'm not too deep into the coding stuff so this didn't work for me.
Is there a way to do this via CCK and Views so that the user e.g. only creates a new content of a specific type and the slideshow is generated "automagically"?

Or is ddblock the wrong module to achieve this? Maybe there is an easier way?

Thanks for your help,
lutin

#1

ppblaauw - May 22, 2009 - 01:29
Status:active» postponed (maintainer needs more info)

You can have a look at Using ddblock with arguments to show images in a node. Maybe this is a solution for you.

Note: Instead of using filefield, image field, image API you can also use IMCE with optional IMCE image. (see also issue: Using IMCE modules instead of using imagefield, filefield, imageAPI modules)

If not, Users need to use e.g. FTP to upload files. I am sure there is a solution.

Please let me know what option you want to achieve, and I can help in finding a solution.

#2

lutin - May 22, 2009 - 15:16

Thanks for the quick feedback.

What I want to achieve is the following scenario:
- A selected user (i used a role named "editor" for that) can upload several images at once, either via FTP or a simple web interface (even better)
- This user can create a new slideshow only by specifying the title, description, path and the number of images - all other options are set globally by the Administrator.
Would be nice if this would be possible by just adding a new content type that consists of title, description, path and the number of images without having to touch the ddblock configuration page.

Thanks,
lutin

#3

ppblaauw - May 23, 2009 - 00:35

That can be accomplished with what is described in Using ddblock with arguments to show images in a node.

In this option you don't need to upload the images first and then create a node to with a link to the images.

The user (editor):

  1. Creates the node
  2. Uploads the images
  3. Adds a title and a description to the images
  4. Set the number of images to show of the uploaded images (if needed)
  5. Save the node and the slideshow will be there

Please let me know if you don't understand that solution or need some more detailed descriptions.

We are now making a more detailed tutorial to create this functionality.
(will be published soon on ddblock.myalbums.biz)

#4

ppblaauw - May 23, 2009 - 09:39

Published the detailed How to create an Advanced slideshow with multiple imagefield images in a node

Hope this helps you create the functionality. Please let me know.
Also comments welcome on the howto, to improve it.

#5

lutin - June 1, 2009 - 09:40

Thanks for the link. It took me some days to get through it and trying to understand it.

I followed all steps, but I'm not sure if I got the preprocess thing right. I did not have any preprocess functions before, so I added the provided code from the How-To of the preprocess functions and replaced most of it by the provided code from the tutorial you sent me.

Anyway, I'm now able to generate a node with the content for the slideshow, I created the node-node_gallery.tpl.php file but if I call the page that should display the node, it only shows the headline "Related Images", but not the slideshow below.

I guess it's because of the preprocess function thing, so I attached my template.php file.

AttachmentSize
template.php_.txt 9.52 KB

#6

ppblaauw - June 1, 2009 - 09:56

The preprocess function in your template.php file look Ok to me.

Can you uncomment the drupal_set_message lines in both preprocess functions?
Reload the page and you should see debug lines.

Can you send them and if you have a link to the Internet site that would also help.

#7

lutin - June 1, 2009 - 11:37

I uncommented the lines, but can't see the debug lines. Do I have to "activate" preprocessing somewhere besides changing the template.php file?

I opened the test site, you can see the node here: http://test.skigemeinschaft-wdrh.de/?q=node/9

#8

ppblaauw - June 2, 2009 - 00:42

The preprocess functions are found automatically by the theme system.

Its difficult to determine the cause of the issue.
Best to check every step of the tutorial.

(when I e.g. don't change [BLOCK_NUMBER] with the actual number of the block I get the same results, no related images)

If you have suggestions to improve the tutorial, please let me know. Always trying to improve the tutorials.

#9

ppblaauw - June 3, 2009 - 06:23

I did some more experiments with view arguments in blocks and found out that a few steps in the how to tutorial are not needed. I published a revised tutorial.

You don't need to change arguments support for the dynamic display block module, so please reverse this step.

Hope this helps you further, please let me know.

#10

lutin - June 13, 2009 - 16:24
Status:postponed (maintainer needs more info)» fixed

I deleted everything related, updated the modules and did everything again according to your new version of the tutorial. And it works!

Thanks a lot!

#11

System Message - June 27, 2009 - 16:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.