Panels, Panels Everywhere

4,666 views

Published on

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,666
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
77
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide
  • Nicolaus Copernicus, a Polish astronomer who made the world re-think cosmology in the 16th century
  • Panels, Panels Everywhere

    1. 1. Panels, Panels Everywhere<br />And not a block in place!<br />
    2. 2. What do I want to do<br /> Re-think how you architect, design and implement a Drupal website.<br />
    3. 3. Typical Drupal Design<br />Blue areas are regions<br />Blocks in regions are unrelated to the content<br />Have to use PHP snippets to make blocks context sensitive<br />Can only place a block in one region<br />All regions always render even when not displayed in page.tpl.php<br />Header<br />Content<br />Left Sidebar<br />Right Sidebar<br />Footer<br />
    4. 4. How Designers See A Page<br />Everything on a page is a part of the content of that page, taken within the context of the entire site.<br />Content<br />
    5. 5. Aw Crap, He’s Showing Us Code<br />Page.tpl.php<br />
    6. 6. Workflow<br />Requirements<br />Architecture + Wireframes<br />Comps<br />Implementation<br />
    7. 7. Page Manager<br />Don’t just decorate what the site gives you.<br />Do not let the page own the content, let the content own the page.<br />List all your pages, or at least the page templates, in one place.<br />Let your pages show what they want to show based upon things like content type, user access levels, current language, etc.<br />
    8. 8. Create a page<br />Decide where it lives.<br />In Drupal, the URL controls the hierarchy. i.e, /members/admin is automatically under /members.<br />Decide what its context is.<br />Decide what content it displays.<br />
    9. 9. You keep using that word. I do not think it means what you think it means.<br />Pronunciation: ˈkän-ˌtekst<br />Function: noun<br />Etymology: Middle English, weaving together of words, from Latin contextus connection of words, coherence, from contexere to weave together, from com- + texere to weave — more at technical<br />Date: circa 1568<br />1: the parts of a discourse that surround a word or passage and can throw light on its meaning2: the interrelated conditions in which something exists or occurs :environment, setting &lt;the historical context of the war&gt;<br />— con·text·less -ˌtekst-ləs adjective<br />— con·tex·tu·al kän-ˈteks-chə-wəl, kən-, -chəl, -chü-əl adjective<br />— con·tex·tu·al·lyadverb<br />
    10. 10. Context in the sense of a Page<br />All the data objects that you need in order to generate the content to display:<br />Node<br />User<br />Language<br />Taxonomy Term<br />Forum<br />Organic Group<br />
    11. 11. Where do Contexts Come From?<br />Arguments<br />/taxonomy/term/%term<br />/forum/%forum<br />/music/beatles/the-white-album/hey-jude<br />Other contexts<br />Node author<br />Node reference<br />They just are<br />
    12. 12. Why is this important?<br />When you add a piece of content to a Page Manager Page, you can tell it which context it cares about.<br />Node views need a node context.<br />User profiles need a user context.<br />Forum listings need a forum context.<br />Views can accept contexts too!<br />
    13. 13. Variants: Do You See What I See?<br />Authenticated users need a richer experience?<br />Local users should see more Local content on the front page?<br />Separation of pages is not necessarily by path?<br />As far as Drupal is concerned, all /node/% URLs are handled the same way. i.e, /node/2 and /node/3 use the same rendering mechanism. But my wireframes don&apos;t agree.<br />

    ×