• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
New in Drupal7
 

New in Drupal7

on

  • 565 views

 

Statistics

Views

Total Views
565
Views on SlideShare
564
Embed Views
1

Actions

Likes
1
Downloads
11
Comments
0

1 Embed 1

http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    New in Drupal7 New in Drupal7 Presentation Transcript

    • !"#$%&()* +,-./0#12 3#.456.76,8")3")..49+1136:0#,4 ";0<==>"+11>6?>6:
    • !"6:#@)&-./0#1•! A.6B)>$1)#7 –! -.+)&C/4$#).$ Committers•! C.#,>":#+,$#+,). –! D,E)1#C4.6,F-./0#12G –! 5HI6.96B$&4F-./0#1JG –! ()+11-./::F-./0#1KG•! 36,$.+I/$6.&
    • Changes for Users
    • -2LM http://www.d7ux.org/
    • ()*N,O6.:#P6,D.>"+$)>$/.)•! ()*ND&)0#.#$)&#7:+,+&$.#PQ)$#&@& +,$6R>6,$)S$&T< –! N%:7)#1+,E*+$">6,$),$? –! N%:I/+17+,E6/$&+$)&$./>$/.)? –! N%:>"#,E+,E:4&+$)%&#00)#.#,>)? –! N%::#,#E+,E$")0)601)*"6>6:)$6:4 &+$)? –! N%:>6,UE/.+,E:67/1)&#,7&)V,E&?
    • Drupal 6 -)O#/1$O.6,$0#E) Drupal 7
    • 9)10
    • L&).&>#,>#,>)16*,#>>6/,$&
    • W7+$+,01#>)
    • D7:+,8"):)<RX)Q),T
    • 8661I#.YX"6.$>/$& Toolbar shows new User account-related IA along the top info easily accessibleUser specific admin shortcuts
    • D7:+,+&$.#PQ)-#&"I6#.7
    • ZQ).1#4&
    • [).P>#1$#I&Drupal 6Drupal 7
    • 67/1)&>.)),
    • A).:+&&+6,&>.)),
    • -)O#/1$=+,+:#1A.6U1)
    • 8+:)]6,)#,736/,$.4&/006.$
    • New Minimum Requirements 5.0 5.2 8.3
    • Changes for site builders
    • +S#,7#$>"A/I1+>#,7A.+Q#$)U1)&
    • N,$).,#P6,#1+]#P6,•! ()*$.#,&1#P6,+,$).O#>)•! X)#.>":67/1)&/006.$&1#,E/#E)^ #*#.)&)#.>")&•! N,7+Q+7/#1U)17&>#,I):#.@)7 $.#,&1#$#I1)=/,$.#,&1#$#I1)•! X/006.$O6.:)&&#E)>6,$)S$&F:&E>$S$G $6:#@)$.#,&1#P6,6O&"6.$*6.7&1+@) R[+)*T:/>")#&+).?
    • ()*$.#,&1#P6,+,$).O#>)
    • (#PQ)+:#E)"#,71+,E
    • X)>/.+$4•! A.6:0$)7O6.)^:#+1,6PU>#P6,&6O &)>/.+$4/07#$)&/06,+,&$#11#P6,?•! A9AU1$).:67/1),6*E16I#1R@+11^&*+$>"T O6.R),$).&6:)A9A").)TO/,>P6,#1+$4?•! 3.6,?0"0.)_/+.)&@)4+,L`a$6I)./,?•! ()*0).:+&&+6,O6../,,+,E&+$)/07#$)&?•! a+:+$16E+,#;):0$&bI);).c667>6,$.61?•! X$.6,E).b01/EE#I1)0#&&*6.7"#&"+,E #1E6.+$":?
    • d+)17LNF,))33eG
    • d+)17840)&+,36.)•! C661)#,•! -)>+:#1=d16#$=N,$)E).•! d+1)•! N:#E)•! a+&$•! 8)S$=8)S$#.)#•! 8#S6,6:4$).:•! (67)C674F16,E$)S$#,7&/::#.4G
    • d+)17&#0014$6<•! (67)&•! L&).&F.)P.)&36,$),$A.6U1)G•! 36::),$&F.)P.)&(67)36::),$Y 36::),$L016#7G•! 8#S6,6:4$).:&F.)P.)&8#S6,6:4N:#E)G•! ZIB)>$&O.6:>6,$.+I/$)7:67/1)&
    • L07#$)#,#E). Install and update modulesand themes from drupal.org!
    • Changes for designersand front-end developers
    • Z17$#I1)^I#&)7$"):)& .):6Q)7O.6:>6.)
    • #,40#E))1):),$&#&&+E,#I1)
    • `)^Q#:0)7f?$01?0"0
    • `)^Q#:0)7f?$01?0"0
    • `)^Q#:0)7f?$01?0"0•! Re-engineered XHTML structure to facilitate CSS-only design.•! Standard, semantic class/ID names (.section, #navigation, etc.)•! Improved consistency throughout•! Enables designers to create CSS-only themes without touching PHP•! No more box.tpl.php
    • X$#.@<(#@)7-./0#1
    • 5.#,/1#.$"):+,E6O>6,$),$ Drupal 6•! g>6,$),$*#&#I+E&$.+,E6OM98a•! d+,)^E.#+,)7>6,$.616Q).*").)f6,)f 0#.$6O>6,$),$E6)&:)#,&I)+,E .)&06,&+I1)O6.f#11f0#.$&6O>6,$),$•! X)>/.+$4#Q).&)•! WQ),>6::),$&#.)+,$"+&:+S
    • 5.#,/1#.$"):+,E6O>6,$),$Drupal 7 ... •! g>6,$),$+&,6*#,#..#46O0#E) 0.60).P)&$"#$@))0&$.#>@6O*"#$%& I)),0.+,$)7&6O#.? •! X)1)>PQ)14"+7)0#.$&/,P146/%.).)#74 $60.+,$$"):*").)hZL*#,$?
    • `-d#Default mapping for nodes: <?php $type->rdf_mapping = array( rdftype => array(sioc:Item, foaf:Document), title => array(dc:title), created => dc:created, changed => dc:modified, body => content:encoded, uid => sioc:has_creator, name => foaf:name, ); ?>
    • i#Q#X>.+0$+:0.6Q):),$&•! Bj/).4k?lbBj/).4d6.:&m?mbBj/).4LNk?2•! 7./0#1n#77n1+I.#.4FGO6.#77+,E.)1#$)7B&= >&&U1)&•! ()*DiDMO.#:)*6.@FO.6:>8661&G+,>6.)•! 7./0#1n#77nB&=>&&FG+:0.6Q)7•! L&)Bj/).4#16,E&+7)6$").iXO.#:)*6.@&•! d6.:DAN7)0),7),>+)&F&"6*I6SC*"), I6SD+&>")>@)7G
    • Changes for coders
    • X+:01)8)&$
    • $)&P,E?7./0#1?6.E•! RA#$>"F>67),))7&.)Q+)*GT#,7RA#$>" F.)Q+)*)7Y$)&$)7I4>6::/,+$4GT &$#$/&)&>#,,6*I)$./&$)7?•! `)Q+)*).&,616,E).E)V,E>#.0#1$/,,)1 >1+>@+,E$".6/E"#11$")I#&+>&$/o?•! `/,,+,E$")O/11$)&$&/+$)$#@)&#16,E P:)p1)$#>6:0/$).76+$O6.46/q•! (6PU)&#/$"6.*+$"+,mr"6/.&+O0#$>" ,616,E).#001+)&6.I.)#@&$)&$&?
    • DatabaseThe next genration
    • 8")*"6+,$")*"#$,6*s•! -#$#I#&)#I&$.#>P6,1#4)./P1+]+,EA9A%& -#$#ZIB)>$&FA-ZG•! 8")6.)P>#1&/006.$O6.#,4A9A &/006.$)77#$#I#&)•! :4&_1b&_1+$)b#,70E&_17.+Q).&+,>1/7)7•! X/006.$O6.:#&$).=&1#Q).)01+>#P6,b $.#,&#>P6,&b:/1P^+,&).$_/).+)&b7)1#4)7 +,&).$&b#,76$").O)#$/.)&
    • X$#P>X)1)>$j/).+)&Drupal 6: $result = db_query("SELECT nid, title FROM {node} ! WHERE type = %s AND nid = %d", array($type, $nid));" $node = db_fetch_object($result);"Drupal 7: $node = db_query(SELECT nid, title FROM {node} ! WHERE type = :type AND nid = :nid, array(:type => $type, :nid => $nid))->fetchObject();"
    • -4,#:+>X)1)>$j/).+)&Drupal 6:$result = pager_query(db_rewrite_sql(SELECT n.nid FROM {node} nWHERE n.promote = 1 AND n.status = 1 ORDER BY n.sticky DESC,n.created DESC), variable_get(default_nodes_main, 10));"Drupal 7:$select = db_select(node, n)" ->fields(n, array(nid))" ->condition(promote, 1)" ->condition(status, 1)" ->orderBy(sticky, DESC)" ->orderBy(created, DESC)" ->extend(PagerDefault)" ->limit(variable_get(default_nodes_main, 10))" ->addTag(node_access);"
    • Drupal 6: "66@n_/).4n#1$).FG function hook_db_rewrite_sql($query, $primary_table, $primary_field, $args) {! switch ($primary_field) {! case nid:! $return = array();! if ($primary_table != n) {! $return[join] = "LEFT JOIN {node} n ON $primary_table.nid = n.nid";! }! $return[where] = created > . time() - 3600;! return $return;! break;! }!Drupal 7: function hook_query_alter(&$query) {! if ($query->hasTag(‘node_access’)) {! $query->condition(‘created’, time() - 3600, ‘>’);! }! }!
    • d+1)X4&$):http://flickr.com/photos/bunny/
    • d+1)DAN+:0.6Q):),$&•! d+1)&#.),6*U.&$^>1#&&6IB)>$&•! "66@nU1)n16#7FGb"66@nU1)n&#Q)FGb "66@nU1)n:6Q)FGb)$>?•! d+1)&#.):#,#E)7#/$6:#P>#114p,6 ,))7$67)#1*+$"tU1)&u$#I1)46/.&)1O•! "66@nU1)n/.1n#1$).FGO6.3-(&/006.$
    • X$.)#:*.#00).&/006.$•! `#$").$"#,.)O).),>+,EU1)&I40#$"b46/ ,6*.)O).),>)$"):I4L`N< &>"):#<==U1)=0#$"=U1)?)S$•! D116*&46/$6>"#,E)16>#P6,6OU1)& 7+.)>$6.4*+$"6/$#7#$#I#&)/07#$)?•! 0/I1+><==b0.+Q#$)<==b$):0<==&/006.$)7+, >6.)?•! 36,$.+I/$)7:67/1)&>#,#1&6>.)#$) &l<==bc+>@.<==b)$>?
    • APIs
    • DAN&•! `61)&=A).:+&&+6,&DAN•! d+1$).=d6.:#$DAN•! 3),$.#1+])7&$#P>>#>"+,E:)>"#,+&:•! a6>@+,EO.#:)*6.@•! i6I_/)/)
    • d+)17DAN•! (6$,67)^&0)>+U>•! -)>1#.)#,4),P$4+,-./0#1#&RU)17#I1)T•! X*#00#I1)&$6.#E)I#>@^),7&F>/..),$14bXja I/$06$),P#114*)I&).Q+>)&b)$>?G•! X/006.$&$.#,&1#$#I1)>6,$),$?
    • N:#E)DAN•! N:#E)$661@+$&,6*+:01):),$)7#& :67/1)&b.#$").$"#,?+,>U1)&$"#$/&).& ,))7$6>6046Q).?•! X/006.$&+:#E):#,+0/1#P6,)o)>$&<&>#1)b >.60b.)&+])b.6$#$)???•! 3#,>6:I+,)$")&)+,$6R+:#E)&$41)&T$"#$ >#,I)#001+)7$6#,4+:#E)F/&).0+>$/.)&b U1)/016#7&???G
    • `)E+&$.4•! D/$6^0#.&)&#,7>#>")&1+&$6O#11 O/,>P6,&b>1#&&)&b#,7+,$).O#>)&+,#11 U1)&•! d#>+1+$#$)&O#&$)."66@>#11&p6,141660 $".6/E":67/1)&$"#$+:01):),$# "66@
    • 31#&&.)E+&$.4•! D/$6^0#.&)&#,7>#>")&1+&$6O#11>1#&&)&#,7 +,$).O#>)&+,#11U1)&•! D116*&46/$676< $foo = new Foo;•! ???O.6:#,4*").)
    • X0))7#,7&>#1#I1+$4•! A.6S4#,7.)Q).&)^0.6S4&/006.$<&).Q) #,6,4:6/&0#E).)_/)&$&),P.)14Q+# 0.6S4•! #,4:+>.6^60P:+]#P6,&$".6/E" M-)I/E0.6U1+,E•! X:#.$).166@^#")#7&4&$):O6.E.#II+,E 0#$"#1+#&)&•! N,,6-C7)O#/1$&$6.#E)&4&$):F4XjaG•! 3-(&/006.$O6.U1)&
    • (67)D>>)&&N:0.6Q):),$&•! R#7:+,+&$).,67)&T#,7RI40#&&,67) #>>)&&T$*6&)0#.#$)0).:+&&+6,&•! D1$)."66@n,67)nE.#,$&#,7 "66@n,67)n#>>)&&n.)>6.7&•! (67)#>>)&&#001+)&$6/,0/I1+&")7 ,67)&•! "66@n,67)n#>>)&&FG#116*&:67/1)&$6 +,c/),>)#>>)&&6,,67)&7)U,)7I4 6$").:67/1)&
    • N,&$#11A.6U1)&Drupal 6 Drupal 7default.profile default.info default.install default.profile
    • #D7CX
    • 8")I6;6:1+,)•! W#&+).$6E)$&$#.$)7 –! 3")>@.)_/+.):),$& –! -6*,16#7-./0#12 –! 3.)#$)7#$#I#&) –! N,&$#11 –! D77$"):)&Y:67/1)&O.6:+,$).O#>)•! W#&+).$6I/+176/$ –! N:0.6Q)7#7:+,+&$.#P6, –! 8"):).O.+),714•! W#&+).$67)Q)160 –! 6.)>6,&+&$),$#,7c)S+I1)•! W#&+).$6+,$)E.#$) –! `-d#
    • 8"#,@&$6TD,E)1#R*)I>"+>@TC4.6, O6.:#,46O$")&1+7)&q
    • 3#.456.76,8")3")..49+1136:0#,4a6&D,E)1)&b3#1+O6.,+#";0<==>"+11>6?>6:>E6.76,v>"+11>6?>6:FlkwGlx2^mxxx