11.8 What's up next?
You have now the possibility to give different user roles, including the field level, access to your small car management. What is still missing, is:
-
a list of all vehicles, maybe even per site, type or manufacturer of the vehicle.
-
When showing the site, a block along the side with the cars at that site could appear.
-
Otherwise a slideshow of the vehicle's images would be nice. By clicking on the image, one should get to the respective vehicle.
The first two points will be covered with the views module in the next chapter.
The slideshow can now be completed quickly in this chapter!
11.8.1 A slideshow for the vehicles
The slideshow is configurable completely independently of your vehicles and works with JavaScript. You can see the mentioned example on the Website to the book.
http://drupal.cocoate.com/en/node/36
Load the modules slideshow creator (slideshow_creator-6.x-1.27.tar.gz) and JQuery Plugin (jquery_plugin-6.x-1.3.tar.gz) from the respective project Websites3 or the CD and unpack them into the folder /sites/all/modules. Activate both modules via Administer – Site building – modules.
The slideshow is used as a filter in an input format. Therefore, you need to choose the desired format in Administer – Settings – Input formats and activate the slideshow filter (illustration 12).

Illustration 12: Activate the content filter for the slideshow
Depending on the size of your images, you need to set the width and height of the slideshow. This can be done via Administer – Settings – Slideshow creator. In my case, 240 x 240 pixel fit well (illustration 13)..

Illustration 13: Slideshow settings
Depending on how you would like to position the slideshow on the page, you can, for example, create a new page or also a new block and enter the Slideshow Creator Code in square brackets:
Version: The version of the filter, currently 2
Following, you can enter as many images as you like, each separated by a comma.
Image_URL: URL of the image
Link: Link to a Web site, when someone clicks on the image
Title: The text above or next to the image (depending on the configuration)
Description: The text above or next to the image (depending on the configuration)
Target: If the image is linked, you can enter here a target (target attribute),
_blank (standard setting) opens a new window, _parent and _top are used for frames, and _self opens the link in the same window.
Now the already above mentioned example:
Other than this given structure you can also show images from a folder, if you use:
In this case the variables stand for:
Version: The version of the filter, currently 2
You can enter as many image folders as you like, each separated by a comma.
Image_Folder: the image directory
Recursive: Type "yes", if you would also like to include the subfolders; if you don't, leave it empty.
Links: Enter "yes", if you would like to link all images; if you don't, leave it empty. In our case a link to the list of vehicles, that we will create in chapter 12.
Title, Description and Target apply to all images.
A few notes to the slideshow: The title and images of the slideshow are left-justified, the description below is centred, depending on what you set in the configuration and how big the images are. The slideshow is an example to demonstrate the possibilities of interaction. Especially regarding image management with CCK fields, a lot of projects are starting, which would simply go beyond the scope of this chapter though. Continuing Drupal recipes can be found on the Web site to this book4
- Add new comment
- 8757 reads
- Deutsch






Translation
Thanks for the interesting content. Fine for a web site, but for a book you would certainly need translation by a native English speaker, one with expert knowledge of the content and a light readable style.
Help me
What is wrong? Do you have an example?
Greetings
Hagen
English
Vielleicht meint der/die Kommentatorin dass z.B.
"How does it continue" ein bisschen patschert klingt auf englisch
"What's up next" oder "Next steps" oder so was wäre wahrscheinlich "englischer" :))
Aber so lange ich es verstehe, es am Netz ist und gratis ist mir das Wurst, wenn mir Packt dafür 20 E abnehmen will, sag ich vielleicht "Autsch" aber lern ja trotzdem Drupal damit
Liebe Grüße
What's up next?
I have changed the headline from
How does it continue?
to
What's up next?
hope that sounds better
Hagen
Thanks for this writing
I like your writing, the english is readable and very informative. I can follow the instructions with the english. it is better than a lot of other books out there, at least for this chapter that I have seen.
Thanks again for sharing your knowledge.
Thanks
It seems to be the most interesting tutorial I've read. It really gives me a lot of idea and helpful instruction to fix my problem.
Great tutorial - looking forward to more
Finally a tutorial that goes a little beyond the basic install the module advice to actually tweaking the php.
I'm really looking forward to seeing more like this - maybe they are already in German and about to be translated.
Many thanks,
Marg
its not working for me
I want to use slideshow creator in my hook_view and i am using this like
<?php
for($i=0; $i<$count_virtual_tour; $i++) {
$path = SITE_PATH ;
$img .=" img = |$path$products_images[$i]|$path$products_images[$i]| Test image|testing image | Smart slide show |, ";
}
$slideshow = "[slideshow:2, rotate=2, blend=1, layout=default, name=Banner, height=300, width=250, $img]" ;
And than...I print this in $slideshow varaiable in node->content
$node->content['virtual_tour'] = array(
'#value' => ''.$slideshow.'',
'#prefix' => '',
'#suffix' => '',
'#weight' => 16,
);
?>
But it is not working and its showing me the string containing this variable $slideshow.......
Please help me ...if i am missing something or using wrong way to use slideshow
Just a Comment
Hi there,
I tried your tut but it doesn't work:
...slideshow: 2, dir=|files/|yes||Our Vehicles|They could belong to you immediately!|]
But the test from http://drupal.org/node/237049 seems to work, here it is:
[slideshow: 2, img=|http://drupal.org/sites/all/themes/bluebeach/logos/drupal.org.png|drupal.org|Drupal|The ultimate CMS. Download it now!|Drupal|, img=|http://www.mysql.com/common/logos/mysql_100x52-64.gif|http://www.mysql.com|MySQL|Free and reliable SQL server and client.|_self|, dir=|files/|yes||Generic Photos|Aren't they great?||]
Any idea why?
DO drop me a line if u r free w tks:
boyluv2000@hotmail.com