Skip navigation

Working with Dreamweaver

Working with Dreamweaver: Drupal 6: Creating and Editing Custom Themes
Working with Dreamweaver: Drupal 6: Creating and Editing Custom Themes

Join for an in-depth discussion in this video Working with Dreamweaver, part of Drupal 6: Creating and Editing Custom Themes.

Resume Transcript Auto-Scroll
Skill Level Intermediate
4h 11m
Show More Show Less

Q: I'm editing the code in the file page.tpl.php as shown in the movie "Building a sub-theme: Adding custom theme regions":

<?php if ($content_top) ?>
<div id="content-top" class="clear-block">
<?php print $content_top ?>
<?php endif; ?>

But the browser shows the following error message: 
Parse error: syntax error, unexpected T_ENDIF in /home/u/u5522419/www/drupal/sites/all/themes/subgarland/page.tpl.php on line 80.

A: The code is incorrect. (The syntax error, by the way, displayed indicates which line of code contains the error.) The line containing the IF statement is missing the colon character ( : ). It should read:
<?php if ($content_top): ?>

Q: I have a button in Flash, but Internet Explorer is blocking it from opening up. At the top of the window, a message appears saying "Pop-up blocked. To see this pop-up or additional options click here..."
What can I do to this button so that it opens a new browser window and keep IE from thinking it's an unauthorized pop-up?

A: To get around the pop-up blocker, try using the "_self" parameter in Flash. So instead of:
navigateToURL(myURL, "_self");

Skills covered in this course
CMS Developer Web Web Development Drupal

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now