Panels 2 and Nodequeue 2

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    6 Favorites & 1 Group

    Panels 2 and Nodequeue 2 - Presentation Transcript

    1. Panels 2 + Nodequeue 2 Editorial control of content presentation
    2. Objectives
      • Create a simple “news” site
      • Create a complex front page that hints at our content
      • Create “section” entry pages that lead the user to content
      • Control what content is featured on these pages
      • http://nodequeue.demo.logrus.com
    3.  
    4.  
    5.  
    6. Basic premise
      • News articles can be any content type
      • Control sections by taxonomy
      • We’re not worrying about editorial control
      • We’re not publishing on a schedule
    7. Why these two modules?
      • Finer layout control than blocks
      • Lets each pane know about data on page
      • Overrides basic pages
      • Pluggable and expandable to handle more objects
      • Lets the editor control order
      • Lets the editor control length
      • Automatically pairs with taxonomy
      Panels Nodequeue
    8. What’s a queue? 5 4 3 2 1 This end of the queue is the Tail or Back This end of the queue is the Head or Front New items are inserted at the tail of the queue. If a queue has a maximum size, the front of the queue is popped off.
    9. Featured Stories
      • Story A
      • Story B
      • Story C
      • Story D
      • Story E
      Featured stories is a nodequeue with a maximum queue size of 5. Story A was added first and is currently at the front of the queue. Story E was just added and is now at the back of the queue.
    10. Featured Stories
      • Story B
      • Story C
      • Story D
      • Story E
      • Story F
      When we added Story F to the queue, Story A popped off the front and is no longer a featured story.
    11. Lead Article
      • Story Q
      The Lead Article queue has a maximum size of one. Every time a new lead article is added to the queue, the former lead article is popped out, meaning there is only ever one lead article at a time.
    12. Queues can be re-ordered
    13. Queues can be re-ordered This is the front of the queue
    14. Queues can be re-ordered And this is the back of the queue
    15. That is, unless this box is checked:
    16. Queues can be re-ordered When reversed, this is the back of the queue.
    17. Smartqueues
      • One queue with many subqueues
      • Pluggable system
      • Can attach queues to arbitrary data
      • All queues have the same basic configuration
      • Many queues won’t clog up the UI
      • Subqueues are created as needed
      • Smartqueue taxonomy: 1 term, 1 subqueue
    18. Your average site Header Left Sidebar Footer Right Sidebar Content
    19. Panels: Content
    20. Now with panels Header Left Sidebar Footer Right Sidebar
    21. Contexts are objects
      • Nodes
      • Users
      • Taxonomy terms
      • Forms
      • Any other object someone writes a plugin for
    22. Context source: Arguments http://www.example.com/node/12345 Node: Story XYZ
    23. Context source: Relationships Node: Story XYZ Taxonomy Term Post Author Node: Author Profile
    24. Context at work Header Left Sidebar Footer Right Sidebar Node: Story XYZ Taxonomy Term Post Author Node: Author Profile
    25. Node: Story XYZ node.tpl.php node-panel-foo.tpl.php Attached files CCK Field Group Add comment form

    + merlinofchaosmerlinofchaos, 2 years ago

    custom

    4971 views, 6 favs, 6 embeds more stats

    Building a Drupal-based news site with Panels 2 and more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 4971
      • 4482 on SlideShare
      • 489 from embeds
    • Comments 0
    • Favorites 6
    • Downloads 77
    Most viewed embeds
    • 252 views on http://www.angrydonuts.com
    • 229 views on http://www.lullabot.com
    • 5 views on http://angrydonuts.com
    • 1 views on http://static.slideshare.net
    • 1 views on http://www.slideshare.net

    more

    All embeds
    • 252 views on http://www.angrydonuts.com
    • 229 views on http://www.lullabot.com
    • 5 views on http://angrydonuts.com
    • 1 views on http://static.slideshare.net
    • 1 views on http://www.slideshare.net
    • 1 views on http://thedailypunt.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events