Skip to content

Instantly share code, notes, and snippets.

@btopro
Last active January 18, 2016 16:07
Show Gist options
  • Save btopro/b00e3bf22a94cd256127 to your computer and use it in GitHub Desktop.
Save btopro/b00e3bf22a94cd256127 to your computer and use it in GitHub Desktop.
Work plan
https://windows.github.com/
http://www.sublimetext.com/ (get 2.x)
http://vagrantup.com
Goals:
-- Get a feel for Unix / Drush / Drupal
-- get this running http://www.drupalvm.com/
-- Figure out how to get around and modify a file via VIM / vi in UNIX
-- Use Drush to install a basic site (VDD provides directions to do this)
-- run drush @drupal7 help (to see some commands)
-- get views, module_filter, admin_menu and zurb_foundation installed (drush dl, drush en)
-- instead of screwing around...
Disable overlay, dashboard and toolbar.
Enable module filter, admin_menu and admin_menu_toolbar (or whatever its called)
Enable views / views UI
Change the theme to Zurb foundation
Work on the basics of creating a blogging site
Create a new content type called "Blog Post" and add a field to it that lets you store tags for your posting
Create a view that displays blog posts with the fields who wrote it, when, etc.
Make the view as a list of items as well as a table
Add the ability to filter the table / sort the items
Create 5 BS blog posts for your site
Create a block that shows the last 3 postings.
Place that block on the homepage only
Create menu links to your views as well as homepage and a link to your twitter account
Get here and then ask for more stuff to mess with
--- Developer stuff ---
-- Understand how hook based architecture works
-- Write a blog about learning to get a site up the first time
How:
Figure it out, ask questions, fail early and often
-- understanding hooks -- https://gist.github.com/btopro/a7df279dac7e249ef059
-- skim through some hooks to see what some common ones are
https://api.drupal.org/api/drupal/includes%21module.inc/group/hooks/7
Two most important things in Drupal
-- https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke_all/7
-- https://api.drupal.org/api/drupal/includes%21module.inc/function/drupal_alter/7
WORK PLAN
- package manager - https://gist.github.com/btopro/739d7d0d745f41597174
- get features -- https://www.drupal.org/project/features
- get context -- https://www.drupal.org/project/context
- switch blocks placement to context
- create feature that captures context / views / content types / fields
- make git repo
- throw these in git repo
- turn the site into a install profile -- https://www.drupal.org/project/profiler_builder
-- put profile into VC as well
** something only in drush
- turn the site into a recipe -- https://www.drupal.org/project/drush_recipes
- add this to the profile and put it up on git repo.
***PROGRAMMING
- write hello world module
- make a form that saves input
- fields to save -- site name, site front page
- checkbox to optionally include css that adds green bar to the page (yes this is stupid)
- save these to the global variables (vet_set())
- hooks you'll need
hook_menu
hook_form_(othershit)
hook_form_(othershit)_validate
hook_form_(othershit)_submit
something that's a callback from hook_menu
hook_page_build() (css gets added here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment