I just see "This preview does just shows the node titles of the nodes which will be show in the slideshow"
(visible here: http://www.jbfelix.com/portfolio)
what's wrong ?
How to enable the slideshow ?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #41 | template.php_.txt | 4.83 KB | Javier |
| #18 | ddblock-fix-preprocess-function-not-called-566766-1.patch | 833 bytes | ppblaauw |
| #14 | Themer_information1.png | 23.07 KB | ppblaauw |
| #14 | Themer_information2.png | 48.77 KB | ppblaauw |
| #13 | dd.jpg | 29.64 KB | jbfelix |
Comments
Comment #1
jbfelix commentedoops
error in the url...
Try this one: http://www.jbfelix.com/moove/galerie
Comment #2
ppblaauw commentedThanks for testing the module.
This is a cashing issue.
At one installation I also have this issue when I change settings in the configuration of the module.
On another installation I don't have this issue
No solution yet, other then clearing the cache, after a change in the configuration.
Edit:It seems that: views 6.x-2.6 has more caching options. On the installation where I have to clear the cache each time views 6.x-2.6 is installed, on the other an older version.
Which version of views do you use?
When you clear the cache at:
administer > site configuration > performance
the slideshow should be shown.
Do you also use the ddblock module?
Hope this helps you further, please let me know.
PS.
Please use the latest dev version (september 2) and the latest downloads from ddblock.myalbums.biz for the themes and export package (preprocess functions)
That version has now support for a scrollable pager.
Comment #3
jbfelix commentedThanks, but still not working.
Module ddblock has been disabled.
I did the necessary upgrades for modules image, views (6.x-3.x-dev), views slideshow
I cleared the cache, but nothing goes better.
Could you help me for the preprocess function ?
- My theme is "acquia_slate"
- My view name is "news_items"
- I have imported the fields in the node type "projets"
- And i would like to display a specific cck field called "field_projets_images"
Here is my preprocess function, could you correct it ?
Thanks in advance
/*!
* Views Slideshow Dynamic display block preprocess functions
* Author P.P. Blaauw
* Version 1.1 (01-SEP-2009)
* Licenced under GPL license
* http://www.gnu.org/licenses/gpl.html
*/
/**
* Override or insert variables into the views_slideshow_ddblock_cycle_block_content templates.
* Used to convert variables from view_fields to slider_items template variables
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function acquia_slate_preprocess_views_slideshow_ddblock(&$vars) {
$settings = $vars['views_slideshow_ddblock_slider_settings'];
// for showing debug info
views_slideshow_ddblock_show_content_debug_info($vars);
if ($settings['output_type'] == 'view_fields') {
if ($settings['view_name'] == 'news_items' && $settings['view_display_id'] == 'block_1') {
if (!empty($vars['views_slideshow_ddblock_content'])) {
foreach ($vars['views_slideshow_ddblock_content'] as $key1 => $result) {
// add slide image variable
$slider_items[$key1]['slide_image'] = views_slideshow_ddblock_add_image(
$vars,
// determines which imagcache preset to use, leave to 'slider_item_image'
'slider_item_image',
// name of CCK generated image field, change if needed.
$result->node_data_field_pager_item_text_field_image_fid,
// alt attribute of image or NULL
$result->node_title,
// cck content type for default image or NULL, change if needed
NULL, //'ddblock_news_item',
// cck fieldname for default image or NULL, change if needed
NULL, //'field_image',
// to link the image to or NULL, change if needed
NULL // base_path() . 'node/' . $result->nid
);
// add slide_text variable
if (isset($result->node_data_field_pager_item_text_field_slide_text_value)) {
$slider_items[$key1]['slide_text'] = check_markup($result->node_data_field_pager_item_text_field_slide_text_value);
}
// add slide_title variable
if (isset($result->node_title)) {
$slider_items[$key1]['slide_title'] = check_plain($result->node_title);
}
// add slide_read_more variable and slide_node variable
if (isset($result->nid)) {
$slider_items[$key1]['slide_read_more'] = 'nid . '">' . t('Read more') . '';
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;
}
}
}
}
$vars['views_slideshow_ddblock_slider_items'] = $slider_items;
}
}
/**
* Override or insert variables into the views_slideshow_ddblock_cycle_pager_content templates.
* Used to convert variables from view_fields to pager_items template variables
* Only used for custom pager items
*
* @param $vars
* An array of variables to pass to the theme template.
*
*/
function acquia_slate_preprocess_views_slideshow_ddblock_pager_content(&$vars) {
$settings = $vars['views_slideshow_ddblock_pager_settings'];
// for showing debug info
views_slideshow_ddblock_show_pager_debug_info($vars);
if (($settings['output_type'] == 'view_fields') &&
($settings['pager'] == 'number-pager' ||
$settings['pager'] == 'custom-pager' ||
$settings['pgaer'] == 'scrollable_pager' )) {
if ($settings['view_name'] == 'news_items' && $settings['view_display_id'] == 'block_1') {
if (!empty($vars['views_slideshow_ddblock_content'])) {
foreach ($vars['views_slideshow_ddblock_content'] as $key1 => $result) {
// add pager_item_image variable
$pager_items[$key1]['image'] = views_slideshow_ddblock_add_image(
$vars,
// determines which imagcache preset to use, leave to 'pager_item_image'
'pager_item_image',
// name of CCK generated image field, change if needed.
$result->node_data_field_pager_item_text_field_image_fid,
// alt attribute of image or NULL
$result->node_data_field_pager_item_text_field_pager_item_text_value,
// cck content type for default image or NULL, change if needed
NULL, //'ddblock_news_item',
// cck fieldname for default image or NULL, change if needed
NULL, //'field_image',
// to link the image to or NULL, change if needed
NULL // base_path() . 'node/' . $result->nid
);
// add pager_item _text variable
if (isset($result->node_data_field_pager_item_text_field_pager_item_text_value)) {
$pager_items[$key1]['text'] = check_plain($result->node_data_field_pager_item_text_field_pager_item_text_value);
}
}
}
}
$vars['views_slideshow_ddblock_pager_items'] = $pager_items;
}
}
Comment #4
ppblaauw commentedWhen you enable the debug messages in the views_slideshow_ddblock configuration page, you can see the CCK field names generated.
In the preprocess functions is described what to change.
To remind you:
This development version is for testing purposes, not for customisations or production yet.
Better to test with the delivered export package and theme package. (also they need to be tested)
I did not test the module with the 6.x-3.x-dev version but with the views 6.x-2.6 version.
Hope this helps you further, please let me know.
Comment #5
jbfelix commentedHello,
I have followed the procedure from scratch, without cck fields, but the preview message is still displaying.
Don't understand...
Comment #6
jbfelix commentedWhen i create a new view, if i choose the "slideshow" type, i get this error:
"warning: Invalid argument supplied for foreach() in /home/jb27/public_html/moove/includes/form.inc on line 1200."
Maybe is it the source of this issue ?
Comment #7
ppblaauw commentedNo, the warning: Invalid argument supplied for foreach() in /home/jb27/public_html/moove/includes/form.inc on line 1200." is another issue which I fixed but not released yet.
It's a bug in the default setting for a multiple choice checkbox. (only gives a warning when settings are initially set. After the settings from the page are set it is ok.)
When you go to the page to clear the cache:
Administer > site configuration > performance
and you have the slideshow enabled here and you clear the cache you should see the slideshow and not the preview text.
I see you have the debug lines enabled now, so I will post in the next post the names of the fields you need to have in the preprocess functions
Comment #8
ppblaauw commentedAttached the adjusted preprocess functions:
Comment #9
jbfelix commentedThank you,
The new preprocess functions are now in my theme (/themes/acquia_slate/template.php)
I have cleared the cache, but i still view the preview
Comment #10
ppblaauw commentedThank you for now.
I have to solve this caching issue first before further testing can be done.
Also on my new install with latest version of Drupal and required modules, I only see the slideshow on the
administer > site configuration > permissions page when I clear the cache.
All other pages I see the preview.
Comment #11
ppblaauw commentedComment #12
ppblaauw commentedFound out that the slideshow always shows on the
administer > site building > modules page
Maybe one step closer to a solution,
and at least you should be able to see the slideshow at this page.
With the devel module I can also see that on this page candidate template files are recognized which in necessary for the views slideshow: ddblock module to function.
On other pages the candidate template files are not recognized.
Comment #13
jbfelix commentedThe slideshow is not displaying on admin/build/modules on my site.
FYI take a look on the devel info attached image.
Comment #14
ppblaauw commentedWhat I see in your image is the block.tpl.php, You need to go one level deeper in the block to the view.
The result of my devel templater information for a page which does not work is in
Themer_information1.png
The result I get on the admin/build/modules page, which works, is in
Themer_information2.png
Comment #15
ppblaauw commentedWhen you place
At the first line of the preprocess function
The slideshow should show up.
I know this is not the solution, but at least the module can be tested further.
Hope with this the slideshow shows up.
Comment #16
jbfelix commentedstill not working... did you test the slideshow with my theme ? (acquia slate)
Comment #17
ppblaauw commentedTested the views_slideshow_ddblock module with the acquia_slate theme (6.x-1.4).
Also works.
Please download the latest export_file package, with new preprocess functions: drupal_rebuild_theme_registry() function added and fixed scrollable pager bug ('-' instead of '_')
Comment #18
ppblaauw commentedCreated an example using the vsd-upright60 theme with scrollable pager at: http://themes.myalbums.biz/content/vsd-upright60-scrollable-pager
Can you see the slideshow here?
Probably found a solution by defining the preprocess functions called:
See the attached patch
Comment #19
ppblaauw commentedSome other experiences with this bug.
I don't have the issue in Drupal 6.12.
It is introduced in drupal 6.13
Now that I upgraded to 6.14 I don't have the issue anymore.
I saw in the release notes of Drupal 6.14 that some caching patches have been rolled back which where applied in Drupal 6.13.
I don't know if these are related to this issue.
Still have to find out the exact causes of the issue to be sure.
Hopefully others can confirm these experiences.
Comment #20
Anonymous (not verified) commentedOne my website, the slideshow appears only once every two times.
The other time, I get the "This preview does just shows the node titles of the nodes which will be show in the slideshow" message.
If I push f5 (refresh), I get the slider again, if I repush f5, I get the message etc ...
Comment #21
drplsame problem
http://almajdtv.net/site
installed drupal-6.13 and the modules I used:
views_slideshow-6.x-2.0-beta1
views_slideshow_ddblock-6.x-1.x-dev
imageapi-6.x-1.6
imagecache-6.x-2.0-beta10
cck-6.x-2.5
filefield-6.x-3.1
imagefield-6.x-3.1
I upgrade to drupal-6.14 but no change I have still see the error
Comment #22
Anonymous (not verified) commentedIt seems that the "views_slideshow_ddblock_theme" function in views_slideshow_ddblock.module is well executed after emptying the cache, and when we reload the page, it is no re-executed (wich is normal) but the chanches of the "views_slideshow_ddblock_theme" function are not cached. I don't know why yet.
Comment #23
Anonymous (not verified) commentedFor the moment, the only quick (and dirty) solution that I've found is :
- replace the views_slideshow_ddblock_theme function in views_slideshow_ddblock.module by that
- Move all the content from the template_preprocess_views_slideshow_ddblock function in views_slideshow_ddblock.theme.inc to the beginning [**THEME_NAME***]_preprocess_views_slideshow_ddblock in template.php (sites/all/themes/[**THEME_NAME***]/template.php)
- Move all the content from the template_preprocess_views_slideshow_ddblock_pager_content function in views_slideshow_ddblock.theme.inc to the beginning [**THEME_NAME***]_preprocess_views_slideshow_ddblock_pager_content in template.php (sites/all/themes/[**THEME_NAME***]/template.php)
Not really simple for futur upgrades but .. it works
Maybe the fact the it workd with this configuration will help someone to find why it didn't worked before
Then, you can also remove the evil "drupal_rebuild_theme_registry();" call form the beginning of the [***THEME_NAME***]_preprocess_views_slideshow_ddblock function !!
Comment #24
ppblaauw commented@hades666evil
Thank you very much for looking into this.
The code added in the function views_slideshow_ddblock_theme
to add the file and preprocess arguments came from another views issue with caching where the preprocess function are not called.
I tested the module with Drupal 6.12 where I never encountered this issue.
Surely the drupal_rebuild_theme_registry(); has to go. No question about that, but for the meantime it helps a little, so that other functionality of the module can be tested.
I don't understand:
"Move all the content from the template_preprocess_views_slideshow_ddblock function in views_slideshow_ddblock.theme.inc to the beginning"
Can you explain more detailed what changes you made, so I can replicate your changes?
Thanks again
Comment #25
Anonymous (not verified) commentedIt's juste a brutal cut&paste of the code between the two function. The result is the template_preprocess_views_slideshow_ddblock_pager_content function become empty (you can completly remove the function if you want) and all it's code is added to the beginning of the [**THEME_NAME***]_preprocess_views_slideshow_ddblock_pager_content function ([**THEME_NAME***] according to the name of your template)
Comment #26
ppblaauw commented#25
Thanks
Replicated your changes on my testserver and can confirm the slideshow always shows up now, even in the preview of views.
I post a question in the development forum for help on this.
(It works, but it doesn't make sense to me)
Comment #27
ffmariners commentedI just want to give more input so you have more to work off of:
These are the configurations I have tried with:
Drupal 6.13 Views 6.x-2.6
Drupal 6.14 Views 6.x-2.6
Drupal 6.13 views 6.x-3.x-dev
Drupal 6.14 views 6.x-3.x-dev
On each setup the slideshow was in a Pane that displays on just my home page.
When I first go to the site, or navigate to the home page from another part of the site the "preview" shows up. Once I refresh, the slideshow does in fact show up.
Just some more input, but it seems like you've figured out where the issue is!
Here's to hoping for a quick fix! :)
Comment #28
dvbii commentedIs there any progress on this? I have the same problem, except I don't get anything on refresh. I just allways get "This preview does just shows the node titles of the nodes which will be show in the slideshow".
It then shows the node titles that i have in that content type.
Any help would be appreciated. I love the idea of this module.
thanks.
dvbii
Comment #29
ppblaauw commentedThere is no progress yet on this issue. I searched a lot for similar issues, found one I think and posted a reply if the poster still has the same issue:
Views2 preprocess functions problem
and I posted an issue in the development forum (I though this was the place to reach developers)
Preprocess functions not always called in views_slideshow_ddblock module
But no answer on that yet
I find it still difficult how to contact the drupal experts, and I don't want to post the issue in more places on drupal.org If someone has a better suggestion how to get more attention for this issue please let me know.
Still testing, solving issues myself and adding additional functionality.
Will soon release a new dev version.
Any help appreciated with this issue. Without a solution for this, there will not be a Release candidate for this module.
Comment #30
tsi commentedI have the same issue, drupal 6.14 and views 2.6.
subscribing.
Comment #31
ppblaauw commentedFurther experriences
I made the code in the views-slideshow-ddblock.tpl.php different then the code in the copy of this file in the theme.
After the cache is cleared the slideshow shows up, so the preprocess function in the module is called and the candidate template file is used.
When the slideshow is not show (second reload after the cache is cleared) -> "From theme: This preview does just shows the node titles..." is shown, which means the code in the template file in the theme is used (overriding the template file in the module, which is expected).
Code in module for views-slideshow-ddblock.tpl.php
Code in theme for views-slideshow-ddblock.tpl.php
In the code I try to print variables like
which should have been added by the preprocess function in the module. They are not available which suggests that the preprocess function in the module is not called again. Only the first time after clearing the cache.
I think this is a similar experience as given in #22.
Hope this helps further to come to a solution.
Comment #32
ppblaauw commentedFurther experiments:
I moved the preprocess functions from the views_slideshow_ddblock.theme.inc file into the views_slideshow_ddblock.module file and it seems to work now:
Also commented the file array values:
the
is not needed (added this earlier as a suggestion to solve the issue)
Comment #33
igorik commentedThose are great news Philip.
I am happy that you find good solution, not olny some workaround.
I am looking forward to new version (dev or maybe now RC? :)
Thanks for your work and have a nice day.
Igor
Comment #34
fanta commentedpost edited
as now working
Comment #35
ppblaauw commentedCommitted to next dev release 18-OCT-2009
Comment #36
vojnar commentedHi,
I have the same issue in Drupal 6.12 w/ views 6.x-2.6
All I get:
"This preview does just shows the node titles of the nodes which will be shown in the slideshow"
I followed the installation readme file although the installation procedures is difficult, hard to follow.
Cleared catch in dtatabase.
Not working unfortunatel although I really liked the demo.
Best regards,
Gabor
Comment #37
ppblaauw commented#36
I think the bug is solved and you should not get the message anymore when your custom ddblock templates and preprocess functions in your template.php file are ok.
Please post a support request and attach your template.php file, the result of the debug messages when you enable them in the configuration page for the slideshow block and a link to the Internet site if possible, so I can help you better.
Comment #39
armyofda12mnkeys commentedI use Drupal 6.14, and Views 6.x-2.6, and just downloaded the 6.x-1.x-dev of this module,
just got this message thread posting about.
I had a SingleFrame views_slideshow and just cloned my view to see how the DDBlock option would look. and i get this message on Views Preview and the actual View/path. I had the debug mode set, but it doesnt output anything
do i need my own views-slideshow-ddblock-cycle-block-content-[TEMPLATENAME].tpl.php or there are default templates that can test and see how it looks right?
Comment #40
ppblaauw commented#29 armyofda12mnkeys
Have a look at the Views slideshow: Dynamic display block tutorial.
Theme files and other files can be downloaded from http://ddbock.myalbums.biz/download.
Hope this helps you further, please let me know.
PS.
Yours question is more a support request and should have it's own post.
When you have more question/issues please make a separate post
Comment #41
Javier commentedHi,
Same problem here, view preview and block just show : "This preview does just shows the node titles of the nodes which will be shown in the slideshow"
Information:
- Drupal 6.15
- Modules:
- cck-6.x-2.6
- views_slideshow-6.x-2.0-beta2
- views_slideshow_ddblock-6.x-1.x
- views-6.x-2.8
- jquery_update-6.x-1.1
- Template file: (attached)
- Theme: AD The Morning After
- Theme directory
ad_tma/
-custom/
-modules/
----views_slideshow_ddblock/
------views_slideshow_ddblock-cycle-block-content-[theme-name].tpl.php
------views_slideshow_ddblock-cycle-pager-content-[theme-name].tpl.php
------images/
------[theme_name]/
--------views_slideshow_ddblock-cycle-[theme-name].css
--------images/
- No debug error (debug option is activated)
- Cache cleared
Best regards,
Javier
Comment #42
chien_fu commentedI have the same problem in 6.19 (6.x-2.x-dev). Marking this as active again.
Comment #43
ppblaauw commentedMake sure the preprocess functions are removed from the template.php file when upgrading from version 1
Please create a new issue and give the information requested in other replies on this issue.
Comment #44
Alaa Farahid commented