HI EVERYBODY

Create two different types of content, bringing the following fields:

content 1
slide_image1
slide_text1
slide_pager1

content 2
slide_image2
slide_text2
slide_pager2

I am using the module nodequeue to send information to the slideshow content in the frontpage, the time to use the preprocess functions, achieve set 1 content of each type of content, but at the time in which to generate more 3 nodes, the slide is not for the miniature. I am using the theme modest-grey40p.

Any idea, thank you very much any answer.

Comments

ppblaauw’s picture

Assigned: juliobravo » Unassigned
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Tip for posting issues:
--
Leave assigned to: unassigned so all who have an answer can answer on your support request. When you assign an issue to yourself, it means you will solve this yourself, others don't have to do anything at this moment.

For support request set the priority to normal or minor. Setting the priority of a support request will not speed up getting answers, detailed information in your support request will.

You can read more in the Issue queue handbook.

--
Now to answering your support request.

Do your content types have different field or do you reuse the field of the first content type in the recond content type?

Can you attach the template.php file?
Can you attach the result of the debug lines when uncommented in the preprocess functions?
Do you have a link to the slideshow on your Drupal site?

"I am using the module nodequeue to send information to the slideshow content in the frontpage, the time to use the preprocess functions, achieve set 1 content of each type of content, but at the time in which to generate more 3 nodes, the slide is not for the miniature. I am using the theme modest-grey40p."

I don't understand this whole sentence. Can you explain what you want to accomplish, what you did, what you expect and what is different then you expected.

juliobravo’s picture

the result of the debug lines when uncommented in the preprocess functions:

*

'nodequeue_2'

*

stdClass::__set_state(array(
'nid' => '184',
'node_title' => 'slide 1 destacados',
'node_data_field_slideimage1_field_slideimage1_fid' => '26',
'node_data_field_slideimage1_field_slideimage1_list' => '1',
'node_data_field_slideimage1_field_slideimage1_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
'node_type' => 'destacados',
'node_vid' => '206',
'node_data_field_slideimage2_field_slideimage2_fid' => NULL,
'node_data_field_slideimage2_field_slideimage2_list' => NULL,
'node_data_field_slideimage2_field_slideimage2_data' => NULL,
'node_data_field_slideimage1_field_slidetext1_value' => 'esta es la introduccion slide 1',
'node_data_field_slideimage2_field_slidetext2_value' => NULL,
'node_data_field_slideimage2_field_slidepager2_value' => NULL,
'node_data_field_slideimage1_field_slidepager1_value' => 'slide1pager',
'nodequeue_nodes_node_position' => '1',
))

WHY IS NULL ALLL THE CONTENT TYPE 2??? After generating the node 3, the slide does not belong to his pager item.

The section the template.php:

function magazeen_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('

' . var_export($vars['pager_settings'], true) . '

');
//drupal_set_message('

' . var_export($vars['content'][0], true) . '

');
if ($vars['pager_settings']['view_name'] == 'nodequeue_2') {
foreach ($vars['content'] as $key1 => $result) {
// add pager_item_image variable 01
if (isset($result->node_data_field_slideimage1_field_slideimage1_fid)) {
$fid = $result->node_data_field_slideimage1_field_slideimage1_fid;
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
// use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
if (module_exists('imagecache') &&
is_array(imagecache_presets()) &&
$vars['imgcache_pager_item'] <> ''){
$pager_items[$key1]['image'] =
theme('imagecache',
$vars['pager_settings']['imgcache_pager_item'],
$filepath,
$result->node_data_field_slideimage1_field_slidepager1_value);
}
else {
$pager_items[$key1]['image'] =
'Only local images are allowed. '" alt="' . $result->node_data_field_slideimage1_field_slidepager1_value .
'"/>';
}
}
// add pager_item _text variable 01
if (isset($result->node_data_field_slideimage1_field_slidepager1_value)) {
$pager_items[$key1]['text'] = $result->node_data_field_slideimage1_field_slidepager1_value;
}
}
}
$vars['pager_items'] = $pager_items;
}

if ($vars['pager_settings']['view_name'] == 'nodequeue_2') {
foreach ($vars['content'] as $key1 => $result) {
// add pager_item_image variable 02
if (isset($result->node_data_field_slideimage2_field_slideimage2_fid)) {
$fid = $result->node_data_field_slideimage2_field_slideimage2_fid;
$filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid));
// use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes)
if (module_exists('imagecache') &&
is_array(imagecache_presets()) &&
$vars['imgcache_pager_item'] <> ''){
$pager_items[$key1]['image'] =
theme('imagecache',
$vars['pager_settings']['imgcache_pager_item'],
$filepath,
$result->node_data_field_slideimage2_field_slidepager2_value);
}
else {
$pager_items[$key1]['image'] =
'Only local images are allowed. '" alt="' . $result->node_data_field_slideimage2_field_slidepager2_value .
'"/>';
}
}
// add pager_item _text variable 02
if (isset($result->node_data_field_slideimage2_field_slidepager2_value)) {
$pager_items[$key1]['text'] = $result->node_data_field_slideimage2_field_slidepager2_value;
}
}
}
$vars['pager_items'] = $pager_items;
}

Please, Help me.