I made everything according to advanced tutorial. Works perfectly with Garland theme and doesnt with Omega (960 Grid System)
It just show node fields. Can't figure out where to put preprocess function of DDB. I tried to put them in template.php and preprocess-xxx.inc (i tried views|views-view) - nothing work.

Comments

ppblaauw’s picture

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

You need to copy the preprocess function to the template.php file of the omega theme.
Rename garland to omega for the names of the preprocess functions.
You need to copy the custom folder with slideshow theme files to the omega theme.
After you did this, you need to Clear the cache at administer > site configuration > performance.

(ddblock works till now with all themes I encounter)

Hope this helps you further, please let me know.

tihon’s picture

1. Custom folder is inside Omega theme and its ok. System finds it, no warnings or errors (If i delete that folder i immediately get warnings)
2. All preprocess function in template.php renamed to omega_preprocess_ddblock_cycle_block_content & omega_preprocess_ddblock_cycle_pager_content.
3. Cache cleared.
Result - It just show node fields.

All with function renaming, coping to theme folder, cache clearing works brilliantly with garland theme.
Tried all process with NineSixty (960 Grid System) theme and got the same result as with Omega theme - DDB don't work.

I think the problem is with theme preprocess.
This is from Omega Theme preprocess readme:

Using additional preprocess functionality in your sub-theme
===========================================================
The power of the Omega theme lies in preprocess functionality. However, you
may have the need to add additional preprocess functions in your own sub
theme. There are two ways to accomplish this type of added functionality.

1.) Adding template_preprocess_hook() functionality to your template.php

Just like in any theme, you may use theme_preprocess hooks in order to
add additional functionality during preprocess. These functions can be
created normally the way you would in any theme using the following pattern

function themename_preprocess_page($vars)
function themename_preprocess_node($vars)
function themename_preprocess_block($vars)
etc...

You will see many example functions in the template.php provided in this
starterkit which are currently commented out. You may uncomment those
or create your own functions.

2.) Adding appropriately named files in the preprocess directory

Using the same model as the studio theme, the Omega theme is set to help
keep an organization of massive amounts of preprocess functionality. It is
very easy for a template.php file with thousands of lines of preprocess code
to quickly get out of hand.

The Omega theme gives you an easy way to organize your preprocess functions
via a subdirectory called preprocess in your themes root directory. The
appropriate folder is now included in the starterkit, and does not need to be
created manually.

To organize your preprocess functionality you would follow the following pattern:

themename_preprocess_page($vars) becomes yourtheme/preprocess/preprocess-page.inc
themename_preprocess_node($vars) becomes yourtheme/preprocess/preprocess-node.inc

You may use this for ANY preprocess function that is available to Drupal via core,
and also preprocess hooks that are created by contributed modules. You may easily
create a file for ANY preprocess function by replacing all the underscores in a
preprocess function name with dashes, and removing the themename portion.

Proper coding inside of preprocess-hook.inc
===========================================

One item of confusion for some is how this actually is implemented, and how to
properly code inside of the preprocess files inside of this custom directory.

During the core theme_preprocess($vars, $hook) function, which is called before any
hook specific preprocess code/files, this function determines that there are files
available via the preprocess folder to include, and calls those files at the
appropriate time.

When you are coding iside of a file like preprocess-page.inc, you will NOT declare
functions, and not need to include a function themename_preprocess_page() wrapper
because this file is INCLUDED during hook_preprocess_page.

If you have the need to create custom functions, these should be done in template.php
or in a custom include file as normal. You may then call various custom functions in
your preprocess code.

ppblaauw’s picture

Assigned: tihon » Unassigned

Just installed the omega theme.
added the preprocess functions to the template.php file of the core omega theme
(you should make a subtheme using the starterkit and add the preprocess functions in the template.php file of the subtheme, but I did not do that now)
renamed the preprocess functions to omega_preprocess....
Copied the custom folder with slideshow themes to the omega folder (should also be placed in the subtheme)

The slideshow is working in the omega theme

Maybe you put the views block display in a region of the omega theme and not the ddblock instance of this views block display.

tihon’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Finally it works.
1. I deleted all ddblock instances created in other themes.
2. Switched to Omega theme.
3. Created new instances
4. Flush all cache

Thank you ppblaauw for ideas and support!