Andromeda Slideshow

Please use the issue queue for support request : http://drupal.org/project/issues/andromeda_slideshow?status=All&categori.... Do not ask for help in the comments here.

The Andromeda theme (7.x-2.x) integrates with the Andromeda Slideshow module. Here's how to build a slideshow with the module.

Download and install the requirements

  1. Download the Andromeda theme (7.x-2.x) here.
  2. Download the Andromeda Slideshow module here, extract and put it under sites/all/modules.
  3. Download the Chaos Tool Suite and the Libraries API module, extract and place them under sites/all/modules.
  4. Download the Nivo Slider plugin here, extract it and place it under sites/all/libraries. If the libraries folder does not exist, create it.
  5. You should now have the sites/all/libraries/nivo-slider folder.

Enable required modules

Start Here: Recommended Modules

We recommend you download and install the following modules in order to make the most of your Omega based theme. More on installing modules.

Make sure you are running the latest stable releases of all modules to ensure proper functionality. If you are using dev releases of any of these modules use the dev release for all in order to maintain compatibility.

  • Omega Tools

    (requires Ctools) - Omega Tools is a great set of functionality that will help you to easily create and manage your Omega subtheme. This tool is useful in development but should probably be disabled in production environments.

  • Delta

    Delta is a powerful tool that allows you to create variations of a theme's settings without having to create a new subtheme. When used with Context, Delta allows you to edit the omega grid, zone, and region settings and create all new layouts based on the various conditions available in Context.

Custom theme for custom form 6.x

This page is about how to create custom layout for your custom form.

Assumptions:

  • Experience with PHP
  • Experience with module writing
  • Experience with theme writing

This document has following structure:

  • Module
    • mymodule.module: function mymodule_menu()
    • mymodule.module: function myformgene()
  • Theme
    • template.php: mytheme_theme()
    • template.php: mytheme_preprocess_myformname()
    • mytemplate.tpl.php

Some strings, functions, etc are prefixed by 'my' to clearly show what you have to define yourself.

During development remember to clear Drupal cache so that it would reread your hooks and theme.

Module

Assume you have created module mymodule. Here you create structure of your form and method of displaying it.

mymodule.module: mymodule_menu()

By default you create menu entry for the form, which further makes structure builder function callback.

function mymodule_menu() {
  return array(
    'mypath' => array(
      'title' => 'My title',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('myformgene'),
      'access callback' => true,
      'type' => MENU_CALLBACK,
    ),
  );
}

Facebook-style Statuses: Theming

The information on this page should help themers style the Facebook-style Statuses module.

Styling an individual status update

Most of the time you will see status updates in Views. To style status updates in Views you can usually just edit the view to provide the fields you want (although the defaults will work for most people) and then use CSS to add whatever styles you need. If you need to do something more advanced, you can override the Views theme templates.

To theme individual status updates not in Views (for example on example.com/statuses/SID) you can override facebook-status-item.tpl.php. Copy this file to your theme's directory, edit it as desired, and then refresh your theme registry cache. You can learn more about theming for Drupal at Overriding theme-able output in the Drupal handbook. facebook-status-item.tpl.php has documentation in it that explains what variables will be available to you for display. (Of course, if you only want to make simple changes, you can usually just do it in your theme's CSS file.)

Theming a form with conditional fields

Conditional Fields 2.x for Drupal 6

Conditional Fields 2.x supports theming of forms with conditional fields. The method used is the same outlined here: Theme a CCK input form for CCK2 & CCK3:

  print drupal_render($form['field_controlling']);
  print drupal_render($form['field_controlled']);

However, if you render the individual elements of the fields separately (like, say, each checkbox of field_controlled), you will have to wrap the elements in a wrapper div. You can use theme_conditional_fields_wrapper for this. An example with a checkboxes controlled field:

More theming resources and guides

In this section, you will find links to resources and guides on theming.

Pages

Subscribe with RSS Subscribe to RSS - theming