Closed (fixed)
Project:
Zen
Version:
6.x-2.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2011 at 21:55 UTC
Updated:
21 Aug 2013 at 14:05 UTC
I have placed the code bellow into a zen sub-theme and it does not work, when I place it in its own theme it works. What it does is takes any node content that has a sticky to the top of the page, and makes a slide show out of them using jquery. I believe the problem has something to do with running the code from a subtheme.
| Comment | File | Size | Author |
|---|---|---|---|
| sticky_rotate.txt | 1.91 KB | hdfellows |
Comments
Comment #1
trampjuice commentedI have a similar problem.
I use JQuery in ajax callbacks on my multistep form and I get the following error when I used a zen subtheme.
Warning: Missing argument 2 for eviction_form(), called in C:\xampp\htdocs\xxxxx.com\includes\theme.inc on line 894 and defined in eviction_form() (line 21 of C:\xampp\htdocs\xxxxx.com\sites\all\modules\webline_notices\webline_notices.module).
But when I used the main zen theme, all works prefectly well.
line 21 - function eviction_form($form, &$form_state) is my form function prototype.
Comment #2
barraponto@hdfellows: How are you adding the js?
@trampjuice: Custom module? Or contributed one? It would be nice if you showed how the js was added, and the js code itself.
Both of you will benefit from reading http://drupal.org/node/171213.
Comment #3
trampjuice commentedHi In work at the mo so have to keep it short. Its a custom commerical module and I was simply using the Drupal 7 Form API AJAX callback techniques for a multi step form - not JQuery directly in itself in any way.
I would guess this might be reproducable by using the D7 examples module, in a custom zen subtheme as this also contains a D7 multistep form.
My code is that straightforward as in the exmaple - i.e. ajax is only used to replace the content of divs in a div wrapper callbacks in am multistep form.
I have abandoned zen and moved to fusion as a theme so its not an issue for me at the mo.
Comment #4
johnalbinclosing old support issues