I place the block in the footer.
It shows the title text, slide text, and read more link. But there is no image and pager item text.
After click read more link, the title, slide text, page item text and image shows in the content.
What's wrong?
the debug as below after uncomment drupal_set_message
* array (
'delta' => '4',
'output_type' => 'view_fields',
'pager' => 'custom-pager',
'pager_container' => NULL,
'pager_event' => NULL,
'pager_height' => 63,
'pager_width' => 195,
'pager_position' => 'top',
'template' => 'upright30',
'custom_template' => NULL,
'view_name' => 'news_items',
)
* stdClass::__set_state(array(
'nid' => '9',
'node_title' => 'Great',
'node_data_field_pager_item_text_field_pager_item_text_value' => 'It would be wonderful block',
'node_data_field_pager_item_text_nid' => '9',
'node_type' => 'ddblock_news_item',
'node_data_field_pager_item_text_field_slide_text_value' => 'unfortunately it is not working yet',
'node_data_field_pager_item_text_field_image_fid' => '10',
'node_data_field_pager_item_text_field_image_list' => '1',
'node_data_field_pager_item_text_field_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
'node_revisions_body' => '',
'node_revisions_format' => '1',
'_random' => '0.0597436102663573',
'node_data_field_slide_text_field_slide_text_value' => 'unfortunately it is not working yet',
))
* 'news_items'
* stdClass::__set_state(array(
'nid' => '9',
'node_title' => 'Great',
'node_data_field_pager_item_text_field_pager_item_text_value' => 'It would be wonderful block',
'node_data_field_pager_item_text_nid' => '9',
'node_type' => 'ddblock_news_item',
'node_data_field_pager_item_text_field_slide_text_value' => 'unfortunately it is not working yet',
'node_data_field_pager_item_text_field_image_fid' => '10',
'node_data_field_pager_item_text_field_image_list' => '1',
'node_data_field_pager_item_text_field_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
'node_revisions_body' => '',
'node_revisions_format' => '1',
'_random' => '0.0597436102663573',
'node_data_field_slide_text_field_slide_text_value' => 'unfortunately it is not working yet',
))
Thank you for the support.
Mustika M
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | RC6.jpg | 76.88 KB | mustikam |
| #12 | drupal_ddblock_img.png | 612.77 KB | srkamineni |
| #10 | ddblock_slideshow_upright20.jpg | 62.92 KB | mustikam |
| #10 | ddblock_slideshow_upright50.jpg | 35.83 KB | mustikam |
Comments
Comment #1
ppblaauw commentedCan you check that the content-container setting in the configuration page is div.slide and that the pager-container setting in the configuration page is .custom-pager-item (don't forget the dot in front of custom-pager-item)
Can you send a link to your website?
Hope this helps you further. Please let me know.
Comment #2
mustikam commentedI did it, but nothing happen. The image still not show.
I am sorry, My site is not ready to on line, and I use xampp as localhost.
Thank you
Mustika M
Comment #3
ppblaauw commentedI already have the results of the debug messages in your former post.
Can you send me your template.php file so I can check it with the results and help you better?
Comment #4
mustikam commentedHi,
template.php file as below :
<?php
// $Id: template.php,v 1.16 2007/10/11 09:51:29 goba Exp $
/**
* Sets the body-tag class attribute.
*
* Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed.
*/
function phptemplate_body_class($left, $right) {
if ($left != '' && $right != '') {
$class = 'sidebars';
}
else {
if ($left != '') {
$class = 'sidebar-left';
}
if ($right != '') {
$class = 'sidebar-right';
}
}
if (isset($class)) {
print ' class="'. $class .'"';
}
}
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '
';
}
}
/**
* Allow themable wrapping of all comments.
*/
function phptemplate_comment_wrapper($content, $node) {
if (!$content || $node->type == 'forum') {
return '
';
}
else {
return '
'. t('Comments') .'
'. $content .'
';
}
}
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}
/**
* Returns the rendered local tasks. The default implementation renders
* them as tabs. Overridden to split the secondary tasks.
*
* @ingroup themeable
*/
function phptemplate_menu_local_tasks() {
return menu_primary_local_tasks();
}
function phptemplate_comment_submitted($comment) {
return t('!datetime — !username',
array(
'!username' => theme('username', $comment),
'!datetime' => format_date($comment->timestamp)
));
}
function phptemplate_node_submitted($node) {
return t('!datetime — !username',
array(
'!username' => theme('username', $node),
'!datetime' => format_date($node->created),
));
}
/**
* Generates IE CSS links for LTR and RTL languages.
*/
function phptemplate_get_ie_styles() {
global $language;
$iecss = '
@import "'. base_path() . path_to_theme() .'/fix-ie-rtl.css";';
if (defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL) {
$iecss .= '
';
}
return $iecss;
}
/**
* Override or insert variables into the 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 garland_preprocess_ddblock_cycle_block_content(&$vars) {
if ($vars['output_type'] == 'view_fields') {
$content = array();
// Add slider_items for the template
// If you use the devel module uncomment the following line to see the theme variables
// dsm($vars['settings']['view_name']);
// dsm($vars['content'][0]);
// If you don't use the devel module uncomment the following line to see the theme variables
drupal_set_message('
');
drupal_set_message('
');
if ($vars['settings']['view_name'] == 'news_items') {
foreach ($vars['content'] as $key1 => $result) {
// add slide_image variable
if (isset($result->node_data_field_image_field_image_fid)) {
// get image id
$fid = $result->node_data_field_image_field_image_fid;
// get path to image
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
$slider_items[$key1]['slide_image'] = $filepath;
}
// add slide_text variable
if (isset($result->node_data_field_slide_text_field_slide_text_value)) {
$slider_items[$key1]['slide_text'] = $result->node_data_field_slide_text_field_slide_text_value;
}
// add slide_title variable
if (isset($result->node_title)) {
$slider_items[$key1]['slide_title'] = $result->node_title;
}
// add slide_read_more variable and slide_node variable
if (isset($result->nid)) {
$slider_items[$key1]['slide_read_more'] = l('Read more...', 'node/' . $result->nid);
$slider_items[$key1]['slide_node'] = 'node/' . $result->nid;
}
}
$vars['slider_items'] = $slider_items;
}
}
}
/**
* Override or insert variables into the 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 garland_preprocess_ddblock_cycle_pager_content(&$vars) {
if (($vars['output_type'] == 'view_fields') && ($vars['pager_settings']['pager'] == 'custom-pager')){
$content = array();
// Add pager_items for the template
// If you use the devel module uncomment the following lines to see the theme variables
// dsm($vars['pager_settings']['view_name']);
// dsm($vars['content'][0]);
// If you don't use the devel module uncomment the following lines to see the theme variables
drupal_set_message('
');
drupal_set_message('
');
if ($vars['pager_settings']['view_name'] == 'news_item') {
foreach ($vars['content'] as $key1 => $result) {
if (isset($result->node_data_field_image_field_image_fid)) {
$fid = $result->node_data_field_image_field_image_fid;
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
$pager_items[$key1]['image'] = $filepath;
}
if (isset($result->node_data_field_pager_item_text_field_pager_item_text_value)) {
$pager_items[$key1]['text'] = $result->node_data_field_pager_item_text_field_pager_item_text_value;
}
}
}
$vars['pager_items'] = $pager_items;
}
}
Best regards
Mustika M
Comment #5
ppblaauw commentedFrom what I see you have to change your preproces functions:
Change:
to
in both preprocess functions 2 times
If issues like this occur, you can check your fieldnames with the debug lines and make them the same as in the preprocess functions in the template.php file
Hope this helps you further
Comment #6
mustikam commentedYes , It SHOWS IMAGES
But, the title text, slide text, and read more link position always in the bottom of images.
Even theme option of upright30,40 and 50 have no difference.
Best Regards
Mustika M
Comment #7
ppblaauw commentedYou can set the position of the slide_text to: top, right, bottom or left in the configuration page of your advanced dynamic display block slideshow.
You can set the Slide text settings with the select box: slide text position.
Just play with all the settings of the dynamic display block slideshows to learn them.
You can always go back to your old settings.
Hope this helps your further. Please let me know.
Comment #8
mustikam commentedConfiguration setting has done at view news_items, manage fields, display fields exactly same as instruction.
But still no progress. It seems the Slide text settings has no work.
The title text and Read more.... text link in the below and outside image.
No read more button and transparent_bg on image as your sample.
Regards
Mustika M
Comment #9
ppblaauw commentedYou can find the configuration settings I mentioned in #7 at: Administer > Site configuration > Dynamic display block. Click here on the configure link of the block you use for your slide show.
I think you have another issue than I thought when I answered you in #7
Can you send A screenshot of your slide show?
Comment #10
mustikam commentedHi Philips,
Your guidance has been followed but it has no changed yet.
I send two files to show the difference of upright20 and upright50 templates.
Dynamic Display Blok at the right region works well. Thanks for the nice block.
Regards
Mustika M
Comment #11
ppblaauw commentedFrom what I can see in the images the CSS file of the theme is not found.
Can you clear the cache at administer > site configuration > performance
The CSS file is called in the content template file ddblock-cycle-block-content-[theme-name].tpl.php.
You can also have a look here why your CSS file is not called.
Hope this helps you further
Comment #12
srkamineni commentedFor me Images and text show up as static text/images - one below the other. I am looking for some sliding effects. I have followed exactly what was said in the instructions.
Thanks
Raj
Comment #13
ppblaauw commented@srkamineni
Please upgrade to RC5 of the module.
The theme and template files on http://ddblock.myalbums.biz
work for version RC5 of the module.
I think you still need to make a ddblock instance of your views block
and place this block on your page and not the views block itself.
If you look in the blocks configuration page and hover the configuration link the block instance has a link like:
[Your site name]admin/build/block/configure/ddblock/1
You have to place this block on your page
Follow the advanced dynamic display block tutorial on
http://ddblock.myalbums.biz
Hope this helps you further. Please let me know.
If not please make another issue for version RC5 of the module.
Comment #14
srkamineni commentedI am using RC5 and I have created a ddblock instance with my view type. My node has more details but I have created three fields as per the tutorial. I have created a new view with these fields. I used the blocks configuration page to put this block on the 'content' block.
I am not using any custom template.. just the default upright50
I think it worked before with just the image type... but when I use it for my custom content type. It doesn't work.
Thanks
Raj
Comment #15
ppblaauw commented@srkamineni
This issue was for RC4. Please leave it on the original version.
Need more information to help you further.
Can you send a link to you site or the page source, the result of the drupal_set_message lines in the preprocess functions (uncomment them) and the content of your template.php file?
If you can find out what is wrong yourself, please let me know.
If not please make another issue for version RC5 of the module.
Comment #16
srkamineni commentedI am newbie to drupal and Php , even though I have done quite a bit of web applications in java/javascript.
Any way here is the site
http://shobha.kamineni.us:9080/kalamandapam/
Sorry for changing it to rc5..
Thanks
Raj
Comment #17
ppblaauw commented@srkamineni
In the configuration page of the ddblock slideshow you need to select: cycleblock as display setting and further use the advanced settings.
Please read the advanced slideshow tutorial for more information.
Hope this helps you further. Please let me know.
Comment #18
mustikam commentedUpgrade to RC6 and it works for advance slideshow.
But Regarding basic slideshow with "Quick configuration in 10 steps", I prefer use RC4 because it more stable and fast configure in 10 minutes.
Thanks Phillip, I have prepared to go on line.
Regards.
mustika m
Comment #19
daemonium commentedMy images aren't displayed in the ddblock either. I tried to change node_data_field_image_field_image_fid to node_data_field_pager_item_text_field_image_fid just like ppblaauw said, but that doesn't work.
What can I do ?
There is nothing about the images in the HTML source code neither.
I'm using Drupal 6.10 with ddblock 6.x-1.0-rc6.
Comment #20
daemonium commentedNever mind, same error as above. I edited my template.php *correctly*.
For those who don't know how to activate the debug... it's in the template.php file once you've added the dd block extra code.
Comment #21
ppblaauw commentedSet status back to fixed and version to RC4
If there are new issues with RC6, please create a new issue instead of changing the version.
@dae, great, you solved it yourself.
@mutiskam, Also RC6 has the same "Quick configuration in 10 steps"
Comment #22
supaben34 commentedThanks to this thread, I got my ddblock working. Great module. Does exactly what I need. Thanks.