{"id":5029,"date":"2018-10-17T05:32:46","date_gmt":"2018-10-17T05:32:46","guid":{"rendered":"https:\/\/musilda.cz\/?p=5029"},"modified":"2018-10-17T05:32:46","modified_gmt":"2018-10-17T05:32:46","slug":"wordpress-5-0-jste-pripraveni","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/wordpress-5-0-jste-pripraveni\/","title":{"rendered":"WordPress 5.0 – jste p\u0159ipraveni?"},"content":{"rendered":"

Ji\u017e n\u011bjakou dobu tu s n\u00e1mi je WordPress verze 4.9 a proto se m\u016f\u017eeme t\u011b\u0161it na p\u0159\u00edchod verze 5. S tou to v\u0161ak nebude \u00fapln\u011b jednoduch\u00e9, proto\u017ee naprosto z\u00e1sadn\u011b ovlivn\u00ed tvorbu obsahu, tak jak jste na n\u011bj zvykl\u00ed.<\/p>\n

WordPress 5.0 = Gutenberg?<\/h2>\n

D\u00e1 se to tak \u0159\u00edci. Zm\u011bna, kterou nov\u00fd editor p\u0159inese, je tak z\u00e1sadn\u00ed, \u017ee vyvolala \u0159adu kontroverz\u00ed a negativn\u00edch reakc\u00ed. Zm\u011bnit toti\u017e mus\u00ed ka\u017ed\u00fd u\u017eivatel, p\u0159edev\u0161\u00edm p\u0159\u00edstup k tomu, jak bude vytv\u00e1\u0159et str\u00e1nku.<\/p>\n

Ano, z\u00e1m\u011brn\u011b \u0159\u00edk\u00e1m str\u00e1nku, ne \u010dl\u00e1nek, proto\u017ee s Gutenbergem nebudete \u010dl\u00e1nek ps\u00e1t, ale budete ho stav\u011bt. Sice budete vytv\u00e1\u0159et \u010dl\u00e1nky, ale budete jejich obsah sestavovat, podobn\u011b, jako str\u00e1nku, za pou\u017eit\u00ed page builder\u016f.<\/p>\n

Konec st\u00e1vaj\u00edc\u00edho editoru?<\/h2>\n

\"\"<\/a><\/p>\n

Je to bohud\u00edk\/bohu\u017eel tak. TinyMce editor, kter\u00fd n\u00e1s prov\u00e1zel \u0159adu let a umo\u017e\u0148oval ps\u00e1t obsah str\u00e1nky je minulost\u00ed. Zkr\u00e1tka ji\u017e nebudete vytv\u00e1\u0159et obsah, jako kdy\u017e p\u00ed\u0161ete firemn\u00ed dopis ve Wordu, ale budete ka\u017ed\u00fd \u010dl\u00e1nek „stav\u011bt“.<\/p>\n

Nav\u00edc, tlak na zm\u011bnu je tak enormn\u00ed, \u017ee ji\u017e n\u011bjakou dobu je mo\u017en\u00e9 si editor nainstalovat jako plugin a v n\u011bkolika posledn\u00edch aktualizac\u00edch WordPressu se za\u010dala objevovat pob\u00eddka k nainstalov\u00e1n\u00ed Gutenbergu.<\/p>\n

\"\"<\/a><\/p>\n

Tak to poj\u010fme zkusit.<\/p>\n

Sezn\u00e1men\u00ed s Gutenbergem<\/h2>\n

Prvn\u00ed co v\u00e1s napadne po nainstalov\u00e1n\u00ed je „Kde m\u00e1m za\u010d\u00edt?“. V\u0161echny zn\u00e1m\u00e9 prvky zmiz\u00ed a prost\u0159ed\u00ed za\u010dne p\u0159ipom\u00ednat sp\u00ed\u0161e vzhled kustomiz\u00e9ru, kter\u00fd zn\u00e1te z \u00faprav vzhledu webu. Na\u0161t\u011bst\u00ed se m\u016f\u017eeme dr\u017eet n\u00e1pov\u011bdy, jen\u017e v\u00e1s provede jednotliv\u00fdmi kroky p\u0159i tvorb\u011b obsahu. Nov\u00fd vzhled editoru vypad\u00e1 takto:<\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

Ne\u017e za\u010dneme zmatkovat, kde co najdeme, kam zmizely ovl\u00e1dac\u00ed prvky, na kter\u00e9 jsem zvykl\u00fd, nechme se v\u00e9st n\u00e1pov\u011bdou.<\/p>\n

Ta n\u00e1m hned na za\u010d\u00e1tek nab\u00eddne seznam blok\u016f a menu pro jejich vkl\u00e1d\u00e1n\u00ed:<\/p>\n

\"\"<\/a><\/p>\n

Obsahuje ikonu plus, pro otev\u0159en\u00ed nab\u00eddky blok\u016f, \u0161ipky zp\u011bt a vp\u0159ed, pro p\u0159\u00edpadn\u00e9 proch\u00e1zen\u00ed zm\u011bn a ikonku s p\u00edsmenem i, kter\u00e1 zobraz\u00ed strukturu dokumentu, po\u010det slov, pou\u017eit\u00fdch blok\u016f a podobn\u011b.<\/p>\n

V\u0161echny bloky jsou rozd\u011bleny podle oblast\u00ed pou\u017eit\u00ed. To co vid\u00edte na obr\u00e1zc\u00edch, jsou bloky, nab\u00eddnut\u00e9 na \u010dist\u00e9 instalaci, tedy bez p\u0159\u00edpadn\u00fdch dopl\u0148k\u016f od \u0161ablon, nebo plugin\u016f.<\/p>\n

\"\"<\/a><\/p>\n

Proto\u017ee blok\u016f je opravdu hodn\u011b, vr\u00e1t\u00edm se k nim podrobn\u011b n\u011bkdy p\u0159\u00ed\u0161t\u011b. Nyn\u00ed zkuste kliknout na n\u011bjak\u00fd blok a p\u0159idat \u010d\u00e1st obsahu. Editor v\u00e1s posune a\u017e na konec obsahu, tak a\u0165 v\u00e1s to nezmate.<\/p>\n

Publikace obsahu a dal\u0161\u00ed nastaven\u00ed<\/h2>\n

Proto\u017ee samotn\u00e9 bloky jsou v lev\u00e9m horn\u00edm rohu, publikace a dal\u0161\u00ed nastaven\u00ed najdete v prav\u00e9m horn\u00edm rohu obrazovky.<\/p>\n

\"\"<\/a><\/p>\n

Funkce prvn\u00edch t\u0159\u00ed tla\u010d\u00edtek je mysl\u00edm z\u0159ejm\u00e1 – ulo\u017een\u00ed konceptu, n\u00e1hled a samotn\u00e1 publikace. Ozuben\u00e9 kole\u010dko a t\u0159i te\u010dky nab\u00edz\u00ed dal\u0161\u00ed ovl\u00e1dac\u00ed prvky. Nejprvy t\u0159i te\u010dky.<\/p>\n

\"\"<\/a><\/p>\n

V \u010d\u00e1sti Writing m\u016f\u017eete zap\u00ednat a vyp\u00ednat jednotliv\u00e9 m\u00f3dy – na celou obrazovku,\u00a0 m\u016f\u017eete p\u0159ekr\u00fdt obsah vrstvou, tak \u017ee po kliknut\u00ed na jednotliv\u00fd blok, bude zv\u00fdrazn\u011bn pouze aktivn\u00ed blok.<\/p>\n

V \u010d\u00e1sti Editor se m\u016f\u017eete p\u0159epnout z builderu do zdrojov\u00e9ho k\u00f3du.<\/p>\n

\"\"<\/a><\/p>\n

Posledn\u00ed \u010d\u00e1st nab\u00eddky v\u00e1m umo\u017e\u0148uje p\u0159ej\u00edt na spr\u00e1vu znovu pou\u017eiteln\u00fdch blok\u016f – to jsou bloky, kter\u00e9 si spole\u010dn\u011b s jejich nastaven\u00edm ulo\u017e\u00edte, zobrazit n\u00e1pov\u011bdu, kop\u00edrovat obsah a zobrazit seznam kl\u00e1vesov\u00fdch zkratek:<\/p>\n

 <\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

Nastaven\u00ed<\/p>\n

Pokud jste do t\u00e9to doby marn\u011b p\u00e1trali, kam zmizely metaboxy pro nastaven\u00ed publikace, n\u00e1hledov\u00e9 obr\u00e1zky a podobn\u011b, tak k tomu slou\u017e\u00ed ikonka ozuben\u00e9ho kole\u010dka – Setting. Kdy\u017e na ni kliknete, zobraz\u00ed se v\u00e1m vpravo sloupec, jen\u017e bude p\u0159ipom\u00ednat nab\u00eddku z kustomiz\u00e9ru:<\/p>\n

\"\"<\/a><\/p>\n

Popisovat, co jednotliv\u00e9 prvky d\u011blaj\u00ed nebudeme, z n\u00e1zv\u016f je vcelku jasn\u00e9 k \u010demu slou\u017e\u00ed. V\u0161imn\u011bte si ale, \u017ee zv\u00fdrazn\u011bn\u00e1 je z\u00e1lo\u017eka Document. Pokud klikneme na z\u00e1lo\u017eku Block, zobraz\u00ed se n\u00e1m toto:<\/p>\n

\"\"<\/a><\/p>\n

V tomto m\u00edst\u011b toti\u017e uvid\u00edme dal\u0161\u00ed nastaven\u00ed\u00a0 bloku, kter\u00fd m\u00e1me vybran\u00fd. Ka\u017ed\u00fd z blok\u016f m\u00e1 sv\u00e9 vlastn\u00ed nastaven\u00ed, toto je nap\u0159\u00edklad nastaven\u00ed obr\u00e1zku:<\/p>\n

\"\"<\/a><\/p>\n

Krom\u011b toho, \u017ee m\u016f\u017eete upravovat ka\u017ed\u00fd blok zvl\u00e1\u0161\u0165, nen\u00ed v editoru nic dal\u0161\u00edho pot\u0159eba a ani nic jin\u00e9ho na obrazovce nenajdete. Mo\u017en\u00e1 si te\u010f \u0159\u00edk\u00e1te – ale j\u00e1 m\u00e1m u \u010dl\u00e1nk\u016f mo\u017eost upravovat custom fieldy, m\u00e1m tam spoustu dal\u0161\u00edch nastaven\u00ed, co se s nimi stane po aktualizaci?<\/p>\n

To je asi nej\u010dast\u011bj\u0161\u00ed ot\u00e1zka, kter\u00e1 se v souvislosti s Gutenbergem pokl\u00e1d\u00e1.<\/p>\n

Bohu\u017eel, z\u00e1le\u017e\u00ed na tom, jak se k tomu postav\u00ed ka\u017ed\u00fd konkr\u00e9tn\u00ed v\u00fdvoj\u00e1\u0159. Na\u0161t\u011bst\u00ed v\u011bt\u0161ina z nich se intenzivn\u011b zam\u011b\u0159uje na kompatibilitu a p\u0159echod by nem\u011bl b\u00fdt problematick\u00fd. V n\u011bkter\u00e9m z dal\u0161\u00edch \u010dl\u00e1nk\u016f se ur\u010dit\u011b pod\u00edv\u00e1me na to, co se stane, pokud zapnete Gutenberg na webu, kter\u00fd na to nen\u00ed p\u0159ipraven.<\/p>\n

WordPress 5.0 bude velmi z\u00e1sadn\u00ed aktualizace a zcela jist\u011b p\u0159inese i \u0159adu probl\u00e9m\u016f, ale je to nevyhnuteln\u00e9 a je d\u016fle\u017eit\u00e9 se na to p\u0159ipravit. Slovy klasika:<\/p>\n

M\u016f\u017eeme o tom v\u00e9st spory, m\u016f\u017eeme s t\u00edm nesouhlasit, ale to je tak v\u0161echno, co se proti tomu d\u00e1 d\u011blat.<\/p><\/blockquote>\n

\"\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Ji\u017e n\u011bjakou dobu tu s n\u00e1mi je WordPress verze 4.9 a proto se m\u016f\u017eeme t\u011b\u0161it na p\u0159\u00edchod verze 5. S tou to v\u0161ak nebude \u00fapln\u011b jednoduch\u00e9, proto\u017ee naprosto z\u00e1sadn\u011b ovlivn\u00ed tvorbu obsahu, tak jak jste na n\u011bj zvykl\u00ed. WordPress 5.0 = Gutenberg? D\u00e1 se to tak \u0159\u00edci. Zm\u011bna, kterou nov\u00fd editor p\u0159inese, je tak z\u00e1sadn\u00ed,<\/p>\n","protected":false},"author":1,"featured_media":5057,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,30],"tags":[],"class_list":["post-5029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-novinky","category-wordpress"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5029"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=5029"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/5057"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=5029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}