One small CSS change to my Drupal Home Page

start learning drupal - docresource.org

I want to move the whole page down just a little bit. My logo is flush against the top of the page. I just want a little head room. So, I want to do this via CSS.

Using Firebug and Firefox, i right click on the top of the page and choose inspect element. this doesn’t get me right where i need to be but it is close.

the two ss will show you everything that you need to see in red outlines. by using firebug, i can trace down the element I want by simply digging a bit into the

lower left toolbar of firebug. Then, on the right, i see the margin area that I need to change. I can make the change in FB in a completely safe way to make sure that the change is the one that I want. the right hand side of FB also shows me the CSS file that it is coming from and even the line number that I need to alter.

start learning drupal - docresource.org

I can then FTP the CSS file over SSH, open it with Aptana (or textpad, if you like) and change it. SSH will sense the changed file and ask me if I want to overwrite it. I do and then the change is a part of prod. Very easy, very safe and very nice!

 

 

 

 

 

Multilingual Modules Installed

I have all these modules installed in Sand and they seem to be OK. I went down this path before and had a lot of errors so this time I am being really careful. I have a better overall understanding of Drupal now so I think it’ll be OK. I’m also quite sure that probably most of the errors were ID10T errors.

Drupal Multilingual Modules DOCResource.org

 

 

 

 

 

Many of the modules are really submodules. You can almost always tell which are submods by the version listed. Here are the modules:odules that I installed. this ss is quick and dirty. i need to get to work. only the highlighted ones are installed

These are the modules and their subs that I enabled:

Translation helpers 7.x-1.0 Provides methods for other modules to use with translated content.

Requires: Content translation (enabled), Locale (enabled)
Language Switcher Dropdown 7.x-1.5 Provides a dropdown select to switch between available languages.

Requires: Locale (enabled)
Localization update 7.x-1.0-beta3 Provides automatic downloads and updates for translations.

Requires: Locale (enabled)
Block languages 7.x-1.8 Enables language selector for blocks and optional block translation.

Requires: Block (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled)
Field translation 7.x-1.8 Translate field properties

Requires: Field (enabled), Field SQL storage (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled)
Contact translation 7.x-1.8 Makes contact categories and replies available for translation.

Requires: Contact (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled)
Internationalization 7.x-1.8 Extends Drupal support for multilingual features.

Requires: Locale (enabled), Variable (enabled)
Required by: String translation (enabled), Block languages (enabled), Contact translation (enabled), Field translation (enabled), Translation sets (enabled), Taxonomy translation (enabled), Multilingual content (enabled), Multilingual forum (enabled), Menu translation (enabled), Path translation (enabled), Translation redirect (enabled), Multilingual select (enabled), Synchronize translations (enabled), Variable translation (enabled), User mail translation (enabled), Views translation (enabled), User Relationships Test module (disabled), XML sitemap internationalization (disabled)
Language icons 7.x-1.0 Adds icons to language links.

Requires: Locale (enabled)
Menu translation 7.x-1.8 Supports translatable custom menu items.

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled), Menu (enabled), String translation (enabled), Translation sets (enabled)
Multilingual content 7.x-1.8 Extended node options for multilingual content

Requires: Content translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled), String translation (enabled)
Required by: Multilingual forum (enabled)
Multilingual forum 7.x-1.8 Enables multilingual forum, translates names and containers.

Requires: Forum (enabled), Taxonomy (enabled), Options (enabled), Field (enabled), Field SQL storage (enabled), Comment (enabled), Text (enabled), Taxonomy translation (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled), Translation sets (enabled), Multilingual content (enabled), Content translation (enabled)
Multilingual select 7.x-1.8 API module for multilingual content selection

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled)
Path translation 7.x-1.8 Define translations for generic paths

Requires: Translation sets (enabled), Internationalization (enabled), Locale (enabled), Variable (enabled)
String translation 7.x-1.8 Provides support for translation of user defined strings.

Requires: Locale (enabled), Internationalization (enabled), Variable (enabled)
Required by: Block languages (enabled), Contact translation (enabled), Field translation (enabled), Taxonomy translation (enabled), Multilingual content (enabled), Multilingual forum (enabled), Menu translation (enabled), Views translation (enabled)
Synchronize translations 7.x-1.8 Synchronizes taxonomy and fields accross translations of the same content.

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled), Content translation (enabled)
Taxonomy translation 7.x-1.8 Enables multilingual taxonomy.

Requires: Taxonomy (enabled), Options (enabled), Field (enabled), Field SQL storage (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled), Translation sets (enabled)
Required by: Multilingual forum (enabled)
Translation redirect 7.x-1.8 Redirect to translated page when available. SEO for multilingual sites.

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled)
Translation sets 7.x-1.8 Simple translation sets API for generic objects

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled)
Required by: Taxonomy translation (enabled), Multilingual forum (enabled), Menu translation (enabled), Path translation (enabled)
User mail translation 7.x-1.8 Translate emails sent from the User module.

Requires: Variable translation (enabled), Internationalization (enabled), Locale (enabled), Variable (enabled), Variable store (enabled), Variable realm (enabled)
Variable translation 7.x-1.8 Multilingual variables that switch language depending on page language.

Requires: Internationalization (enabled), Locale (enabled), Variable (enabled), Variable store (enabled), Variable realm (enabled)
Required by: User mail translation (enabled)
Views translation 7.x-3.x-dev Translation of views strings and content selection for views. Requires Views 3.x

Requires: Views (enabled), Chaos tools (enabled), String translation (enabled), Locale (enabled), Internationalization (enabled), Variable (enabled)
Transliteration 7.x-3.1 Converts non-latin text to US-ASCII and sanitizes file names.
Content 7.x-1.0-beta1 Allows various content types to be sent for translation via the translation dashboard.

Requires: Core (enabled), Content translation (enabled), Locale (enabled), Translate (enabled)
Required by: Google translate (disabled), ICanLocalize translation service (disabled), Local translation service (enabled)
Core 7.x-1.0-beta1 Provides core services for sending and returning translation jobs.

Requires: Content translation (enabled), Locale (enabled)
Required by: Translate (enabled), Content (enabled), Google translate (disabled), ICanLocalize translation service (disabled), Local translation service (enabled)
Translate 7.x-1.0-beta1 Handles translation job management and notification.

Requires: Core (enabled), Content translation (enabled), Locale (enabled)
Required by: Content (enabled), Google translate (disabled), ICanLocalize translation service (disabled), Local translation service (enabled)
ICanLocalize translation service 7.x-1.0-beta1 Localization of content using the ICanLocalize translation service.

Requires: Core (enabled), Content translation (enabled), Locale (enabled), Content (enabled), Translate (enabled)
Local translation service 7.x-1.0-beta1 Localization of content using local translators.

Requires: Core (enabled), Content translation (enabled), Locale (enabled), Content (enabled), Translate (enabled)

Install Flag and Flag Friend Modules

I have these installed in Sand and they are fine. These will expand the features of Drupalchat, User Relationships and Invite Modules.

I am enabling all four below.

Flag 7.x-2.0 Create customized flags that users can set on content.

Required by: Flag actions (disabled), Flag friend (disabled), Flag friend access control (disabled)
Flag actions 7.x-2.0 Execute actions on Flag events.

Requires: Flag (disabled)
Flag friend 7.x-1.0-alpha9 Flag users as friends. Implements it’s own flag and a form for sending a user a message upon flag.

Requires: Flag (disabled)
Required by: Flag friend access control (disabled)
Flag friend access control 7.x-1.0-alpha9 Allows users to specify that only their friends can view this piece of content

Requires: Flag friend (disabled), Flag (disabled)

Production/Sandbox Reconcilliation

That time again. I went through all the installed modules, enabled modules and uninstallable modules and my two environments are now consistent. I also ran a full update and updated the google analytics module. I have 174 modules installed and 138 of those enabled. I also have 54 folders in sites/all/modules on both. This is a pain to do but it is really important to keep your sanbox environment as close to your production as possible.

I also rebuilt the permissions on each environment.

Drupal Core Upgrade 7.20 to 7.21

Core update was released yesterday and since these generally address security issues, always a good idea to put it in place ASAP. Plus, then you won’t have to read all those warnings!

I have installed this on my sandbox and had no issues. I’m doing a reboot now and after checking the status report and a few of the features, i’ll install this on prod. I followed the same procedure as before. Here is the link. Will issue a Change Request when I am done.

Make note that I am on Centos 6.3 and the commands are specifically for this OS. BUYER BEWARE!

Panel Pages, Variants and the Default front page in Drupal

I’ve been plugging all the different sections of content I have created into a layout that comprises my site. And by “sections” I generally mean Views that have been created to display content on a Panel Page.

So I have a Panel page that has been designate as the “Default front page” of the site. There are plenty of ways to display a specific page as the front page of a site depending on what web server you are using (IIS, Apache….) and other factors in the code, an HTTP redirect…. lots of ways….

In Drupal you go to Site Information to see what path leads to the front page. But you can also choose this when you are configuring your Panel Page. And this is where I was able to use a Variant in a way that really helps.

I have one front page, and two variants of that page. They have the same path, but different layouts and different components. And the deciding factor is whether the “logged in user” is “authenticated” or “anonymous”. If your anonymous, you get one thing, logged in, you get another. This is really helpful because some people choose to save passwords and log in automatically to sites and you want them to get the “front page” of the site that matches their login status. So this one way that Variants can help.