Create articles using FTP

I have some good articles in my outlook emails.
I would like to add these articles to my site
They contain video images and text
Can I upload them in outlook format to FTP do that I can create articles fast

preprocess_page function in template.php

Hi, all.

I am developing a themes for drupal 7. I create 3 page (home, about, contact) and 1 view (blog) as content. Each page is design differently. So, I create page-home.tpl.php, page-about.tpl.php and page-contact.tpl.php)

To achieve that, I am pasting this code to template.php:
<?php
function minimalistics_preprocess_page(&$vars) {
if (isset($vars['node']->type)) { // We don't want to apply this on taxonomy or view pages
// Splice (2) is based on existing default suggestions. Change it if you need to.
array_splice($vars['theme_hook_suggestions'], -1, 0, 'page__'.$vars['node']->type);
// Get the url_alias and make each item part of an array
$url_alias = drupal_get_path_alias($_GET['q']);
$split_url = explode('/', $url_alias);
// Add the full path template pages
// Insert 2nd to last to allow page--node--[nid] to be last
$cumulative_path = '';
foreach ($split_url as $path) {
$cumulative_path .= '__' . $path;
$path_name = 'page' . $cumulative_path;
array_splice($vars['theme_hook_suggestions'], -1, 0, str_replace('-','_',$path_name));
}
// This does just the page name on its own & is considered more specific than the longest path
// (because sometimes those get too long)
// Also we don't want to do this if there were no paths on the URL

Adjust Drupal form's label layout

Hi,

I want to change the layout of my Drupal form. Originaly it displays label, and the form element (text field, etc) in a new line. I want to change it to label and form element in same line.

If I use CSS to adjust to a line, I need to adjust all the element's left padding so that the label and element looks tidy like a html table with 2 columns.

Any suggestion on how to do this?

Thank you in advance.

Can I do OR (vs. AND) searches?

I have faceted search working using Search API (with Search Views), Facet API, and Views. Love love love these modules.

I have 5 facets set up to narrow by Color, Size, Pattern, Shape, and Condition.

When I select RED under Color, I get all < red > results. GREAT.

If I then select LARGE under Size, I get all < red AND large > results. GREAT.

But when I select a second Color, say BLUE, suddenly I get only results that were tagged as < red AND blue AND large >.

Calendar to show only nodes that a user has access to

Hello,

Just a quick question: I'm wondering if I have a calendar that shows nodes from various content types if it will automatically only show nodes the user has access to. That is, if I have:

Content Type A
Content Type B
Content Type C

All three share a date field.

Role A can see all content types
Role B can only see Content Type B
Role C can only see Content Type C

If I set the calendar up to show all 3 content types, will the respective roles only see nodes they have access to? If not, how would one accomplish that?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x