This forum is for assistance with theme development.

teaser image extracted from node body

Most of my story-type nodes have an image embedded within the node body -- I'm using tinyMCE for formatting, however I don't think this matters as far as this little hack goes. Essentially, I'm using code within my node template to check the node body for an image; if it finds one, it is displayed within the teaser. It's just a way to add a graphical element to the node teasers. The only time this doesn't work is if there is more than one image within the node; I don't know why this is.

Creating 'safari style' search bar.

Or rather getting a premade solution to work with drupal...

Sorry guys, I'm rather new to the whole drupal thing and I'm having trouble getting a piece of javascript working. I'll try and be as precise with my problem as possible but im again rather new to anything 'javascripty'.

The Source Code

Heres the link explaining what I would like to do:
http://www.brandspankingnew.net/archive/2005/08/adding_an_os_x.html

If you scroll down to the comments there is an updated version of the script which validates XHTML 1.0 Strict which is the version im using so the link to the source files im using is:
http://zooley.net/downloads/searchbox.zip

What I've been able to do so far

Now I think I've been able to come half way to getting the script working as using the regular <script> link wont load the Javascript in Drupal so one has to use this link: <script src="<?php print base_path().path_to_theme().'/'; ?>includes/applesearch.js" type="text/javascript"></script> (I can tell the script is now working through drupal as it now displays the words search inside the form which is a plus

There are four main files

  • includes/dummy.css
  • includes/default.css
  • includes/applesearch.css
  • includes/applesearch.js

Working with external scripts

Hi,

This is what I'm trying to do.

1) Create and load and iframe. (WORKING)
2) The iframe page calls a custom module method. (NOT WORKING)
3) Encode the data with json and pass it to a flash file. (NOT THERE YET)

I am getting totally stuck on #2.

Question 1) Can I have the iframe page load within the drupal world right from the iframe creation so I can call drupal methods normally?
Question 2) If not then how do I bootstrap my self in?

Here is my code in the iframe file:

Multiple themes on a website

I am trying to setup a website that has a main theme throughout but I would like some pages to have a different color scheme and some pages to have a complete different theme. Is this possible and if yes how? Can you assign individual css links to individual pages?

Thanks

drupal themes websites

If there is a website like http://themes.wordpress.net/, it will expend the user base quickly.

To most of entry level developers, the easiest way is adapting a free theme.

fuzi

Menu problem

Hey there!

I've got a customized theme in place and the primary links menu is displayed horizontally and works great. But when i add child items to the menu i can't see these items when my mouse hovers over the parent. Nothing will drop-down or pop-up.

How do i go about solving this problem? Is it even a problem or have i missed something in the configuration? I don't know where to start.

Pages

Subscribe with RSS Subscribe to RSS - Theme development