Hi!
I am using ddblock ‘plain-list30l’ theme.I want to display title and teaser of each News item in place of pager title. How can I select or display the required fields.
And with other themes, when I select pager position left, right or both it is not reflecting in ddblock.
I want to display two pagers(<<..234..>> pager and title&teaser pager) in same block..
Please help me..

Comments

ppblaauw’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Instead of using the pager_title use the title of the node in the preprocess function and add a field for the teaser text to the preprocess function and the tpl.php file for the teaser text in the pager.

Slideshow themes can have two general layouts:
Portrait (p) - with pager on top or bottom
Landscape (l) - with pager on left or right side

ddblock rc6 does not support two different pagers
views_slideshow_ddblock for drupal 6 and 7 and ddblock for drupal 7 do.

Hope this helps you further, please let me know

prasug’s picture

I didn't find pager_title in my preprocess functions.The following is the actual code

// 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);
}

I have added the teaser field below the above code like following..

if (isset($result->node_revisions_teaser)) {
$pager_items[$key1]['text'] = check_plain($result->node_revisions_teaser);
}

but it is overriding the title.If i give another name instead of 'text',the teaser is not appearing in block. If i keep both, showing one field only.Is the process of adding field wrong?

prasug’s picture

Yes I got the process and got the result..thank you for help..