I think if you want anyone to be able to diagnose what is actually happening please provide a pastebin of your template.php and the resulting HTML.
Carl Wiedemann Website design & development consulting | c4rl.ws carl.wiedemann@gmail.com | skype: c4rlww
On Wed, May 30, 2012 at 8:46 AM, Jeff Greenberg < listmail.ayendesigns@gmail.com> wrote:
So here is what I discovered. It is something that Drupal is doing in rendering. Here is an uncomplicated html example that works fine in a .html file
<div style="position:relative"> <div style="position: absolute;top:100;"> This is a test <input type="button" value="test" /> </div> </div>
In Drupal, my outer div is the region, which I mark as relative positioning in the css. The inner div is a block, which I mark as absolute positioning in the css. The block appears correctly. The button, whether I create it via $mybutton=theme(button), or create it via $mybutton="<input type=button>, I have tried printing the variable from the template and inside the block, and the markup always ends up like this:
<div> <div> block stuff </div> </div> <input>
On Tue, May 29, 2012 at 8:27 AM, Carl Wiedemann carl.wiedemann@gmail.comwrote:
Global variables are not necessary and should be avoided.
Does it *visually* appear outside of the enclosing divs, or are you talking strictly about the markup? The former could indicate a mere CSS error.
Consider providing a pastebin of both the preprocess and markup to help diagnose.
Carl Wiedemann Website design & development consulting | c4rl.ws carl.wiedemann@gmail.com | skype: c4rlww
On Mon, May 28, 2012 at 9:50 PM, Jeff Greenberg < listmail.ayendesigns@gmail.com> wrote:
In D7, in template.php, I'm hooking preprocess_page and setting a $vars[] variable = theme_button.
In a block, I have this:
<?php global $signup_button; ?>
<div id="signup"><?php print $signup_button; ?></div>
The button appears in the page source outside of those enclosing divs. What am I doing wrong?
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes