Help wrapping my mind around Drupal

I switched from hand-coding to Drupal 7 because I wanted to spend less time maintaining my code and more time making great content. However, I'm finding the transition difficult -- I'm not sure why... but I am having a hard time wrapping my mind round the way Drupal does things.

Here's my first question:

I want to be able to create topical articles that are aggregated on pages together. For example, a recent news items page, or articles related to a software project.

Insert page other site without theme (IFrame)

Hello,

I would like to insert my webform other my webpage with IFrame (ex. webform is xxx.hu -> page yyy.hu).

I don't want to be theme on the webform page.

I have got a code but unfortunately it doesn't work.

I test this code ex: xxx.hu/node/40/iframe I get same page like without "iframe" :(

This template: http://drupal.org/project/bluemasters



/**
* Override or insert variables into the page template.
*/
function bluemasters_preprocess_page(&$vars, $hook) {

  // Prepare header.
  $site_fields = array();
  if (!empty($vars['site_name'])) {
    $site_fields[] = $vars['site_name'];
  }
  if (!empty($vars['site_slogan'])) {
    $site_fields[] = $vars['site_slogan'];
  }
  $vars['site_title'] = implode(' ', $site_fields);
  if (!empty($site_fields)) {
    $site_fields[0] = '<span>' . $site_fields[0] . '</span>';
  }
  $vars['site_html'] = implode(' ', $site_fields);

  // Set a variable for the site name title and logo alt attributes text.
  $slogan_text = $vars['site_slogan'];
  $site_name_text = $vars['site_name'];
  $vars['site_name_and_slogan'] = $site_name_text . ' ' . $slogan_text;
 
  if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'iframe') {
    $vars['template_files'][] = 'page-iframe';
  }
}

my code:

<?php
...
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'iframe') {

Can't see messages snt to me on DRUPAL.ORG

I posted a question to a module developer. He replied to me on drupal.org. In the email notification I received I clicked the link (http://drupal.org/user/412076/contact) to view the reply. Instead of seeing the reply I got a page that said "You are not authorized to access this page."

I was logged in, and still am, when I tried to access this.

Ahh! Nearly there.. help converting web template to drupal 7 theme

I have created a html/css based website and now want to convert it to a drupal 7 theme.

http://i3.photobucket.com/albums/y60/smokinmonkey/screenshot.jpg

I have tried and failed, but I think I am nearly there. I have never used drupal or php before so I am not sure what I am missing here. html / css / asp.net / vb.net / java are more along my lines.

Here is the layout of my theme folder:

http://i3.photobucket.com/albums/y60/smokinmonkey/layout.jpg

I don't think template.php is needed for drupal 7 but I was afraid to delete it just incase.

I took the .info file from the Zen starterkit.

Here is my page.tpl.php code:

print $language->language " xml:lang=" print $language->language " dir=" print $language->dir ">


print $head_title;
print $head;
print $styles;

print $base_path . $directory .'/ie/ie_7.css'; " rel="stylesheet" type="text/css" />
print $base_path . $directory .'ie/ie_6.css'; " rel="stylesheet" type="text/css" />

print $scripts

How to export user blogs and comments

Is there a way to do this? I made the website for an internal class project and now we need to get the blogs back out!

Thanks.

Help with module_invoke for custom user profile

Hello everyone,

I was wondering if it's possible to do a module_invoke on the user profile page (user-profile.tpl.php) in Drupal 7. I'm using the following code $block = module_invoke('views', 'block_view', 'view_machine_name'); but I'm still unable to load a block in the user profile. What do I seem to be missing?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x