Алексей Черных - Drupal 7 (руководство для новичков) - 2011

Embed Size (px)

Citation preview

  • 100% !

    Drupal /

  • 100% !

    Drupal

    ) 2011

  • 004.42 32.973.26

    'I 49

    . .4-49 Drupal 7 / . .: , 2011. 208. (

    100%).ISBN 978-5-699-47059-4

    Drupal - (CM S). , Drupal . Drupal - - , .

    Drupal. Drupal -. .

    004.42 32 .973 .26

    .

    , , , .

    ISHN 978-5-(>99-4705! . )., 2011 . . I I > . 4)|, 2 0 1 1

  • ................................................................................................................5 ..................................................................................................8 D rupal.................................................................................................... 1111(' .......................................................................................................1311 .......................................................................................21( ) ...................................................... 27

    .......................................................................28 .......................................................................................................... 28 .......................................................................................... 30Shortcuts ( )........................................................................30 .......................................................................................31 .......................................................... 3211 ..................................................................................33Logging and errors........................................................................................34 .............................................................................. 34 ...........................................................................35 .................................................................................................36 ................................................................................................36

    ( ' ..................................................... 39 ............................................................46( ................................................................53( ' ........................................................................................63 ............................................................................................ 69 Views.....................................................................................................75( ' ....................................................................................................82 ............................................................................92

    ............................................................................92 View.............................................................................. 93 ...........................................................................9711 ...........................................................100

    11 ..........................................................................102

  • Ol >l
  • CMS

    I , , i 2000 , , -.........in, , , in in,I ).

    I.i , : -I \ ? .

    II ' , - | in I I I HTML.

    - - , - . I in . , Joomla. , .

    I ly. Joomla, Joomla, . | ' ni'ini , , Joomla. - III . , II , , - ,

    | I ,i I iiK >:

    Joomla Drupal, .

    : < http://diinoning.ru/o-stamlart nih-drizhkah.html>

  • Drupal 7

    :

    Drupal: , , . ;

    Joomla: , - , , .

    , : , Joomla . - , ! . - :

    Drupal, , Joomla;

    Drupal CMF (Content Management Framework) CMS (Content Management System), ;

    Drupal Joomla;

    Joomla , a Drupal - , ;

    Drupal , .

    , Drupal. , :

    Drupal , ; , , ( ), ;

    : , ;

    , , .

  • , , :

    Joomla , ;

    Drupal ( , ).

    , , - , , . , , , . , .

    , . , , , , .

    11 ? , - . , , , , Drupal.

  • Drupal

    , Joomla, . , , , .

    Drupal .

    -, , , . , . , , . . ! i. . , , Drupal .

    -, , . h,i , , . .

    -, oTKpi.m.iri : , , . i vi ?

  • , , , , .

    B.C.

    11, , . :

    I 11 Drupal

    ;

    Drupal;

    ;

    .

    , .

    ) 1< >

    ;

    , ;

    .

    IV iv . I hi .

    . :

    ( );

    ();

    (?).

    !' i\ >.1 ; .ru, iMciie ..

    < !|

    1 | |1, . - I I >

  • Drupal 7

    :

    , ;

    ;

    , , .

    , , .

    , , .

  • DRUPAL

    Drupal 7

    ? Drupal, - I,, . :

    I >rupal 5 Drupal. , , 6 , 7 ;

    I >rupal 6 , . , < ) , ;

    I )rupal 7 , , . , . I ).

    I . , . ( , ).

    11

  • (J 11 >< 11 /

    2. Dashboard, .

    3. : HTML, RDF (Resource Decision Frame work), , . , , ( : http://drupal.org/up- date/them e/6/7).

    4. :

    (Content Construction Kit) ;

    ( Contextual Links);

    ;

    ;

    ;

    ;

    . , . ;

    API ;

    .info , .

    , . , ... , Drupal 7 , ( ). , .

    , . , : print $ content. , .

    , ...

    12

  • 11 , Drupal. () I , - Apache, MySQL SQLite ( PostGrep). , Windows . I iniix Unix FTP , , I ihpMyAdmin MySQL.

    , , Drupal . , :

    Drupal 7.0-alpha5

    MySQL - 5.0.45

    5.3.1

    Webserver Apache/2.2.14 (Unix) PH P/5.3.1

    13

  • Drupal 7

    , 1 . URL , , , .

    0 | : .

    .

    1 peopll >nfiguratian Pepw help drupaluspr I" j(

    Add

  • 11 iii.ii

    ,V|);i! . . . - in . . , in Welcome.

    11, Reports => Status report. .

    , , Ok ( ).

    I [ - iiii . .

    ........ Ctgcture Appearance People

    111 .1

  • Dmpnl /

    Save configuration , . , , Configuration REGIONAL AND LANGUAGE: Languages ; Translate interface

    , . .

    1(>

  • . drupal.org. Translations . drupal-7.0-alpha4-ru-translations.tgz. , drupaler.ru.

    11 , Drupal, (Configuration => Regional and languages => Languages => Add Language). - i , . ..

    11 .

    Oashboard > Configuration > Regional and languageA ili multiple language) enabled, interface text can be translated. registered m e may select then preferred language, and authors cm assign a specific language to content. Download Ht ( ntiibuted translations ftom Diupal.otg.

    Add language

    1 NGUSH NAME NATIVE NAME CODE DIRECTION ENABLED DEfAULT OPL RATIONS

    + tnglnh English en Left to right f? c edit

    + Kuwian ru Left to right w edit delete

    Save configuration

    17

  • uitipu i I

    Configuration ~> Regional and la guages => Translate interface Import ., . ' , . system. , , , ( , , ). .

    , . .

    2417/2457 (98,37%). . , 1 100,38%.

    , :

    ; b b i ;

    ;

    ;

    ;

    / ;

    ;

    18

  • ;

    ( ) ( =>).

    , :

    => . . - 1-;

    => ;

    => ;

    . Edit shortcuts ( );

    => ;

    => ;

    -..Iike.Uie.siit.o0UD

  • Drupal 7

    => , ;

    => Web- ( , , RSS;

    => ;

    => , , , i .

    , Drupal :

    ;

    ( );

    , ( );

    , , , ! ( );

    ] , ( boo6i ).

    . Drupal 6 < :

    ;

    ;

    ;

    .

    Drupal 7 , , , . , ! . .

    20

  • , , . , , . 11|> , .

    . , - I .

    21

  • .

    , . .

    Dili)till 7

    / diuii)

    1 9 2 . 1 6 8 . 1 0 0 . 1 0 -HL

    192.168.100.10f No (ront page content has been created yet.

    Drupal

    @ | : .. +100% -

    , .

    Drupal , , .

    , , , .

    , , , , .

    => => .

    administrator, , , .

    22

  • 1.;)

    11 => => (

    I Ipaua, , Permissions).

    ; < + ,^ '. ' 4** 5 / > ^

    .

    23

  • M(*ci> Drupal, , , . . 35 , 19 ( Locale). . , . ,

    => => , . . . : , administrator.

    (, , . .). . administrator .

    . ] , , , : administrator .

    , .

    24

  • 1011

    > 1* v llll-ril 1

    ...............................

    1 9 2 . 1 6 8 . 1 0 0 . 1 0

    ihnrn

    | 1 | Chern B f ^ i Shortcuts

    Daipal

    - :

    I , . , , - . => => ?. .

    * | * MMuv ( * OtW

  • Diupitl (

    .

    2. . , .

    => , , .

    , .

    1 9 2 . 1 6 8 . 1 0 0 . 1 0

    , 1 1 9 2 .1 6 8 .1 0 0 .1 0

    i No front page content has been created yet. :

    Drupal

    : ? 1://(_/8. .

    .

    2

  • Shortcuts ( )

    Logging and errors ( )

    . I (>. i I> , . ( ) - | II (. I [ , , . - I , , , .

    27

  • Drupal 7

    , . , Drupal 7 . , . , .

    . . , administrator. . .

    . . , , ( , ). , . , . , . . -

    28

  • . V>
  • I >1111 >. 11 /

    , HTML-. , ( ) .

    , . , . .

    . HTML-.

    Shortcuts ( )

    , .

    30

  • 11 URL. , , | , , - I |) URL.

    11, URL : http: / / caftT a/user/5#overlay=adm in/config .

    admin/config URL, . -1 I /user/5 . .

    11 . - . ,

    .

    . Drupal 6 sites/default/private/files.

    7 . , sites/default.

    .41

  • t ) l I I I t i l l /

    MvAvtit 1 ;!**< ihri'M ftwrti'

    . \ , Public.

    , , . , ] , . .

    .{2

  • ( Mill I yi 1| >. Ill/H II 1< > (.111

    I" . , mi . I .

    I-, ||>* * . chriII. ,

    ' .( f m il'll

  • Drupal 7

    Logging and errors

    . shared-, . E c j , , ! 10000 .

    , . , . , , .

    . -

  • |>.| ' ' '>

    1 lil H'liUhl finO "'ilAfil ,

    *.

    5 => => . , . - I . , |. .

    ' |>*: * , chern. ;/*', **5 " 1 "* , I uinlciil iRiwl contcf.t 00|10 -

  • . .

    1 > , chern.

    itenr, Find content .& . ' . Ciit shortcut.

    5

    10 .

    Add daif type

    DATE TYPE

    long . 1 . 2010 - 03:45 -

    Medium 1 . 2010 - 03:45

    Shoit 1 2010 - 03:45

    ' Q I : u iu . 1100 - ..

    .

    .

    :>

  • : Garland Seven. Stark. ' ||| . , , . - 11> . , | ( ) . Garland. , . - n.iii - .

    Seven. , . , , , in < , . - | I Seven, . , ( ).

    . . - |,||,| . . , vr I .

    37

  • 1 Id io m , choc ii i t i ic i i i i in x , m i .i i ic |)ciicccm . .

    . , . , , . , .

    , . , Administration menu, .

  • Administration menu

    , Drupal . , , . . , . .

    , (, , ). .

    ( ), ( ), . ?

    . , .

    39

  • , .

    .

    Drupal. , , , .

    . , filter, PH P- . !

    . , .

    filter. .

    ( =i> ). , . administrator.

    40

  • .

    *

    leal liiimm define the HTMI lagsllliar module halo 0*0'

    em cdftino pages in the order defined on this page

    it configuration is a security risk. Learn more on the

    I

    + filtered HTML ,

    I' Full HTML administrator

    + PUmtext .

    PHP code

    . - . , , .

    Drupal 7 :1. :

    ; drupal/sites/all/modules (

    drupal/modules); .

    2. : Install new module (

    ); ( drupal.org)

    ; .

    . . , , .

    Administration menu (http://drupal.org/ project/admin_menu). , , . , .

    41

  • : I pal 7, Administration menu.

    (>1111 , , , .

    Drupal .

    Drupal 7 Administration menu.

    Administration menu, - > Overlay. , - i 11 .

    . ii|mnlMir FfadWitcnt '

    i .

    j

    llnwnload additional contributed modules to extend Drupal's functionality.

    Mnjularly review and install available updates to maintain a secure and current site. Always run the update script each time a module is updated.

    Install new module

    1

    Administration 7 3j< Administration and debugging Functionality for developers and site builders.Development tools dev

    Provides a dropdown menu to most administrative tasks and other common destinations (to W Administration menu ^ users with the proper permissions). \

    : Administration menu Toolbar style ()

    Toolbar style dev : Administration menu (4)

    Ad ' 7;X-3.X- Replaces all system object management pages in Drupal core with real views.dev : views (), Views.buittoperations ()

    -

    1

    Aggregator 7.0- alpha5 (RSS, RDF Atom).

    ?:@ [ : . => Administration menu.

    43

  • P Adiutt top margin II enabled, the me output is shifted down ape be covered hy the administration menu

    If enabled, the administration menu is always an invisible tursor, non-selectable elen

    iroximately 20 pixels from the

    displayed at the top of the bro

    top of the viewport to display the administration menu

    wser viewport (even after the page is scrolled) Note: iues. Disable this option if these issues occur.

    In some browsers, thi:

    te or fixed-positioned page elements may

    ~ Collapse fieldsets on modules pageIf enabled, fieldsets on the modules page a

    I- Collapse modules on permissions page Collapses permissions by module on the pc

    Move local tasks into menu

    ire automatically collapsed when loading the page

    If enabled, the tabs on the current page an tabs.

    moved into the administratori menu. This feature is only available in themes that use the CSS classes ta b s ]prim ary and taba secon d ary for

    Keep menu at top of page, . . . , . . . .

    *

    Administration menu

    !* Adjust top marginIf enabled, the site output is shifted down approximately 20 pixels fiom the top of the viewport to display the administration menu. If disabled, some absolute- or fixed-positioned page elements may

    If enabled, the administration menu is always displayed at the top of the browser viewport (even after the page is scrolled}. Note: In some browsers, this setting results in a malformed page, an invisible cursor, non-selectable elements in forms, or other issues. Disable this option if these issues occur.

    (7 Collapse fieldsets on modules page

    P* Collapse modules on permissions pageCollapses permissions by module on the permissions page.

    Move local tasks into menuIf enabled, the tabs on the current page are moved into the administration menu. This feature: is only available in themes that use the CSS dasses ta b s prim ary and ta b s secon dary for

    44

  • Drupal 7.

    I I otom . .

    , , ,1. , .

    , .

  • Token

    PathAuto

    Global Redirect

    Transliteration

    Drupal . ? .

    Drupal :

    www.example.com/?q=node/67;

    www.example.com/node/67.

    . . , .

    Drupal 7 . . , .

    , , Path. .

    46

  • , I )ni|>;il I. node/id node. caiii . Path URL< . URL, .

    Path, :

    PathAuto (http://drupal.org/project/pathauto) . , . , , . , ;

    Transliteration (http://drupal.org/project/transliteration) ;

    Global Redirect (http://drupal.org/project/globalredirect) , URL. , 301, , . .

    , .

    \ yftte, chern Bi

    roritint" Find content * . : .!- / 1 ' t \ :' l ':? ' ' . ' " '.

    IS P alphaS Provides a framework for unit and functional testing.7.0-ToolbdralphaS

    Provides a toolbar that shows the top-level administration menu items and . 17links from other modules.

    7.0- Enables tracking of recent content for users.alphaS TpeOyercn Comment ()

    7.0- ,

    Trigger alphaS , .

    PUpdate 7.0- manager alphaS

    Checks for available updates, and can securely install or update modules and themes via a web interface

    0 1

    'OTHER

    Searches for an alias of the current URL and 301 redirects if found.17 Stops duplicate content arising when path tnodule is enabled,

    : Path (iuuomI h)

    ^ ^ g 17 Paltuiuio " ' (alias) ' ! , -

    alphal : Path ()

    47

  • 11 " v : Global Redirccl , , , .

    ,|' (.:

  • ( ' , . Basic page.

    , . , :

    Title () ;

    HTML- ( );

    , .

    . , :

    ( );

    ;

    ;

    ;

    49

  • ( -);

    :

    ,

    , ,

    , .

    .

    I

    I

    URL Path. . , Drupal node/id_node. , , , . , , main.htm.

    ! ?

    , PathAuto, . . , , Automatic alias ( ).

    50

  • i 1 , automated alias settings ( - ( ).

    @ [ : . 10056

    . , . -

    51

  • . ; .

    [ ; .

    , , Replacement patterns. . . Transliteration .

    . !

  • , - li'iit, -. .

    , . - .

    Drupal 7 ( , Content Const ruction Kit) . , .

    (, , ).

    , it , . .

    . , PathAuto. , . , .

    53

  • ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- _

    , Basic patft* 11 |vi>

  • vwaf4Hnri Hl/lll I ril IUB IVI4I I l} 11 )| I

    >i it i I'M Ii.iiiut I ' 'I " -m* 1 i 41 1.1 1 >>i'H " i iiniuluii Hpi it * ihrn liHMiir

    .............................. - *' *I.6|I

    I

    . - ..... . Title . .

    @ | ; . ^100% "

    I! .

    55

  • . '1 Default comment settings for new content ( ). , , ____________________________ ______________________________ J56

  • IV /I 1

    " I 1. 111 ) . , ...... ............. ............. , -< II , , I I ( - II , .

    | -,

    , in i>i , .

    57

  • I I v *. ( ) | | 1 1 . ( .

    , ; . .

    , . . *1 .

    author Long text ( ). * .

    -1 . -1 ( -1 ). 256. ! . . ,

    58

  • IIO H IilX

    ui' , . . | .

    II , Filtered text | 11 ' 11.'po ), .

    @ | ; . 4 1 0 0 % *

    11 .

    . . .

    59

  • , ;- .

    , . . .

    , .

    , ( ). .

    . => . . Automated alias settings => .

    . . content/[node:title]. :

    , ;

    content/ [node:nid], ;

    [node:nid], , URL.

    60

  • ___j , - - . .w M H in I r n IWM IVII4 I t f | I K i r l / l l i U

    N i i OT:ibiHOii reference/[node:nid]. m ronlcnt/[node:title].

    Y< (Transliterate prior to creating alias i in ).

    9 | 3 po.iu- . 100% -

    61

  • , , Bulk generate aliases for nodes that are not aliased ( , ).

    . administrator . => .

    1 :>.0'.' . 4'TpYKiVt>a,' : in ' . ; !-; eh *.....>* " /

    ,'" - ir.d

  • WYSIWYG

    IMCE

    CKEditor

    , II I ML. , . WYSIWYG- (W hat You See Is W hat You Get , ).

    Drupal , - HTML.

    Drupal . FCKEditor (http://drupal.org/project/fckeditor), CKEditor (http://drupal. 11 rg/proj ect/ckeditor).

    WYSIWYG (http://drupal.org/ Imject/wysiwyg). , .

    - | IMCE (http://drupal.org/project/imce). , .

    , CKEditor , . : => => Wysiwyg profiles.

    63

  • * * RutulHilfl mo

    A,I,m ...... f.inlf'Minl*M |l|iiiil'Wi/|illi^fl|iilt-. j: , 4 . . .

    lit iM uuh

    Wysiwyg profiles

    MHCipyufrttoi Anup

    A Wysiwyg profile is associated with an input l< the editor, how the editor is displayed, and a '

    ormat A Wysiwyg profile defines which dient-side editor is loaded with a particular input format, what buttons or themes are enabled lor few other editor-specific functions.

    * INSTALLATION INSTRUCTIONS

    There are no editor libraries Installed currently. The following list contains a list of currently supported editors: -WVMedttor (Download)

    Extract the archive and copy its contents into s ite a /a l i / l ib r a r ie B /w y m e d it - .o i

    Nat installed.

    w folder in the following k>

    a it e a /a ll/l ib r a c ie a /w y m e d ito r /w y m e d ito x /jq u e r y .w y m e d ito c -n

    FCKeditor (Download)

    So die aclual -ibtary con be found at:a i t e a / a 11 / l i b t a i jl's / t c k e d i t o r / f c k o d i t o r . ja

    Whizzywig (Download)

    Extr#ct the archive and copy its contents into a new folder in the foa i t e e /a l l / l ib r a r i e s /w h iz z y w ig

    So the actual library can be found ars it a a /a l l / l ib r a r ie s /w h iz z y w ig / w h iz z y w ig .j a

    CKEditor. sites/all/libraries/ckeditor. tar.gz, - ftp .htac- cess. tar -xf ckeditor_3.3.1.tar.gz. .

    , => => Wysiwyg profiles, :

    *

    .fAdd content F-dcorti-rt }!

    , chern.

    Wysiwyg profiles

    A Wysiwyg profile is associated with an in the editor, how the editor is displayed, ai

    A Wysiwyg profile define 'cr editor-specific functic

    INPUT FORMAT EDITOR

    Filtered HTML No editor ...Full HTML No editor

    Plain text No editor -

    PHP code No editor -

    INSTALLATION INSTRUCTIONS

    64

  • . II , ' IITML , Plain irxl ( )? II l'ML-.

    11 < > , .

    ru_UTF-8 I i.i I BUTTONS AND PLUGINS ( , >' ). Filtered HTML ,

    I I I .

    *....I 7 65

  • IMCE: => => IMCE User-1.

    :* CV|? ' -'

    * M l (-.1 f.rJ cor.teM nr*iM r*nhxV''

    now iib ;' 'iO-t fbelaA:

    IM C E

    C o n fig u ra tio n p ro file s m

    - . , . Add content => .

    66

  • j : . \100% -

    Filtered HTML. Full HTML, - CKEditor .

    || content .-'Find content .. - -

    I .

    | :

    CKEditor. , . , CKEditor -

    67

  • .. 11 ( ' .
  • File Force

    MCE Mkdir

    IMCE

    IMCE

    File Force

    IMCE Wysiwyg bridge

    111 '||,. File Force (h ttp :// 11 u I >al.org/project/file_force). Drupal 6. , , Drupal 7 .

    (), , . IMCE | . .

    IMCE Mkdir (http://drupal.org/project/imce_mkdir). , IMCE - .

    User-1. IMCE Mkdir : Add subdirectories (-* ) Remove subdirectories ( ). .

    69

  • Settings were Imported from the profile User /

    Profile name *! Adtnini3trator|

    Import settings fiom other profiles: User-1, Sample profile

    Maximum file s ize per upload

    : available. Your PHP settings limit the maximum file size per upload to 2 MS.Set to 0 to use the ma>

    Directory quota

    |0 _____________________________________ [ mbDefine the upload quota per directory. Set to 0 to use the maximum value available.

    Total user quota

    io.........................................................................................................mbThis quota measures the size of all user uploaded files in the database and does not include FTP fil<

    Permitted file extensions

    Specify the allowed file extensions for uploaded files. Separi

    ;e both quotations together or safely ignore this by setting th

    include the leading dot. Set to

    $ | p

    0 Maximum number of subdirectories. , , adminisrator IMCE.

    Use alphanumeric chara To specify file system root, just enter .(dot) character. Use Xuid as a placeholder for user ID. Ex: users,'userXuid creates directories such ai To remove a directory from the list, leave the directory path blank,

    nt more flexibility in directory paths you can e>For php execution your directory path must start with php: and the rest must be a valid php code that is expected to Ex. php: return 'users/'. 5 user> name; defines users/USER-NAME as the directory path. multi-level directory example php: return dateCY*. Suser-> created).'/'date('rn'. 5user->crea te d )7 '^user->uid; defines MEMBERSHIP-YEAR/MONTH/USER-IO

    | : '. t*U00%

    User-1. .

    70

  • , 1 :I < | < > l)l.l,p ://www.HMH.caiiTa/inice.

    11 .

    C o n fig u ra tio n p ro file s

    PROFILE NA4E

    Uc-1

    Sample profile

    Administrator

    Add new profile

    R o le -p ro file a ss ig n m e n ts

    USER ROLE PLBUC FHJES j ;

    Sue maaiteoarce account User-I User-I User-I

    administrator Adrr.r straw * Admin strator * Admnstrxo* -

    : , " "

    - ................. -

    Ussier prof.les is user rcles tor a/si'ab e file s\Jtems Your 1etaok Me systerr is *

    COMMON SCTTINCS

    5) | ;

    . . File browser ( ).

    -1, :; Th-nanal . X : 4>. ^ ; ''0 ^ , rtrcgww s . : .... : : / . V : : . ; j j ;. .; - j... _ _______ ________________ _____ ...:. jf * .

    IMCE .

    sqrus .

    71

  • * M i Itaa* .... ' > tkvnt

    SQ rb'trn

    | *,| Shortcuts t (

    Management ^( 5 Thumbnails X

    6 files using of unlimited quota

    ^ { : . ^ 300% '

    sqrus, , . /sites/default/ files/sqrus/ . , csv- , xml- . , File Force.

    , (, , ) :

    /download/sites/default/files/sqrus/ , ;

    /download/sqnis/ , .

    ( download ), ( ), . , , . , , 6.x-l.l-beta3 . , , . -

    72

  • , ( i , . 15 .-1.1 46, *- pa w ;w j Manage directories - : : l f ................................ * ...........

    1 1 pictures delo2 xml 1.33 0 0 2010 - 19:29

    ; atlas.xml 1.33 0 0 6 2010 - 19:30

    I . *4100% *

    , , , . . . URL-. , , . ( , ) . IMCE.

    73

  • 11 . (K l io in io c , ().

    URL , .

    , :

    , . :

    .

  • VIEWS

    Views Ctools Advanced Help no Views view

    , , . :

    Views (http://drupal.org/project/views) . SQL . , , Views;

    Ctools (http://drupal.org/project/ctools) , ;

    Advanced Help (http://drupal.org/project/advanced_help) Ctools Plugin Example.

    , , ( ) , .

    . Views. => Views, Advanced Help => Views.

    75

  • (belting Started. I Advanced I l-l|> , Views . Getting Started , , .

    . , . . Save () .

    View . . , , . View.

    View . => Views, Add new view () .

    , View . View ( !). Next ().

    76

  • [ )

    Management

    .

    Getting etaited thou* nw to Viowi, it can b* a complex system that appears totally overwhelming- The good news is that the UI is designed to compartmentalize everything; Hu means that for tile most part, you can ignore the parts you're not interested in. Start small and build your way up. Because of this, the dit UI can m overwhelming at first, but there are really just a few things you have to know. The rest you can find through exploration. The Views Edit UI image, below, gives an overview of what you'll find on the edit UI.

    Notes: 1) Every view has a number of displays which represent where output will be placed. If you're familiar with the original Views 1, you could set a view to be a 'page', with a URL (path), or a block that could show up m a sidebar. With Views 2, you can add as many displays as you like. In addition, you have the default display which contains the basic settings, but doesn't actually show up anywhere. 2) When you dick on the link for an item, a form will open up. For browsers with smaller resolutions, you may have to scroll down a little to see this form. If a form is open, the item its attached to will be highlighted. 3) Overrides mean that a particular display is not using default settings. When you create a new display, many of its settings will start off using default values. This will be indicated by italics and a lighter color. I f you change these values without first overriding them, you w ill change the default value for all displays that use them. 4) Some items, particularly styles, have additional settings. Ordinarily when you update a style, if it has additional settings you will automatically see that form next. Often, you wHI need t o go directly to those settings. S) You can safely leave a view page to

    0 | : IMS

    , .

    . - 11 Fields () I ields. :

    - < : Advanced help - ....... |

    Aiiil content Fmd content 4 Erfn -roifi

    Views Views

    View

    names for this view. If overriding a module provided view, the name must not be changed or instead a new view will be created.irate unique theming template

    View description

    i This descnption will appear on the Views administrative 01 to tell you what the view is about.

    View tagF olEnter an optional tag for this view; it is used only to help sort views on the administrative page

    View type

  • Fields: body i c k c t ; Fields: field_author ; Fields: field_image .

    . .

    , , . .

    . |.. ", ' Adv4r,d 1|. . '1

  • 111, . , : .1 . - , . . - 1 .

    : : = ;

    : Published or admin , .

    79

  • .. .... . ...... ......... . ... ........ 0.......................... ...... I - 1" 1 . li.l h*l 'tut ' ih ir il tu ilfll

    Aili) . ................ ......................... I 111 ttlMl 1.

    E d it v ie w s q j e f e r o n c o s j i s t *>

    . Vlcwi

    Vlrw \q re lr rrn i es l ln , displaying Hems o l ly|w -.

    Default* Default* On'jut iM0> ibr >A >*View tetting* 3a

    ..

    j i in o p i Cion* N ew Vi

    * Rrlalionthipt + 1

    Use grouping No

    Click on an Item to edit that item's details.

    | *

    Defaults. - , (display). Add display. . URL, . Page settings . references View.

    A : . : i ! j - Bulk exporter Advanced help , thcrn

    ' fc'Jct sbcrtc-,"

    SQ

    .fhpm

    1 .|

    Management1'

    SQ - " - / . , , , .

    .. , ISO/IEC -JTC1, EZWIM B.V.,

    "SQ - " ( .

    .

    , . . "" , .

    | :

    80

  • references - i.i , .

    , View. , , .

    /

    Panels (http://drupal.org/project/panels). , . . , , . . , .

  • .info

    .info

    page.tpl.php

    page.tpl.php

    , , . .

    :

    ;

    ;

    ( ) ;

    ( );

    ( );

    .

    82

  • !.:

    ;

    ;

    HTML - .

    ( ' - ('! , , |. ,

    . , - Panels. , ...

    , . | I .

    - | . , , -1.1.

    11 , , - . , - icniioe . Theme Edi

    tor ( http://drupal.org/project/theme_editor), , I I. . \ CVS FTP.

    . | :

    /_;

    / images ; logo. png ; page . tpl. php php ;

    ;

    screenshot .png ; ;

    83

  • , I ti 'M,I. i n ini;

    s t y l e , c s s - .

    , . ( ) . . . : page.tpl.php Hauia_TeMa.info.

    _&. ochoiiJ ini-. : regions features. : = ; description = ; version = 1. ; core = 7 . Drupal 7; engine = phptemplate ; stylesheets [all] [ ] = style. css

    ; scripts [ ] = iran_images. j s

    : screenshot = ; base theme = !

    ; php = ;

    . .

    . , , .info- -1 (features) (regions). ( ), .

    Drupal . - | , . . 84

  • / View *. - mi 1'> :

    = Header; = Left sidebar; = Highlighted content; = Content

    ;

    = Right sidebar; = Footer; = Help

    . , , . m -:

    regions[sidebar_first] = Left sidebar regions[header] = Headerregions[highlight] = Highlighted contentregions[content] = Contentregions[help] = Helpregions[footer] = Footerregions[sidebar_second] = Right sidebar , -

    I ( Drupal 6 , ). , . . , . :

    name = SQ task controldescription = Base theme for SQ site.version = 1.0core = 7.x

    85

  • < t u ) i iii p h p t e m p 1 . 1 1 1

    stylesheets[all][] drupal fix.css stylesheets[all][] = style.css scripts[] = mm_images.jsregions[sidebar_first] = Left sidebar regions[header] = Header regions[righttop] = Right top corner regions[highlight] = Highlighted content regions[content] = Content regions[help] = Help regions[footerl] = Footer top 1 regions[footer2] = Footer top 2 regions[footer] = Footer regions[sidebar_second] = Right sidebar .info-

    page.tpl.php. HTML-. .

    page.tpl.php

    .info-

    .info-

    . page.tpl.php . :

    8 6

  • p h p

    $ Id $

  • Ail'l if'ilMil ' t>,| I. ,|1 * " I 1" ' .IH4IIHIW II ,

    , kiu i

    Cache pages for anonymous use

    up

    Cached cages will not be re-created until ai

    Expiration o f cached pages

    BANDWIDTH OPTIMIZATION

    :e and number of requests made to your website.

    Aggregate JavaScript files ii

    . , < .

    Bull- Exporter , !J Advanced help . r hem. [

    ; Add content-; find content ; Hit $riv 1

    DISABLED THEME

    Q whwvah j - if f- i

    iJSSBm

    SQ task control 1.0Base theme for SQ site.

    Enable and set default

    ' jv

    |

    , , .

  • ............. ..I' lilHIPII I u illll.

    EcJit shor'tdife

    |

    ( ), Drupal .info-. , - imi'm , 11 - it -. .

    ' > Bulk Exporter

    1 v i te n s ^ F if ; .-.m '- . - . t 1

    Advanced help

    , ch ern .

    . E tf i. i 'io r '-u ts . ..... "m.rrarm

    > .. .| : a n

    9 ->

    1

    Q !

    No from page; conjorthasbeea created yet.

    ,

    1.

    ! 8(9261213-l|6-ii6

    E -n a il in fo 0 s -q .ru

    ;:-: 1 !

    : @ [

    - . t- Drupal . -

    89

  • npaitin, drupal fix,css u .info-. 110 ! , :

    tbody {border-top: ;

    , . ( hi . , Garland. , | . drupal_fix.css :

    .toolbar-menu {font: 76%/170% Verdana, sans-serif;

    }

    .toolbar-drawer {font: 76%/170% Verdana, sans-serif;

    }

    .

    8(926)213

    E -*a ll ln foes-q .i

    ~ ........... l.fflp"!Management

    No front page content has been created yet.

    -J

    !

    90

  • 11 :

  • View

    t ()

    , :

    => Content => ;

    => View => Content => ;

    => => => .

    , .

    . , , . . Full HTML. Content, . , . node.tpl.php.

    92

  • 111 >11 hi VMM node.I pi.php: ,'|jhp

    / / $ l d$

    I>1 ip print render ($content) ; ?> liiiiiioM

    I >i 111>al , , ,1 , . , . I I .

    . . - ''( > (|) , -

    ....... . , , -I . ,

    | < . View.

    ViewII -

    iiioi), View. I , , View Theme:Information Style settings. , .

    Change them e

    Display output: views-view.tpl.php, views-viewsq-references-list.tpl.php, views-vtew--page.tpl.php, vlews-view- sq-references-list page.tpl.php, views-view.tpl.php, views-viewpage-1 .tpl.php, vlews-viewsq-references-listpage-1 .tpl.php Style output: views-view-unfoimatted.tpl.php, views-view-unformattedsq-ieferences-list.tpl.php, views-view-unformatted page.tpl.php, views-view-unformattedsq-references-listpage.tpl.php, views-view-unformatted.tpl.php, views-view-unformatted page-1 .tpl.php, views-view-unformattedsq-references-llstpage-1 .tpl.phpRow style output: v iews-view-fields.tpl.php, views-view-fieldssq-references-llst.tpl.php, views-view-fields--page. tpl.php, views - view-fleldssq-references-llstpage.tpl.php, views-view-fields.tpl.php, vlews-vlew-fleldspage-1.tpl.php, vlews-vlew-fieldssq- references-listpage-1 .tpl.phpField Fields: body (ID: entityjd): views-view-field.tpl.php, vlews-view-field--entlty-id.tpl.php, views-view fieldsq-references- list.tpl.php, views-view-fieldsq-references-listentity-ld.tpl.php, views-view-fieldpage.tpl.php, views-view-fieldpageentity- id.tpl.php, views-view-field--sq-references-listpage.tpl.php, views-view-field--sq-references-listpage--entity-ld.tpl.php, views-view- fieldpage-1.tpl.php, views-view-fieldpage-1 entity-ld.tpl.php, views-view-fieldsq-references-listpage-1 .tpl.php, views-vlew- fleld--sq-references-list--page-l--entity-id.tpl.phpField Fields: fieldjmage (ID: entlty_ld_2): vlews-view-fleld.tpl.php, views-vlew-fleld--entlty-ld-2.tpl.php, views-view-fieldsq- references-list.tpl.php, vlews-vlew-fleldsq-references-llstentlty-id-2.tpl.php, vlews-vlew-fleldpage.tpl.php, views-view-fieldpage- -entity-id-2.tpl.php, views-view-fieldsq-references-llstpage.tpl.php, views-view-fieldsq-references-listpageentity-id-2.tpl.php, views-view-fieldpage-1.tpl.php, views-view-fieldpage-1entlty-ld-2.tpl.php, views-view-fieldsq-references-llstpage-1.tpl.php, views-view-fieldsq-references-llstpage-1entlty-id-2.tpl.phpField Fields: field.author (ID: en tityjd. 1): v iews-view-field.tpl.php, views-view-field--entity-id-1.tpl.php, views-view-field--sq- references-list.tpl.php, views-view-fieldsq-references-listentlty-id-1 .tpl.php, vlews-vlew-fleldpage.tpl.php, views-view-fieldpage- -entlty-ld-i.tpl.php, views-view-fieldsq-references-llstpage.tpl.php, views-view-fieldsq-references-list -pageentity-id-1.tpl.php, views-view-fieldpage-1.tpl.php, views-view-fieldpage-1--entlty-id-1.tpl.php, views-view-fieldsq-references-llst--page-l.tpl.php, views-view-fieldsq-references- listpage-1 entity-id- 1 .tpl.php

    Rescan tem plate fifes

    te files, it is necessary to ;e Drupal aware of the ts. The highlighted template

    3> | :

    93

  • , |(. ( , :

    views-view.tpl.php View. , ;

    views-view-sq-references-list.tpl.php View I sq_references_list;

    views-viewpage.tpl.php

    views-viewsq-references-listpage.tpl.php View ;

    views-viewpage-1 .tpl.php || View ;

    views-viewsq-references-listpage-1.tpl.php . View ( i p.i

    , , , . , . |

    ).

    , , . erences-list.tpl.php. Display output.

    | . 1^00% *

    94

  • :

    I display output View. - '. ($rows);

    Style output , - tcii. View;

    Row style output , ;

    l ield... . - .

    11< ( -, I' in I views-view-fieldssq-references-list.tpl.php , Row style output. . theming information Rescan template files , , . I Rescan template files Drupal .

    . , , . .

    , .1 . . -I mil :

  • * $l Uld->c 1.: The s a l e c l a s s i d l.o u s e .

    * $ 1 ield->handler: 'I'he Views field handLet object controlling this field. Do not use

    * var_export to dump this object, as it can'I handle the recursion.

    * $field->inline: Whether or not the field should be inline.

    * $field->inline_html: either div or span based on the above flag.

    * $field->separator: an optional separator that may appear before a field.

    * $row: The raw result object from the query, with all data it fetched.

    *

    * 0ingroup views_templates* /

    ?>

    content; ?>

    content; ?>

    96

  • td wi d t h 1.00'.. c o ls p a n 2 vu I ig n "t.op">< hr s i z e - l>

    < / t d >I

    , $ f i e l d s I inn (|), Theme:Information. I'd in. . - I views-viewsq-references-list.tpl.php.

    11 , .

    I K i l l i n '

    |11

  • . 11. (|>aii. I iviannee it , in - :

    * *

    98

  • * < / d i v >*

    I *

    * To check for all available data within $search, n i" the code below.

    *

    *

  • 11 n;i , ! |1 . . , . 11 , View . .

    > t (). ' . , . , Go. t (). tpl.php :

    . english mcs sage . => => => .

    LS ] SQ - Windows Interne! Explorer

    * -000

  • 11 (> 1 .

  • Devel Theme developer

    -

    , . => .

    * ! , Dull E-porter Adyancedbelp

    t F.Y.ij -: : ^ |.|,

  • 11 UviKiiyit I , , , .

    Specify page* by using their paths, Enter ore path per line The '*' character is a wildcard Example paths are bJogtoi the blog page and , * for every personal blog is the front page If the PHP opbon is chosen, enter PHP rode between . Note that executing incorrect PHP code can break your Drupal site.

    @ ! : . HlOOK * .

    , , . , ( , .

    ( -) HTML- - | tpl.php. , , . | , . View.

    Devel (http://drupal.org/project/devel). , : Devel Theme I >cveloper. I hemer info. , .

    , - I . .

    103

  • ------------- ---------------------------------------V , I> page.tpl.php.

    1 pagefront.tpl.php. . , . => > . Drupal , .

    11 , Theme Developer. . .

    '. , . , , .

    , . , pagefront.tpl.php pagenode.tpl.php, page.tpl.php. .

    . , them e_. template.php , . . Devel , , , .

    ^ Devel , ( ) . .

  • node--type.tpl.php

    , !. . , , , , , . nodetype.tpl.php.

    , , . , Find content ( ).

    BuU< -porter Advanced help , chem.

    Add op^r* . ,>.'-.'41|

    0

    106

  • I icei. 11> ;1 , - f . . , ' I . , utii .

    Q Mnimgement

    "SQ - " - / . , , , .

    SQ MS Project . SQ . SQ - .

    .. , ISO/1EC JTC1, E7WIM B.V.,

    0 | : - 4^ 100%

    , , . , -I .

    nodereference.tpl.php. HTML-. :

    :

    ctable border="0" width="100%" cellpadding="6">< tr>

    107

  • ' t i l width-80'* Vd 1 iq n "top"

    < / t d >

    < / b x / f o n t >

    Drupal (mu

    , ).

    Q . 8(926)213-ii6- E -n a il in fo es-q .ru

    M a n a g e m e n t

    "SQ - " - / . , , , .

    SQ MS Project . SQ . SQ .

    .. , / JTC1, F/WIM B.V.,

    |

    108

  • , . 11 |. => .

    Bulk

    ! vHHE'*1 *

    . .

    109

  • li .noii i./ , on : ( ) (FULL CONTLN I . i .

    | ; *. *^ 100%

    .

    .. , / JTC1, E/WIM B.V.,

    5 j ; .

    110

  • \ I! , IftMfiyp.

    , ... Ii I pl.plip, ,! .

    > - Hi.i 11. .

    11 1 1 .

    I ( .1 . - m > Page ! i . , , . Page .

    I ( ' node-type.tpl.php. , . .

    I page-front-tpl.php. page-tpl.php. , . , .

    ? , Drupal . Drupal, .

  • Drupal

    Jump Nice menus

    , . .

    (www.s-q.ru) :

    , ;

    ;

    ( ).

    112

  • , . ! I npal.

    , id, => .

    @ | : . 100%

    :

    I Main menu . . , .

    2. Management . , . Drupal.

    . Navigation , . .

    4. Secondary menu , , . , .

    113

  • ,r>. I Js ,/i 1111 hi 111, noii . ii< > i , , ii.i < .

    , . .

    6. . .

    , Main menu, Secondary menu, .

    11. , , .

    . , , . , .

    114

  • 1. Theme developer li.iv'll :

    theme_menu_item_link ; theme_menu_item I I 1 theme_menu__tree

    ; block, tpl .php

  • , . . - inoiio , - .1 , , , .

    Jump (http: //drupal. project/jump), - . , . , .

    . - .11 I . Jump menu. ,1 - i.i , URL . .

    Nice menus (http://drupal.org/project/ ice menus), ^ . , .

    . , (title). $link [ 1 attributes 1 ] [' title' ].

    # , . , .

  • Drupal 7

    , . . .

    , Drupal 7 , . : , Drupal 6, , Drupal 7. . , ...

    ? . , , , . , . , . ?

    118

  • I .IkcOi>m11 -II
  • . .') , ! | or .

    (|) .

    => . ...... , , ;4 | . , , ! . on pi , .

    , ( , , , | => .

    , . (). .

    . :

    , . . , , , . , . , ( ), , , ;

    . . , . , ;

    ( ). , -

    120

  • I locjic .noio $ c o l o r . II . | cm :

    , , .

    , Drupal 7. 4 , . , ( ), .

    - :ed help ' -

    Add tenter,t;

    ISQ ... j ^ Tanonomy terms on - i Drupal * | CMS Drup... I JBj

    ; field

    -

    - i

    122

  • I lanpitMop, , , , , . - ! \ , . . , , | . , - .ix , , , | . -, - | , .

    . , . , View . . .

    ^ 30-40 . , , 250. 100 .

  • , . , , , , 90% . . .

    , , , . , :

    124

  • Backup and Migrate

    Files

    :

    Backup and Migrate (http://drupal.org/project/backup_migrate) ;

    Backup and Migrate Files (http://drupal.org/project/backup_1111 grate_files) ; 7, ...

    PEAR. README.txt Backup and Migralc Files. .

    , . => Backup and Migrate. Backup and Migrate , , .

    : , , . sites/default/files . , , , . Drupal .

    , , .

    126

  • : Manual Backups Directory. . , .

    Destinations Manual Backups Directory.

    1 ** 1 X I lenSeiKh' P *J

  • . 1( i. Mid , I iiii 1 11>it.ii>1 ; . i < | >; i ii./ >, , . : sites/default/files, ? , .

    , list files . , list files Manual Backups Directory.

    1 I SQowpo- 9 Taxoro^ terms one peg.. ^ Drupal Potcmi! Mb Drup... 8 j | S. X

    Pnnx "InvSai.'tk s" i i j <

    Backup and Mi

    FILENAME . - 1

    SQ-2010-07-13T12-08-44.mysql

    SQ-2010-07-13T12-08- 34.mysq!

    13 . 2010 - 12:08

    13 , 2010- 12:08

    40 1.54 download restore

    50 1.54 download restore

    . . . Shedules. Add Schedule.

    Number of Backup files to keep. , , .

    . , , Create new profile => Add .

    128

  • 'MOO ' p4

    find u>Nt*Ot... *

    B a c k u p a n d M ig r a t e

    Mi'AiHH ft'lll filiurtw

    > Backup and MigratP? Hotir(s)

    S< hrdulp Name

    iAPetctiHir. chpm , ... shottc-jtt *:

    se ttin g s ProfileDefault Settings

    Create new profile

    kup every ' ' 3yS

    Number o f Backup files to keepIP__ jThe number of backup files to keep before deleting old I

    DestinationScheduled Backups Direcloiy ;

    Choose where the backup file will be saved. Backup files

    :e backups. Other files in the destination directory will get deleted if you specify a

    Advanced Options.

    L fJ L l . i/opweJitm P !

    '* |[' |SQo*npo_

  • . ,

    . , . ;i ;i , , .

    , nodetype.l |>1 php , . . m c i i > ( , URL path).

    FELT"' L J C M , httpV/? .|228:80. torn ........ .

    i i

  • I locvie .

    , , , .

    . :

  • $menu menu tn
  • | * :

    _____i__3

    Q } O l . ~ ] ] ! ]

    M a n a g e m e n t

    ' iiuli^uHib ' mmiiwii,

    ?

    , $link [' link' ][ ' h r e f ' ] , , node/46.

    / .

    Date

    Date

    View

    (Teaser)

    View

    ?

    133

  • ui'io i n, : , 'i'. .

    . ? ei 1 .

    View . .

    => => / 1,(1

    @ | : . ! 1100%

    .

    . , . , .

    Date (http://drupal.org/project/date) . 5.3, .

    http://drupal.org/files/issues/date-6.x-2.x-549884-30. patch. Drupal 7 .

    134

  • Date I nil I ( K< )./| I.K 11 x it, CIO, , .

    (' .

    I ( C'ps't*' ' Aeva~ced halo *-> !.. - . . 7 : ... . . . . ,

    * DATE/TIME

    ;

    Repeat API 7.x-l x-dev

    7.x-1 .x-dev

    Oef.nts CCK fields ard w dge:4: Date API () : Date Tools ()

    A Date API that can be used by other modules. : Date (), Date Popup (). Date Repeat API (). Date Tools ()

    Enables jquery popup calendars and time entry widgets for selecting dates and times.; DateAPj ()

    A Date Repeat API to calculate repeating dates and times from iCal rules.: Date API ()

    Tools to import and auto-create dates and calendars. : Date (), Date API ()

    -

    * 8

    Devel ^ 1 ^ Various blorls pages, and f n^cti'jii* (or developers

    Tpe^ ytrce Wen j ()

    Devel generate /< 1 x dev Gcnera'e dummy users, nodes, and taxonomy terms

    0 Devel node access / X-1 x-dev Developer blocks ai d paje illustrating relevant rode arress records

    Performance Logging / x 1 x-dev loas detailed aiij/oi summary page eiieiatior time ird memory rorsumptior for requests.

    | ...' si

    (Date).

    ; COMMENT >5

    vf :

    .

    !* Body body Long text and summary

    j. j field, idate (a-z, 0-9,

    ! Date j

    Text Reid with Date Pop-up calendar ;

    - ne - *; i - . - i

    : ' :

    135

  • l i './. :

    I / hiilk ( v | > ii 1 -< ......-In A-|v ,i. .| li.li II.....ini. ilipril

    AHyAirfJulbMCllt l

    . Time zone.

    : () f i e ld _ d a te ; f i e l d d a te .

    @ ( : . %100%

    136

  • ! (1(1/ inm /yyyy. 11 I ,'*/07/2010.

    11 .

    @ | *. . % 100% *

    . - , .

    . it 2001 . .

    , . HTML-,II .

    , - [ .

    View. View , View . vibi ( ).

    , . .

    137

  • 111.ik, View

    @1 | : . I***

    ? , , , .

    , news.litm . . , , . views-viewsq-task-con trol-news.tpl.php views-view-fieldssq-task-control-news.tpl.php.

    !, . (teaser).

    . ( ) .

    . Length of trimmed content ( ). , .

    138

  • ' I , , , < ! - - - -> . ') , , I . . .

    ...

    , . - . , .

    , View. Defaults : Teaser.

    , Teaser, .

    : views-viewsq-task- control-news--block.tpl.php views-view-fieldssq-task-control-news block.tpl.php.

    139

  • .

    , N , ! . , .

    API

    Webform

    Drupal API , . API , . : , . , ,

    140

  • i|< 11 ( ) :

    I u n c t i o n ($ f o r m _ s t a t e ) , .

    p r i n t d r u p a l _ g e t _ f orm ( ' ' ) . tpl, , s ;

    ! u n c t i o n e a o p _ v a l i d a t e ($form, &$form_ s t a t e ) . f o r m _ s e t _ e r r o r ;

    f u n c t i o n _ ^ ($form, & $fo rm _s ta te ) . d r u p a l _ s e t _ m e s s a g e , d r u p a l _ g o to .

    I , http://api.drupal.org/api/drupal/developer-top- i( s-forms_api_reference.html/7. - IOII HTML, . , , radios - radio, checkboxes checkbox, fieldset . , fieldset , Garland. markup . .

    . . , . , . drupal.org.

    . template.php :

    141

  • f unc t ion Hq t e a t I: r m ($ 1 tni Ml . i t e ) {

    $ f o r m f ' d e s c r i p t i o n ' ] a r r a y ('#type' => 'item','#title' => t ('A form with a submit handlei'I

    ) ;$form[1 name 1] = array(

    'type' => 'fieldset','#title' => t('Name'),' #collapsible' => TRUE,'collapsed' => FALSE,

    ) ;$form['name'][1 first'] = array(

    '#type' => 'textfield',' #title' => t('First name'),'#required' => TRUE,'#default_value' => "First name", 'description' => "Please enter your first

    name.",'#size' => 20,'maxlength' => 20,

    ) ;$form['name']['last'] = array(

    'type' => 'textfield','#title' => t('Last name'),'required' => TRUE,

    ) ;$form['year_of_birth'] = array(

    '#type' => 'textfield','title' => "Year of birth",'description' => 'Format is "YYYY"',

    ) ;$form['submit'] = array(

    'type' => 'submit','value' => 'Submit',

    142

  • sq_test_form, .

    , , :

    , - . . , .

    , .

    .-/01 1>irr - J (. 1 SQ_ X 1 (J | SQ our... j Polfc community votin,,, [l SQ - [yn... gjl 52 - * | S i * ' # ^ - *

    A * * > Advanced help , chern . 1lliontont , Find content ' , -1*, .

    -'i -

  • .i I I ay ( ' @ f i r ;il ' *> $f 0 1 m s t a t [ 1 v a l ue['first']/ '@last' > $form state['values'' 0 y e a r o f _ b i r t h ' - > $ f o r m _ s t a t e [ ' v a l u e s ' ] [ ' year cl b i r t h ' ]) ) ) ;

    $ f o r m _ s t a t e [ ' r e d i r e c t ' ] = ' / n o d e / 1 ' ;

    d r u p a l _r e d i r e c t _ f o r m ( $ f o r m _ s t a t e ) ;

    function sq_test_form__validate ($form, &$form{

    $year_of_birth = $form_state ['values']['year nfl birth'];

    if ($year_of_birth && ($year_of_birth < 1900 || ] $year_of_birth > 2000)) {

    form_set_error('year_of_birth', 'Enter a ye. between 1900 and 2000.');

    !, .

    > .

    template.php , .

    , .

    http://api.drupal.orn, api/drupal/developer-examples-form_example-form_example_tutorial inc/7.

    , .

    node/1.

    144

    I

  • API . , Webform (http://drupal.org/project/webform ) . , .

    Poll

    , it I )rtipal 7 . Poll, , .

    1' rind cor.ter,* . 1*>-

    : OpenID

    Exporter Advanced help

    .

    Displays the Orupal administration interface in an oveilay

    Global Redirect (), Pathauto ()

    17 filter7.0-alphaS

    PHP . !}

    W Poll7.0-alpha5

    r Profile7.0-alphaS

    ()

    p RDf7.0-alphaS

    Enriches your content with metadata to let other applications (e.g. search engines, aggiegators) better understand its relationships and attributes.

    17 Search 7.0-alphaS > 33- Hacrpoi'

    F Shortcut7.0-alphaS

    Allows users to manage customizable lists of shortcut Imks. # .

    Statistics 7.0-alphaS

    oai Forun

    avides a framework for unit and func

    , . Vote on polls View voting results.

    6 Drupal 7 145

  • , ? i , README.txt ! , Advanced Help.

    . \ - , : | ?

    1.11-'92.168.00.8:8// : ______ \ |

    " Bulk Exporter ' Advanced help , (hem

    Adrt content Find center* .-- . * . * ' 1

    >

    ?

    [, . .

    ,

    I !

    (

    ;

    *

    146

  • 11 , . I \ .I , ( - ,111,1 .). .

    , HTML- , . Devel.

    , I >11 vote.tpl.php, poll- \ole - block, tpl.php. block.II tl.php, block-poll.tpl. I>111>, block-poll-0.tpl.php. , | > .

    - : , . . ( . -). , . , - . , I 1 . . , - .

    ^ ________________________________________________________ , . : http://drupal. org/node/211269.

    BookMadeSimple

    147

  • ( c 11hi111111.1 .no, , xn|tfyfl . 11 .!11. 1 . . 11 , .

    ? , . * .

    , ( ) < , . . .

    Book m i i . , .

    Honk page. . ' , , , .

    .

    148

  • ? , . . . , i i . . .

    , .

    920031/-1*/.*/ 1 * * 1 * 1 "live Secrct:'

    - | SQ... X Pajpnuemu |SQicoT... ; Poll community votm-. [ SQ- lyn.. 5.2- |S... [ l^i ' Q # I-;} * U |i i ,f :

    1 ] |

    Cipyxrype - a im > . 1 *- Advanced help 'i.-'Hr.j* >.

  • I I 11. * ii. . () (|)* I ..... .

    |/. 1..$*- -

    ( f (* | SQ ... X | 1SQ . [ Poll: community votin.. | V} - ( | 5.2

    ,____ . I | ?.| :|I - I .1 ' . ...

    - 1*1)46 .

    , - |1> , . , I lany. , . - => . . .

    ' t l x 1/7

  • BookMadeSimple (http://dr npal.org/proj I, MadeSimple), . Drupal 6 ? . . Drupal 7, . . , ,

  • . i ll, oil :

    , ;

    ;

    View ;

    ;

    .

    I . , Node SQL-. , , , . .

    , , . Search Files .

    (Google)

    . , , Google, . Google Custom Search Engine Google CSE Drupal Search API. To , , Google, Drupal. .

    , .

    1. . , , .

    2. . Google , . , -

    153

  • inK'ii ., v< i 11 > (( .

    , . , . * XML sitemap .

    (Solr, Lucene)

    Drupal , . Apache Solr Lucene. , Java, , , Apache Tomcat. Il 11' . \ .

    1. . / . .

    2. .

    3. , .

    Lucence (Porter-stemmer). Apache Solr Apache Solr Multilingual.

    : Lucence (, 10 , , 1000, ). Apache Solr . , , Apache Solr.

    , , .

    154

  • Statistics Statistics Advanced Settings

    (Dashboard)

    . , , , , , , . Statistics.

    Statistics Advanced Settings(http:/ /drupal.org/project/ statistics_ad vanced). , , .

    Drupal 7 , , .

    , , => , .

    155

  • Statistics Advanced im , . ,.... Brow s cap (http://drupal.org/project/browscap). . , . i . . , , , ( => ).

    156

  • I 11|)('|) I I I l l |) l l yC TilllO IIK (' .

    I \ I (- ..

    111>11 . , , - MI ( => -II ).

    | SQ... X | SQ .. I ^ community yotin.- SQ - [... ; 52 - > [ 5... ! ] * ? 'dr * * Q

    |1*

    innt

    Advanced help , chern.

    1 --------- . ' " + Install new module or theme

    : 0 ( )

    Drupal .1Drupal 7.0- alphas !

    & - ' ?.0-alpha6(2010--09)

    : Stock, Book, Co/or, Comment, Contextual inks. Dashboard. Database logging. Field, Reid %QL storage, field VI. file, filter. Garland, Help, Image. List,' locale. Menu, Node, Number, Options, Overlay, PHIfilter, Path, Poll, RDF, Search, Seven, Shortcut, Standard, Stark, Statistics, System; Taxonomy, Text, Toolbar, Update manager, User

    advanced_help 7 .x -K x-d ev (20! O-Map-O?): Advanced help

    Global Redirect 7 .x -1 .x -d e v

  • , :

    1. .

    2. . : , Drupal.

    3. .

    4. , .

    , , .

    . , . , . => .

    , , . , , . , , , .

    158

  • , , :

    URL. .

    159

  • , infll , i ih{ .

    . .

    ( => ).

    . , , , , , , .

    , .

    , : . .

    160

  • " w o n / ... .,_________________________________________________ __ .,L ! 2mptlltfc /I |yn (jf |1J ( *)l ' ' *+ * I'Jwhmw JJ'*'*"'

    | . . ' ? 1/92680.8>/()/

  • Dm|>,il /

    & |* I ........ .... rm.wvtyvWln. |(Jl V) - f i MMIV | ' (J ** ' > '

    *< *: __________ t e a ] j .......... ... .................................................................................................................................

    , , . , , , . 11. . , .

    1 (52

  • 1 I lO Bblt)

    l; .

    11 , .

    , , , , . .

    *'0 ipoc I SQ Window, Internet Ejplofei

    , * . t * http^a68J00A801J/node/add/poa - I X I 'iii'f Sftj'r.V

    | . 'j ' [

  • -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    , II* Mil .

    , cipii , . .

    3

    .

    , , , . , , , .

    , , , .

    , - .

    Drupal 7 (Dashboard).

    , .

    164

  • ( ) .

    , .

    "ui ^ ifeyl* 1^ ) SQ... X | SQ - Polb community votin... jSQ - [yn... : 5 j - [S _ j fflj * 0 7 * {^ , *

    :______ [ *-* | '

    Advanced etp , chern. A U ci'tT - find content

    1 H'VMMiirm 1 iioSa/IA'iam ! * |

    < * 4+ Customize dashboard

    Recent content

    - chern

    chern

    . chernctiem drupaluser

    chern

    chern

    chern

    2cherr

    , , .

    165

  • 1)1|>WI> Unpot I SI).., X fV PnpftlMHM I M) ,... Poll; corrmunlty vot ... ISt) xiH [.. ley Hr,., ' 1 f t * U ' # 1 '

    < : j [ 1101 ]

    Drag and drop these blocks to the columns below. Changes are automatically saved.

    I no j I Language switcher (User Interface text)

    j - j | * Shortcuts I ~ Drupal I + I * Management4* I *5*

    Recent content

    I

    ,

  • Logging and errors Cron

    , . . => => Logging and errors , - 1 ( ).

    167

  • (" > : ) , 10.'$ 4( ( , Driipal ).

    3 & ^/ KM011/nod*/*dd/poll

    j8Sl'!^CowbOnpot|SQ_ X |SQ ... ]j*i Poll: community votin..: j@ SQ - iyn... 5.2 - 15:_ j

    - | ! A | Stair*' ' 0 * # ' v li..*

    .............................................. - " ' i

    Affiliated content * Advanced help , them. k-

    A4d cortent r.nd ronleot 'S*Cd.t_.t irtri,.-. 1

    How this is used depends on your site's theme.

    *i n lo @ s - q . r u ________________________________ 1 e-mail , . ( , )

    , I *http7/213.132.95.228:8010/ Inode , . , node.

    Number of posts on front page10 -

    The maximum number cf posts displayed on overview pages such as the front page.

    no 403 ( )http: //213.132.95.228:8010/ iThis page is displayed when the requested document is denied to the current user, leave blank to display a generic access denied' page. I no 404 ( )httpi//213.132.95.228:8010/ iThis page is displayed when no other content matches the requested document. Leave blank to display a generic page not found* page.

    cron

    => => .

    168

  • 11 I cron , it hi (p://drupal. org/getting-starlecl/6/install/cron. On , :

    ;

    ;

    . .

    , , .

    => => .

    j SQ - Windows Internet fiplorer

    K .alitiQ iS'M c/fim eeiooaeau/nodc/.dd /poii | X | l i* Search" ft,

    There are two types of and configured before thi

    Maintenance mode rr

    s: simple and advanced. Simple actions do not require any additional configun >n be used, because they have options that need to be specified; for example, dvanced action, select the action from the drop-down fist in the advanced acti

    d are listed here automatically. Advanced actions need to be created I an e-mail to a specified address, of unpublishing content containing m below and click the Create button.

    Authorized users can log in directly vi,ssion are able to access yc

    SQ . . .

    , , !

    , , , , .

    , ,

    169

  • . ,) . .

    if T l l H hBlW/,iU >'',uWAnuU/mWadri/poll 1 : liYtSterOi ' *| [|* (.| X | | SQ ... i Polk coirnuneyvot!.. (pSQ-.OH.po*.fy. # * i) Backup and Migrate.

    '" -9263.100l/node/ad

  • Domains Access

    Domain Access

    Domain Access, Alias, Blocks, Configuration, Content, Navigation, Node Type, Taxonomy, Theme, Views

    , , . Joomla , . Drupal , . .

    . :

    1. , Drupal. , , , .

    2. , Drupal , , - . settings.php. , Drupal. .

    3. , Drupal , . , . , . Domain Access (h ttp ://drupal. org/proj ect/domain ).

    171

  • ;

    Domain Access ;

    Domain Alias ;

    Domain Configuration , , . ., ;

    Domain Content , ;

    Domain Navigation ( );

    Domain Prefix , , . .

    172

  • (Hi I Mai I ! I la Drupal 7 ! , ( !);

    Domain Source , README, txt ( SEO- Domain access, );

    Domain Strict ;

    Domain Theme , ;

    Domain User narod.ru . (! Drupal 7 ! , !);

    Domain Views View - . (! Drupal 7 ! , !).

    . :

    Domain Blocks (http://drupal.org/project/domain_blocks) ;

    Domain CTools (http://drupal.org/project/domain_ctools) ;

    Domain Node Type (http://drupal.org/project/domain_nodetype) , ;

    Domain Taxonomy (http://drupal.org/project/domain_taxonomy) ?

    , . Domain Access, -

    173

  • l) i i i |> ; i l 7. 1> m o i v i!

    Domain Access INSTALL Ql JIC KSTART.txt. , :

    1. settings.php :/ * *

    * Add the domain module setup routine.* /

    include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';

    2. Domain Access.

    3. .

    => Domains.

    , :

    Domain Access => Domains, . ;

    * 1 t ; X J "cw- tiyt'eard-.' M l]

    - | SQ ... (j community votin... j SQ - [... 5.2- |S... ] j -T S # ' - 0 Cp.

    : [ |

    '. . *. > Advanced help . , chern.

    Add corrfer. rtndoateM 1.......................................... . ......_ ........._ .........._ _ ......................... _

    IH>MAINLISI ) CftlATt DOMAIN j NODE SfcTTINGS i BATCH | USE* DEFAULTS

    I -

    213.132.95.228

    ;

    SQ

    174

  • L . h|ih//IO' imi H4i
  • Domain Configuration > > Domains > Domain list settings. , 11> caii'ra / ;

    vV lovH' >npo... j* Pnlt I SQ - .| |n..

  • /ll.1(:1( II.

    To'i caii , :

    -W |1^ - | d Covi |SQ... (\>jpuiei ! SQ Pod community vtrtir . iglSQ |>. S? | S.. ' } * * ' } "** *

    : Ist&waUov.

  • - 1 ,:,1;1

    A 1 W 4M|ii< I'fJ * | | ) him.. | Pull: volin 1 * ) ..... . ( p iH " ' ) | V. | j i*b * * # 1, ' i t

    lliim raAi: j (|1() ]

    A u n iw m ipr*rVp* iha 41(, tli-rn hi

    1 III AhurtyiU 1

    S Q t a s k c o n t r o l : D o m a i n t h e m e s e t t i n g s

    No them* has been set for this domain.

    Select the default theme for this domain. You may only select themes activated for all sites.

    These settings will replace your default site theme when SQ u sk control\s the active domain.

    SCRtENSHOT THEME

    0 Garland 7.0-alpha5A multi-column theme which car fluid width layouts.

    e configured to modify

    Domain Views View.

    . , , Drupal.

  • Sections

    Content translation

    Internationalization translation management

    , - , : , . :

    www.s-q.ru SQ ;

    www.sqsystem.com SQ ;

    www.s-q.ru/constructor SQ ;

    www.s-q.ru/affiliate . .

    . , .

    drupal.org, , Sections (http://drupal.org/project/sections). , ! , Drupal 7.

    179

  • .'> ( ) . . , , , . , :

    www.s-q.ru/constructor SQ. ;

    www.sqsystem.com/constructor SQ .

    :

    www.s-q.ru/constructor SQ ;

    www.sqsystem.com/en/constructor SQ ;

    www.sqsystem.com/de/constructor SQ .

    . , . Drupal, , . , . . . , , , , ...

    , Sections .

    , , . .

    1. , :

    www.s-q.ru/constructor SQ ;

    www.sqsystem.com/en/constructor SQ .

    2. URL, :

    www.sqsystem.com/en/constructor SQ ;

    www.sqsystem.com/de/constructor SQ .

    , , ...

    180

  • .1 11 IMI(( I I, Ml 1(11 ( II,IIII ,

    , . .

    , .

    J . 8 D U / n o d / s d d / p o l I ! .

    i t oi '

  • I >| nil /

    I Inc./ic .

    , . , , Content translation. , . .

    , . .

    182

  • / I I . I I ( 1 X I I . 1 ( ) 1

    I 1 :>I)1(> . .

    | |- d Coja*t | SQ~ X , Paipauemu 1 SQ .. Polt community votin... SQ- (yn_ [@ 52 - |$... < Ft ) * # 0

    ' : 1 ntent .

  • Ilm p .il I

    , , ^ => i^> Detection and Selection.

    W [ ] j & Cow* Onpix I SQ... X [ | SQ ... Poll; imunity voliri... | SQ - [... j 52-*11S."i| | . * ^ 0 # * )C*p '

    : 1 i *< 11 i i ttp- Bm ' Affiliated oor.Tent Oi- Ad.an ! t'C [ 1 . -iuib 1:"

  • To ec u. , . 11 . , , . .

    . , , . . , . . , , . .

    , , - . Internationalization (http://drupal.org/project/il8n) Translation Management (http://drupal.org/project/translation_management). Drupal 7 , ! ...

  • Tracker

    , , Drupal. , , , , .

    . , => => .

    186

  • mi.I i pci , , , . .

    , , , .

    . , .

    . .

    , . , , . . .

    187

  • 111> Edit tborUuu

    Cw:ifMJ yiriwiuicwM - , <

    M a n a g e m e n t

    * j*

    Basic page

    Book page Book page

    .'

    -

    ?

    ~ !

    8(926)213

    E -na il in foBs-q.r

    45 21 5 31 I 2 1 2 1 3 1 2 1 2 1 2 1 5 1 5

    . j g

    , , , - . - , .

  • , Drupal 7 . , , - -, .

    : , overlay,

    , , . , - , , breadcrumb, Cancel . , , - ;

    : ;

    , . , ;

    , , .

    , . , , FAQ (http://drupal.org/ project/faq), . , , . Drupal 7 , , .

    , . , Pathauto, , .

    , , , Drupal 7 .

    189

  • Page.tpl.php Node.tpl.php Block, tpl.php Comment.tpl.php -

    http://api.drupal.org . , .

    page.tpl.php

    :

    $ b a se _ p a th : URL- Drupal. , , , /;

    $ d i r e c to r y , , modules/system themes/garland. ;

    $is_front TRUE, ; $ lo g g e d _ in TRUE,

    ;

    $ is_ ad m in TRUE, .

    :

    $ f ro n t_ p a g e : URL . , $ b a se _ p a th . dom ain p r e f i x ;

    190

  • $ 1 oqo : , ;

    $site_name : . , ;

    $site_slogan , , . :

    $main_menu (array) : , , ;

    $secondary_menu (array) : , , ;

    $breadcrumb Breadcrumb . (

    page.tpl.php):

    $title_prefix (array) : , ;

    $title HTML- ;

    $title_suf fix (array) : , ;

    $messages : HTML . ;

    $tabs : , (, );

    $action_links (array) , Add menu ;

    $ f eed_icons : ; $node : , ,

    , ( node/12345 node/12345/revi- sions, comment/reply/12345).

    191

  • :

    $page | ht11 p ] : I;

    $page [ ' h i g h l i g h t ' ] : ;

    $page [ ' c o n t e n t ' ] : ( );

    $page [ ' s i d e b a r _ f i r s t ' ] : ( );

    $page [ Ts i d e b a r _ s e c o n d ' ] : ( );

    $page [ ' h e a d e r ' ] ;

    $ [ ' f o o t e r 1 ] .

    node.tpl.php

    :

    $ t i t l e : ( HTML-) ;

    $ c o n t e n t : . r e n d e r ( $ c o n t e n t ) , r e n d e r ( $ c o n t e n t [ ' f i e ld _ e x a m p l e '] ). h i d e ($ c o n t e n t [ ' f i e ld _ e x a m p l e ' ] );

    $ u s e r _ p i c t u r e : user-picture.tpl. php;

    $ d a t e : ( $ - a t e d f o r m a t _ d a t e () );

    $name : , t h e m e _ u s e rn a m e();

    $ n o d e _ u r l URL ;

    $ d i s p l a y _ s u b m i t t e d : ;

    192

  • $c I.I ; : , CSS. - $ c l a s s e s _ a r r a y .

    :

    node: , ,

    node- [ ty p e ]: . , Blog entry, node-blog. , ty p e , , ,

    n o d e - te a s e r : ,

    n o d e -p rev iew : .

    :

    n o d e-p rom oted : , ,

    n o d e - s t ic k y : , ,

    n o d e -u n p u b lish e d : , ;

    $ t i t l e _ p r e f i x (a r r a y ) : , ;

    $ t i t l e _ s u f f ix ( a r ra y ) , .

    :

    $node : . , ;

    $ ty p e : , story, page, blog . .;

    $com m ent_count ;

    $ u id ;

    $ c r e a te d , Unix timestamp;

    193

  • $ i' I . I :;:: *
  • block.tpl.php

    :

    $block->subject ; $content ; $block->module , ; $block->delta ; $block->region , ; $classes : ,

    CSS. $classes_array . :

    block: , ,

    block-[module]: , . , User . block-user;

    $title_prefix (array) : , ;

    $title_suf fix (array) , .

    :

    $classes_array HTML-. , $classes;

    $block_zebra : 'odd1 'even' ;

    $ zebra : 'odd' 'even' ( );

    $block_id , ;

    195

  • v i 1 1 : , (pei );

    $ is f r o n t : TRUE, ;

    $ lo g g e d in : TRUE, ;

    $ is_ ad m in : TRUE, ;

    $ b lo c k _ h tm l_ id : HTML, .

    comment.tpl.php

    :

    $ a u th o r : . , ;

    $ c o n te n t : . r e n d e r ($ c o n te n t ) , re n d e r ($ c o n te n t [ ' f ie ld _ e x a m p le ' ] ). h i d e ($ c o n t e n t [ ' f ie ld _ e x a m p le ' ] ) ;

    $ c r e a te d : . fo rm a t_ d a te () , $com m ent->changed;

    $new : ;

    $ p e rm a lin k . : . , . , ;

    $ p ic tu r e : ;

    196

  • $; I qnatu re : an ;

    $ s Ltj i : . : connnent-unpublished (), comment-published () comment-preview ();

    * $ t i t l e ;

    * $ c l a s s e s : , CSS. $ c l a s s e s _ a r r a y . :

    com m ent: , ,

    com m ent-by-anonym ous: ,

    c o m m en t-b y -n o d e -a u th o r: - ,

    com m ent-preview : .

    ;

    com m en t-u n p u b lish ed : , ,

    com m ent-by-v iew er: , ,

    comment-new: , ;

    $ t i t l e _ p r e f i x (a r r a y ) , ;

    $ t i t l e _ s u f f i x (a r r a y ) , .

    . :

    $ comment ;

    $node , .

    197

  • Bciiomoi : $ 1.1 : array : I ITML-.

    () , $classes.

    -

    , . , (!). , , comment - blog.tpl.php comment.tpl.php ( ).

    Drupal 7 - - ! Drupal .

    - preprocess:

    block--[region|[module|-delta]].tpl.php : block. tpl. php :

    1. block module-delta.tpl.php2. block--module.tpl.php3. block--region.tpl.php

    "module" , a "delta" , . , blockuser-1. tpl.php , user 1. "region" .

    comment [type].tpl.php : comment. tpl. php

    comment type.t]A. php . node[type] .tpl.php, :198

  • comment wr a p p e r - - [ t y p e ] . tp j . php : com m en t-w rapper. t p l .php

    , wrapper :

    fo ru m s [ [ c o n t a i n e r | t o p i c ] fo ru m ID ]. t p l .p h p

    : forum s . t p l . php

    .

    :

    1. f o r u m s - - c o n ta in e r s forum ID . t p l . php

    2. fo ru m s--fo ru m ID . t p l . php

    3. fo ru m s c o n t a i n e r s . t p l . php

    :

    1. fo ru m s to p ic s - - f o r u m I D . t p l . php

    2. fo ru m s--fo ru m ID . t p l .p h p

    3. forum s t o p i c s . t p l .php

    m a i n t e n a n c e - p a g e - - [ o f f l i n e ] . t p l .p h p

    : m a in te n a n c e -p a g e . t p l . php

    . .

    , Them- ing the maintenance page (http://drupal.org/node/195435).

    n o d e - - [ t y p e ] . t p l .p h p

    : node . t p l .php

    , nodesto- ry.tpl.php, nodeblog.tpl.php . . , node.tpl.php . , node [type],tpl.php :

    199

  • p a q i' | I I on I | i n te rn a J / \ I ti | . I p 1 . php

    : p a g e . t p l .php

    , pagefront.tpl.php . . , .

    => => . pagefront.tpl.php.

    - . . :

    http://www.example.eom/node/l/edit -:

    1. p a g e - - n o d e - - e d i t . t p l . php

    2. p a g e - - n o d e - - l . t p l .p h p

    3. p a g e - - n o d e . t p l .php

    4. p a g e . t p l . php

    p o l l - r e s u l t s - - [ b l o c k ] . t p l . p h p

    : p o l l - r e s u l t s . t p l .php

    , , . , - . modules/poll/poll-results-block.tpl.php.

    p o l l - v o t e [ b l o c k ] . t p l .p h p

    : p o l l - v o t e . t p l .php

    poll-results-[block],tpl.php, . .

    p o l l - b a r [ b l o c k ] . t p l .p h p

    : p o l l - b a r . t p l .php

    200

  • , poll-vott'-l blockj.tpl.php, .

    p r o f i l e - w r a p p e r - - [ f i e l d ] . t p l .p h p

    : p r o f i l e - w r a p p e r . t p l . php

    . . , http://drupal.org/profile/ country/Belgium profile-wrapper-coun- try.tpl.php.

    s e a r c h - r e s u l t s - - [ s e a r c h T y p e ] . t p l .p h p

    : s e a r c h - r e s u l t s . t p l .php

    search-results.tpl.php . -. , example.coin/search/node/Search+Term search-results-node.tpl.php. example, com/search/user/bob, search-results-user.tpl.php. , - .

    s e a r c h - r e s u l t [s e a rc h T y p e ] . t p l .p h p

    : s e a r c h - r p s u It . t p l .php

    To , , .

  • CVS

    drupal.org , , . . http://drupal.org/coding- standards . .

    $ $ c o n te n t . , . :

    $ v a r ia b le . , .

    Drupal - .

    , , . . - .

    202

  • 11,'i m ine drupal.org c , < . , ., , . , ( , ). : drupal.ru.

    , , . , . , , , .