• Like

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.

PodsCMS Framework by Tom Hermans (WordCampNL)

  • 2,800 views
Uploaded on

Presentation on annual WordCampNL on how to use WordPress as a CMS with PodsCMS. …

Presentation on annual WordCampNL on how to use WordPress as a CMS with PodsCMS.

Contact me for more info or consulting.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • 介紹 PodsCMS Framework,簡明扼要,很清楚。喜歡那個 MVC-like 的設計,也發覺要善用 Pick Fields,就能妥善處理 WordPress 內建的其他 Post、Page、User,還有 Taxonomy。

    搭配 Ultimate Taxonomy Manager,會是不錯的組合。
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
2,800
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
23
Comments
1
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Use WordPress as a CMS with Pods CMS Framework by Tom Hermans
  • 2. Tom Hermans I'm @tomhermans on Twitter Designer/Developer/WP Freelance & Contract www.tomhermans.com
  • 3. Hanne & Kaat
  • 4. Is WP a CMS ? Content Management System
  • 5. Yes, WP = CMS Good at Publishing Easy Interface Powerful Theming WYSIWYG Flexibility : Post Meta
  • 6. No CMS !Backend UI Customization Same Post Types Custom Fields Complexity “Just another WP Blog”
  • 7. WordPress Content ?
  • 8. Content Comments Posts Media Pages Links
  • 9. Multiple Possibilities Custom Fields Custom Post Types Plugins.. PodsCMS
  • 10. WTF ? PODS ?
  • 11. Simple Scalable CMS Flexible Connective FrontEnd + BackEnd Customizable UI
  • 12. POD = Piece Of Data
  • 13. PodsCMS Build Your Own Content Type
  • 14. Why ? ● Sorting, Filtering, Relating Data ● Easier for Clients ● Better than Custom Fields ● More options than Custom Post Type
  • 15. Ski region ● Ski Villages ● Number of Slopes ● Number of Lifts ● Geo-Location ● Hotels ● Weather Info ● Picture(s) ● Etc.. etc...
  • 16. PodsCMS Install Download plugin at podscms.org or wordpress.org/extend/
  • 17. How does it work MVC-like Controller : PodsCMS Model : Templates View : Pages
  • 18. Get Started 1 Setup 2 Manage Content 3 Package Manager 4 Menu Editor (deprecated) 5 Add Pod Item
  • 19. Setup : Start to Pod ● Pods ● Templates ● Pages ● Helpers ● Roles ● Settings
  • 20. 1 Setup : Create Pod ● Add New Pod ● Name ● Columns ● Pod Labels ● Helpers
  • 21. 1 Setup: POD Pod = Group of Pod = Group of Input Fields Input Fields ● Create DB Fields ● Top Level Menu ● site.tld/label ● site.tld/label/* ● Helpers
  • 22. Closer Look Setup
  • 23. Pod Columns ● Machine name (db) lowercase ● Label ● Column type ● Attributes ● Helpers ● Comment ● ...
  • 24. Field Types ● Date (w/ datepicker) ● Number ● Boolean (checkbox) ● Single Line Text ● Paragraph Text (Multiline, HTML) ● Code (Multiline) ● File Upload (WP Lib) ● Permalink (slug, auto) ● Relationship (pick)
  • 25. Pick Fields Relate a Pod ● to another Pod ● to a Page ● to a Post ● to a User ● to a Taxonomy = very powerful !
  • 26. Pages Retrieve Data ? ● Pod Page ● WP Page Template ● Shortcode
  • 27. Pod Page ● Edit in Pods Admin ● Supports Wildcard URLs. ● Pod Page “events” = list of events ● Pod Page “events/*” = default handler for all pages beginning with "events/". ● PHP
  • 28. Pod Page Code ● Define Pods Object ● findRecords (SQL) ● showTemplate/loop ● Pagination ● Precode ● Link to Template
  • 29. Pod Page Code Up Close
  • 30. WP Page Template ● WP Theme file ● PHP ● WP template tags ● Pod Class ● findRecords ● showTemplate or custom loop
  • 31. WP Page Closer
  • 32. Use Pods Shortcode ● Simple syntax to include Pod Data ● Display That Many Pod-items in that Order ● Template ● Select * Where ● Universally usable
  • 33. Templates ● Display Output ● HTML ● Magic Tags ● PHP ● Loop-like
  • 34. More Template Code ● {@field.column} ● $this->get_field('skidorp.name') $this->get_field {@field, helper} ● ● ('pickcolumn.columnname');
  • 35. Examples
  • 36. Detail Pages // pull URL segment $slug = pods_url_variable('last'); // pass slug as parameter when defining Pods object $Record = new Pod('podname', $slug); echo $Record-> showTemplate('hotel_detail');
  • 37. Example Detail Page
  • 38. Example Detail Page
  • 39. Helpers Manipulate DB Data at Input at Display at Save
  • 40. Uses of Helpers ● Format Date (dd-mm-yy) ● Radio / Checkbox Fields ● Rounding Numbers ● Edit Value before Saving (http:// ) ● Send Mail after Update Pod ● ... ● Various Helpers for d/l on pods-site
  • 41. Manage Content Browse/edit all the content in the Pods database tables.
  • 42. Manage Content
  • 43. Edit Content
  • 44. Example Pick Fields
  • 45. Packages Built in import/export system
  • 46. Packages ● Import ● Export ● Pods ● Pages ● Templates ● Helpers
  • 47. Packages ● Import/Export ● Pods ● Templates ● Pod Pages ● Helpers ● Repository on podscms.org
  • 48. Pods UI Develop plugins that look like WP's own
  • 49. Pods UI ● Develop Custom Backends for Various Users ● Extremely Powerful with Role Managers ● PHP + WP Template Tags + Pods ● More options in 2.0
  • 50. Pods UI
  • 51. Pods UI : Manage
  • 52. Pods UI : Edit
  • 53. Pods UI Possibilities Which Fields Can They See ? Which Fields Are Editable ? Which User Can Access ? Can the User Add Fields ? Can the User Delete Fields ? Duplicate Fields ?
  • 54. Pods UI + Roles Combine this with A Role Manager Plugin* => Mega Power <= *e.g. Members by Justin Tadlock
  • 55. Pods UI : Short Howto Fire Up Pod Define Edit/Add Fields pods_ui_manage Next slide : code example
  • 56. Benefits ● Seperate Tables ● Performance ● Ease of Use
  • 57. Pro / Contra ● Seperate Tables ● Separate Tables > ● Performance No WP Functions (comments/akismet) ● Ease of Use ● Smaller Community ● UI (but wait for 2.0 ;) ) ● for Developers Issues will be addressed in Pods 2.0
  • 58. Pods 2.0 ? ● More Functions ● Better Interface ● Easier to Use ● More Styling Options ● Also for non-developers ● Integration with CPT & WP functions ● Expected end of 2010 / begin 2011
  • 59. Pods Addons ● Packages ● CSV Importer ● Helpers ● C-Gen ● PodsCMS Widgets ● Pods SEO Titles ● ...
  • 60. More ? PublicForms PodsAPI SQL
  • 61. test Tutorials & Help ● podscms.org ● mondaybynoon.com ● ui.podscms.org
  • 62. Thank you. Tom Hermans ● www.tomhermans.com ● @tomhermans ● tom@tomhermans.com