May 24, 2012

User-friendly Donation Links

Make it easier for donors to give online by creating custom links that automatically set gift options like recipient and gift amount.

(Examples below apply to the current College of Liberal & Creative Arts donation form.)

To create a custom "Make a Gift" link:
  • Use the & (ampersand) symbol to add on form field values to the link URL
  • Replace blank spaces between form field values with %20

Custom Make A Gift links

Some basic examples for building your own donation form links.
The default Humanities URL (donor makes all form selections).

Example: "Make a Gift"

https://www.applyweb.com/public/contribute?s=sfuhuman


Automatically select your program or department:

Example: "I would like to support the Theatre Department"

https://www.applyweb.com/public/contribute?s=sfuhuman&SFUHUMAN-DESIGNATE_GIFT=Theatre



Automatically set a gift amount:

Example: "I would give $25 to the Theatre Department"

https://www.applyweb.com/public/contribute?s=sfuhuman&SFUHUMAN-DESIGNATE_GIFT=Theatre&SFUHUMAN-GIFT_AMOUNT=25


Pre-select "Other" and write-in the name of your initiative.

Example: "I Would Like to the Support Players' Club"

https://www.applyweb.com/public/contribute?s=sfuhuman&SFUDONAT-DESIGNATE_GIFT=Other&SFUHUMAN-DESIG_OTHER=Players%20Club

April 11, 2012

Creative Arts Web Publishing Updates

Meeting Schedule (Demos, publishing updates, feedback)

2x month (now through start of fall 2012)
Friday 2pm (1/2 hour max)

View all upcoming meeting dates:
http://www.doodle.com/utnfcad2b4szyd44

Homepage




Homepages will be updated over the next week to include upcoming events (next 14 days), and recent news (announcements, blog posts, news in brief).

Example:
http://creativearts.sfsu.edu/

Follow/Subscribe to site



Visitors can subscribe to site by e-mail to a site’s default RSS feed. E-mail updates will include announcements, events, blog posts, and news in brief. Sign up form is displayed in the sidebar on the homepage.

News and Blogs



News sections will be updated to display latest announcements, blog posts, and news in brief.

Content from external blogs can be imported directly into department sites via RSS feed--Blogger, Tumblr, Flickr, YouTube are all supported. Any imported blog posts can be or unpublished by a department site administrator. Contact lmjr@sfsu.edu to add new blogs on site.

Note: Blog posts are truncated to 256 characters on main blog listing view to provide a fast loading experience for wireless connections. All content is displayed on information page.

Student blog, truncated summaries (KSFS Media blog)




Program blog (Design and Industry VCD blog)




Faculty blog (BECA Faculty blog)






Photos



Need photos for department imagestripes (image collage across top of page), page thumbnails, and College of Liberal & Creative Arts website project. Individual photos can posted to department flickr accounts by e-mail. Contact lmjr@sfsu.edu for more information about upload by e-mail or if you have a photo collection to share.

College of Liberal & Creative Arts Facebook project



Seeking photos and descriptions about department projects to post as brief profiles on the new College of Liberal & Creative Arts Facebook. A few profiles have been posted for college centers and institutes. Department projects and groups to come.

Content format for college organization profiles



  1. Title
  2. Mission or summary statement
  3. Website link
  4. Photo of organization leader, 1 or more photos of organization members. 


Visit the College of Liberal & Creative Arts Facebook page to view updates:
http://www.facebook.com/pages/College-of-Liberal-Creative-Arts-San-Francisco-State-University/321473757908187

(P.S. Like and share this page!)

Announcements



Designed to be used for news and updates from the department office. Updates can be short or long form (no character limit).

Note: If reposting a story from another source--like Creative Arts--post a short summary and link back to the main article.

Announcement w. image and link to source (Design and Industry)





Short form announcement (Creative Arts)




Events (Department calendar)



Some updates have been made to the events section navigation. Depending on amount of events published, upcoming events navigation links in the right sidebar can now be grouped by month or by month, year.

In progress: Creative Arts events will be automatically published to department sites. Departments can still publish their own event nodes.

Basic Events navigation (Design and Industry)




Advanced events navigation, grouped by month (Music and Dance)



December 16, 2011

Drupal-in-Brief: Views and Blocks

Working with Views fields display


As an example we'll shorten the Research Interests text to Research in the People/Faculty view.

Go to the Views list page and click edit for the Faculty view:
https://yourSite.sfsu.edu/admin/build/views (View all current sites)



Click on the Page display link in the left-hand menu, then click the Preview button to see a Live Preview of the current view.



We need to reconfigure the Fields Page display settings. Scroll back up, and take a look at the Fields box for Page display.



The fields listed are specific to the People subpage content type and are dependent upon the Filters settings. Just keep that in mind if you start getting blank views or fields.

If you click on each of the fields listed, starting from the top, you'll notice that for almost all of the fields, Exclude from display is checked. The exception is the bottom-most field, which contains the output display code.

Click on the last field, Content:Job title, to see the rewrite pattern used for the Faculty view.




This is the code:

<div class="brief">

[field_thumbnail_fid]
[title]
<p>[field_title_value]</p>
<p><strong>Research Interests:</strong> [field_keywords_value]</p>
</div>


The text in square brackets are placeholder variables, or field tokens that can be used to display data in a view. The HTML code is based on the standard .brief formatting style provided by the SF State webtemplate stylesheet.

This is the actual HTML code generated by the view:


<div class="brief">
<img class="imagefield imagefield-field_thumbnail" width="90" height="90" alt="Generic Profile Image" src="https://wcmdemo.sfsu.edu/art/sites/wcmdemo.sfsu.edu.art/files/images/th/uid/90x90_profile.png?1324035407">
<h2><a href="/art/faculty/john-q-public">John Q. Public</a></h2>
<p>Assistant Professor</p>
<p><strong>Research Interests:</strong> Art History, Asian Art History</p>
</div>


For this example, we will just shorten the Research text.


<div class="brief">
[field_thumbnail_fid]
[title]
<p>[field_title_value]</p>
<p><strong>Research:</strong> [field_keywords_value]</p>
</div>


Click the Update button, and you should your changes reflected in the Live Preview section at the bottom of the page. Click the Save button to make your changes permanent.

Notes

When making changes, take care when using the override and use default options when making changes. Override is generally a safer option if you have multiple displays within a single view.

Basic Settings:


  • Change between unformatted, lists and tables.
  • Items to display
  • You also provide default text for Header, Footer, empty text.



Relationships and Arguments:

Provides advanced configuration. Learn more by picking up a good Drupal book: https://sites.sfsu.edu/drupal/free-drupal-books-readable-online-library

Fields:

Very flexible. Dependent upon fields in content types.

Sort criteria:

Lots of sorting options like alpha, descending, ascending, etc.

Filters:

Determines what content nodes will show up. Can be broad (all published) or specific (news content published in the last month by a specific author).

Working with blocks


There are two types of blocks: 1) static blocks, and blocks dynamically-generated by views. Blocks are basically content snippets configured to appear within regions of a site (left sidebar, main, right sidebar, etc.) with additional visibility options for specific pages or users.

Static blocks


  1. Login and go to the Block list for your site:
    https://youSite/admin/build/block/list
  2. Click Add block.
  3. Provide a Block description, title (optional depending on the format), and Block body content.
  4. Click Save Block.


You’ll end up back at the Blocks listing. Use your browser’s search or scroll down to the Disabled section to find the block you just created.

Change the Region settings from to Right Sidebar and click Save. Your block will move up to the list of blocks in the Right Sidebar region and will also now appear on the live site.

By default, your new block will show up on every single page of your site. If you want your block to only appear on a specific page, you can configure the visibility settings by user, role or page.

To configure the page specific visibility settings, go back to the block list and click on the configure link. Click the Show on only the listed pages radio button, then enter the path to the page the block where the block should be visible (e.g. people). Check the instructions provided on the page for more information.

To unpublish a block, change the region settings back to none. Only static blocks will have a delete link. Dynamic blocks generated by views must be removed from the view itself.


Dynamic Blocks


Views generated blocks are beyond what be explained here (check http://drupal.org for tutorials). As a building block, the link below contains code for a “promote to frontpage” events block.

Code for Promoted Events Views block


(Instructions: Download and copy and paste the code into the Views Import field.)


For visual reference, the code is posted below.

===


$view = new view;
$view->name = 'Announcement';
$view->description = 'Display announcements as a portlet';
$view->tag = 'Announcements';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Announcements', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 1,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '
',
      'suffix' => '


',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'field_date_value' => array(
    'id' => 'field_date_value',
    'table' => 'node_data_field_date',
    'field' => 'field_date_value',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'announcement' => 'announcement',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'status_extra' => array(
    'operator' => '=',
    'value' => '',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
    'relationship' => 'none',
  ),
  'date_filter' => array(
    'operator' => '<=',
    'value' => array(
      'value' => NULL,
      'min' => NULL,
      'max' => NULL,
      'default_date' => 'now',
      'default_to_date' => 'now',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'date_fields' => array(
      'node_data_field_duration.field_duration_value' => 'node_data_field_duration.field_duration_value',
    ),
    'date_method' => 'AND',
    'granularity' => 'day',
    'form_type' => 'date_popup',
    'default_date' => 'now',
    'default_to_date' => 'now',
    'year_range' => '-3:+3',
    'id' => 'date_filter',
    'table' => 'node',
    'field' => 'date_filter',
    'relationship' => 'none',
  ),
  'date_filter_1' => array(
    'operator' => '>=',
    'value' => array(
      'value' => NULL,
      'min' => NULL,
      'max' => NULL,
      'default_date' => 'now',
      'default_to_date' => 'now',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'date_fields' => array(
      'node_data_field_duration.field_duration_value2' => 'node_data_field_duration.field_duration_value2',
    ),
    'date_method' => 'AND',
    'granularity' => 'day',
    'form_type' => 'date_popup',
    'default_date' => 'now',
    'default_to_date' => 'now',
    'year_range' => '-3:+3',
    'id' => 'date_filter_1',
    'table' => 'node',
    'field' => 'date_filter',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Announcements');
$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', '1');
$handler->override_option('use_more', 0);
$handler->override_option('use_more_always', 0);
$handler->override_option('style_options', NULL);
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'build_mode' => 'full',
  'links' => 0,
  'comments' => 0,
));
$handler = $view->new_display('block', 'Block', 'block_2');
$handler->override_option('fields', array(
  'field_thumbnail_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'image_plain',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 1,
    'id' => 'field_thumbnail_fid',
    'table' => 'node_data_field_thumbnail',
    'field' => 'field_thumbnail_fid',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_date_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => '[field_date_value]:',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'event',
    'multiple' => array(
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_to' => '',
      'group' => 0,
    ),
    'repeat' => array(
      'show_repeat_rule' => 'hide',
    ),
    'fromto' => array(
      'fromto' => 'both',
    ),
    'exclude' => 1,
    'id' => 'field_date_value',
    'table' => 'node_data_field_date',
    'field' => 'field_date_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => '[field_date_value] [title]',
      'make_link' => 1,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => ' ',
      'suffix' => '  ',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 1,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
  'field_summary_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 1,
    'id' => 'field_summary_value',
    'table' => 'node_data_field_summary',
    'field' => 'field_summary_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_notes_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 1,
    'id' => 'field_notes_value',
    'table' => 'node_data_field_notes',
    'field' => 'field_notes_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_announcement_value' => array(
    'label' => 'Announcement',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 1,
    'id' => 'field_announcement_value',
    'table' => 'node_data_field_announcement',
    'field' => 'field_announcement_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_introduction_value' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => '<div class="brief">
[field_thumbnail_fid]
<h2>[title]</h2>
<!--[field_summary_value] [field_notes_value] [field_introduction_value]-->
</div>',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_introduction_value',
    'table' => 'node_data_field_introduction',
    'field' => 'field_introduction_value',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'not in',
    'value' => array(
      'feed' => 'feed',
      'feed_item' => 'feed_item',
      'exhibition_listing' => 'exhibition_listing',
      'feed_delicious' => 'feed_delicious',
      'webform' => 'webform',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
  'promote' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'promote',
    'table' => 'node',
    'field' => 'promote',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('items_per_page', 3);
$handler->override_option('use_pager', '0');
$handler->override_option('row_plugin', 'semanticviews_fields');
$handler->override_option('row_options', array(
  'semantic_html' => array(
    'title' => array(
      'element_type' => 'div',
      'class' => '',
    ),
    'created' => array(
      'element_type' => 'div',
      'class' => '',
    ),
    'teaser' => array(
      'element_type' => 'div',
      'class' => '',
    ),
  ),
  'skip_blank' => 1,
));
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);



===

Disqus for Passing the Word