160 likes | 278 Vues
In Week 4 of the MTM4081 course, we focused on Drupal 7’s architecture and module functionalities, including CCK, Views, and Taxonomy. Guest speaker Andrew Sinkinson shared insights on the CMS's application in Statistics Canada, while we explored theming principles and our group assignments aimed at enhancing Drupal with contributed modules. Laura Wesley, from the Treasury Board of Canada Secretariat, also discussed web usability. Our task included creating and presenting mock-ups, utilizing Live CSS for design implementation, and understanding the importance of accessibility in web content.
E N D
Week 4 - MTM4081 • drupalthemes
week3review • Core modules vs. contributed modules • Covered modules including: CCK, Views, Internationalization, Flags, Rules, Taxonomy, Rate • Guest speaker, Andrew Sinkinson, from Statistics Canada provided insight on how content management systems are being used in his department. • Drupal 7 architecture, system flow, modules, and documentation. • Group assignment: Extend Drupal using a collection of contributed modules. • Group presentations: Show off your new development. • Possible work term placements at Statistics Canada with a Drupal migration. • Week 3 Review
Guest Speaker • laurawesley • About • Laura Wesley is the web usability lead at Treasury Board of Canada Secretariat. • Department • Treasury Board is responsible for the accountability and ethics, financial, personnel and administrative management, and approving regulations. • Website • www.tbs-sct.gc.ca www.rework.comrework@mail.com (987) 124-5678 98 East Street, New York, NY 12345
Week 4 • gettingtechnical • Last Week – Extending DrupalContent Construction Kit (CCK), ViewsInternationalization, Flags, Rules, Service Links, Rate, Taxonomy, Token • Today – Theme and Modifications • - Why Theme?- Theming Overview- Info file (.info)- Templates (*.tpl)- Sub-theme, Zen- Customizing Zen www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa
Week 4 • documentation • Drupal Theming Guide • http://drupal.org/documentation/themeWhere you read how to create and modify Drupal themes. • There are thousands of websites devoted to Drupal. Most problems you may encounter have been solved and documented online. www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa
whytheme • Why do we use it? • Whenever creating a system, we try to keep our visual layer separated from our programming. Why? • Themes are a collection of files that make up the look and feel of your site. Themes are made up of most of the things you’d expect to see; style sheets, images, and Javascript files. • Week 4 www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa
Week 4 • themeoverview • CSS • To store all your theme CSS • Images • To store all your themes images • Javascript • To store all your themes Javscript • Templates • Structure for all theme components • Info • Details about the theme, required files, etc. www.rework.comrework@mail.com (987) 124-5678 98 East Street, New York, NY 12345
Week 4 • *.tpl • Important TPL files • Block.tpl.php • Comment.tpl.php • HTML.tpl.php • Node.tpl.php • Page.tpl.php • There are several tpl.php files associated with any given Drupal theme. These files build the HTML structure for the Drupal components. www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa
Week 4 • Zen • Zen is the ultimate starting theme for Drupal. If you are building your own theme, you will find it much easier to start with Zen than any other. • Easy IDs and Classes • Provides easy-to-use IDs and classes for CSS developers. Can create almost any design without modifying the TPLs. • Column Resizing • Automatic column resizing for 1,2 and 3 column layouts. • Print.css • Optimize print display when sent to a printer. • Flexible • Using Zen, you can create an wide variety of designs by only altering the theme CSS. www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa
Week 4 • onlinelab • Install Live CSS • Experiment with template CSS files www.rework.comrework@mail.com (987) 124-5678 98 East Street, New York, NY 12345
Week 2 • groupwork • Create Design • Design • In your group, create a design as a mock-up of what you would like your website to look like. • Design should be 1, 2, or 3 columns. • Should have a header and footer. Teams of 3. Assignment should take 1 hour followed by presentations. Convert Themes Using Live CSS, begin converting your design into Drupal.
Week 2 • presentations • Group B • Group H • Group C • Group 1 • Group E • Group F • Group D • Group G
Week 4 • written • Group: Finish migrating the design of your website into Drupal. • Individual: Write an article explaining what are the “Web Content Accessibility Guidelines”. Why do we implement these guidelines? www.opin.cachris.smith@opin.ca (613) 851-7102 126 York Street, Office 300, Ottawa