{"id":4078,"date":"2017-08-04T18:30:59","date_gmt":"2017-08-04T18:30:59","guid":{"rendered":"http:\/\/musilda.cz\/?p=4078"},"modified":"2017-08-04T18:30:59","modified_gmt":"2017-08-04T18:30:59","slug":"fakerpress-wp-test-2-skvele-zpusoby-snadno-rychle-naplnit-web-testovacim-obsahem","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/fakerpress-wp-test-2-skvele-zpusoby-snadno-rychle-naplnit-web-testovacim-obsahem\/","title":{"rendered":"FakerPress a WP Test: 2 skv\u011bl\u00e9 zp\u016fsoby, jak snadno a rychle naplnit web testovac\u00edm obsahem"},"content":{"rendered":"
Testujete novou \u0161ablonu \u010di plugin? Pak se v\u00e1m bude hodit testovac\u00ed obsah neboli dummy content. Tedy obsah, na kter\u00e9m vyzkou\u0161\u00edte funk\u010dnost l\u00e9pe ne\u017e na pr\u00e1zdn\u00e9m webu. Ale kde ho vz\u00edt a jak web naplnit co mo\u017en\u00e1 nejrychleji? Odpov\u011b\u010f nab\u00edz\u00ed plugin FakerPress<\/a> a bal\u00ed\u010dek dat WP Test<\/a>.<\/p>\n FakerPress je plugin, kter\u00fd v\u00e1m pom\u016f\u017ee naplnit web p\u0159\u00edsp\u011bvky (v\u010detn\u011b custom post types), meta daty, n\u00e1hledov\u00fdmi obr\u00e1zky, u\u017eivateli, \u0161t\u00edtky, kategoriemi a koment\u00e1\u0159i (v\u010detn\u011b custom comment types).<\/p>\n Nab\u00edz\u00ed se ot\u00e1zka, pro\u010d v\u016fbec plugin jako je FakerPress cht\u00edt a pou\u017e\u00edvat. Pokud jste doposud testovac\u00ed obsah nepot\u0159ebovali, mo\u017en\u00e1 si nedok\u00e1\u017eete p\u0159edstavit, kolik \u010dasu v\u00e1m dan\u00e9 \u0159e\u0161en\u00ed u\u0161et\u0159\u00ed. Naplnit web manu\u00e1ln\u011b nen\u00ed ot\u00e1zkou minut, ale s t\u00edmto pluginem to jde velmi snadno. A nejen to \u2013 jakmile testov\u00e1n\u00ed dokon\u010d\u00edte, obsah stejn\u011b jednodu\u0161e sma\u017eete.<\/p>\n Plugin si st\u00e1hnete zde<\/a> a pot\u00e9 nainstalujete ze .zip souboru, p\u0159\u00edpadn\u011b vyu\u017eijete vyhled\u00e1va\u010d p\u0159\u00edmo v administraci (plugin je v repozit\u00e1\u0159i).<\/p>\n <\/p>\n Po instalaci se v bo\u010dn\u00edm menu objev\u00ed nov\u00e1 polo\u017eka \u201eFakerPress\u201c. Zde si m\u016f\u017eete nastavit v\u0161echny mo\u017en\u00e9 parametry, kter\u00e9 souvis\u00ed s testovac\u00edm obsahem.<\/p>\n Zde najdete funkci pro vymaz\u00e1n\u00ed obsahu. Sta\u010d\u00ed, kdy\u017e do pole nap\u00ed\u0161ete Let it Go! a kliknete na p\u0159\u00edslu\u0161n\u00e9 tla\u010d\u00edtko.<\/p>\n Dal\u0161\u00ed funkce souvis\u00ed s nahr\u00e1v\u00e1n\u00edm obr\u00e1zk\u016f ze serveru 500px. Mus\u00edte v\u0161ak zadat jejich Consumer Key.<\/p>\n <\/a><\/p>\n U p\u0159\u00edsp\u011bvk\u016f lze nastavit n\u00e1sleduj\u00edc\u00ed vlastnosti:<\/p>\n Quantity<\/strong> – po\u010det p\u0159\u00edsp\u011bvk\u016f (v\u010detn\u011b n\u00e1hodn\u00e9ho po\u010dtu v r\u00e1mci nastaven\u00e9ho rozp\u011bt\u00ed)<\/p>\n Date<\/strong> – datum publikace (op\u011bt v\u010detn\u011b n\u00e1hodn\u00e9ho rozp\u011bt\u00ed)<\/p>\n Post type<\/strong> – typ p\u0159\u00edsp\u011bvk\u016f<\/p>\n Parents<\/strong> \u2013 nastaven\u00ed rodi\u010dovsk\u00fdch (nad\u0159azen\u00fdch) str\u00e1nek<\/p>\n Comments status<\/strong> \u2013 povolen\u00ed\/zak\u00e1z\u00e1n\u00ed koment\u00e1\u0159\u016f<\/p>\n Use HTML<\/strong> \u2013 checkbox pro povolen\u00ed HTML zna\u010dek<\/p>\n HTML Tags<\/strong> \u2013 v\u00fdb\u011br HTML tag\u016f<\/p>\n Image Providers<\/strong> \u2013 slu\u017eby, ze kter\u00fdch gener\u00e1tor pou\u017eije obr\u00e1zky<\/p>\n Author<\/strong> \u2013 v\u00fdb\u011br u\u017eivatel\u016f, kte\u0159\u00ed budou nastaveni jako auto\u0159i p\u0159\u00edsp\u011bvk\u016f<\/p>\n Taxonomy Field Rules<\/strong> \u2013 nastaven\u00ed pravidel pro generov\u00e1n\u00ed \u0161t\u00edtk\u016f, kategori\u00ed a dal\u0161\u00edch taxonomi\u00ed<\/p>\n Meta Field Rules<\/strong> \u2013 nastaven\u00ed pravidel pro meta pole<\/p>\n <\/a><\/p>\n U koment\u00e1\u0159\u016f nastav\u00edte:<\/p>\n Type<\/strong> \u2013 typ koment\u00e1\u0159\u016f<\/p>\n Post Type<\/strong> \u2013 typy p\u0159\u00edsp\u011bvk\u016f, ke kter\u00fdm se budou koment\u00e1\u0159e generovat (nap\u0159. pouze \u201evideo posts\u201c atd.)<\/p>\n Quantity<\/strong> \u2013 celkov\u00fd po\u010det koment\u00e1\u0159\u016f, op\u011bt v\u010detn\u011b rozp\u011bt\u00ed<\/p>\n Use HTML<\/strong> \u2013 pou\u017eit\u00ed HTML v koment\u00e1\u0159\u00edch<\/p>\n HTML Tags<\/strong> \u2013 nastaven\u00ed konkr\u00e9tn\u00edch HTML tag\u016f<\/p>\n Date<\/strong> \u2013 datum publikace koment\u00e1\u0159\u016f<\/p>\n Meta Field Rules<\/strong> \u2013 pravidla pro meta pole<\/p>\n <\/a><\/p>\n Posledn\u00edm krokem je nastaven\u00ed polo\u017eek taxonomie. Konkr\u00e9tn\u011b jde o:<\/p>\n Quantity<\/strong> \u2013 po\u010det polo\u017eek (v\u010detn\u011b n\u00e1hodn\u00e9ho v r\u00e1mci nastaven\u00e9ho rozp\u011bt\u00ed)<\/p>\n Name size<\/strong> \u2013 velikost jm\u00e9na (op\u011bt v\u010detn\u011b n\u00e1hodn\u00e9ho v r\u00e1mci ur\u010dit\u00e9ho rozp\u011bt\u00ed)<\/p>\n Taxonomies<\/strong> \u2013 zvol\u00edte skupinu, pro kterou se polo\u017eky vytvo\u0159\u00ed<\/p>\n Meta Field Rules<\/strong> \u2013 pravidla pro meta pole<\/p>\n <\/a><\/p>\n U u\u017eivatel\u016f m\u016f\u017eete nastavit:<\/p>\n Quantity<\/strong> \u2013 po\u010det vytvo\u0159en\u00fdch u\u017eivatel\u016f (v\u010detn\u011b n\u00e1hodn\u00e9ho po\u010dtu z ur\u010dit\u00e9ho rozp\u011bt\u00ed)<\/p>\n Use HTML<\/strong> \u2013 povolen\u00ed HTML tag\u016f<\/p>\n HTML Tags<\/strong> \u2013 nastaven\u00ed konkr\u00e9tn\u00edch HTML tag\u016f<\/p>\n Roles<\/strong> \u2013 u\u017eivatelsk\u00e9 role<\/p>\n Meta Field Rules<\/strong> \u2013 pravidla meta pol\u00ed<\/p>\n <\/a><\/p>\n Jakmile se prokou\u0161ete nastaven\u00edm, kliknete na magick\u00e9 tla\u010d\u00edtko Generate a v\u00e1\u0161 pr\u00e1zdn\u00fd web bude zanedlouho kr\u00e1sn\u011b pln\u00fd.<\/p>\n Na str\u00e1nce WP Test<\/a> najdete bal\u00ed\u010dek testovac\u00edho obsahu a demo. Autor Michael Novotn\u00fd<\/a> vych\u00e1zel z doporu\u010den\u00ed na WordPress‘ Theme Unit Test Data a vlastn\u00edch letit\u00fdch zku\u0161enost\u00ed.<\/p>\n Import dat prob\u00edh\u00e1 pomoc\u00ed funkce Import v N\u00e1stroj\u00edch (mus\u00edte m\u00edt nainstalovan\u00fd WordPress Importer plugin). P\u0159es import na\u010dtete soubor wptest.xml \u2013 b\u011bhem importu nezav\u00edrejte z\u00e1lo\u017eku a neodch\u00e1zejte z n\u00ed na jinou str\u00e1nku.<\/p>\n S\u00edla pluginu FakerPress spo\u010d\u00edv\u00e1 v mo\u017enosti individu\u00e1ln\u00edho nastaven\u00ed. Bal\u00ed\u010dek testovac\u00edho obsahu z WP Test je dan\u00fd, ale na druhou stranu velmi dob\u0159e vylad\u011bn\u00fd tak, aby zahrnoval v\u0161echny d\u016fle\u017eit\u00e9 polo\u017eky. Ide\u00e1ln\u00ed bude, kdy\u017e vyzkou\u0161\u00edte oba \u0159e\u0161en\u00ed a budete pou\u017e\u00edvat to, kter\u00e9 v\u00e1m v\u00edce vyhovuje.<\/p>\n","protected":false},"excerpt":{"rendered":" Testujete novou \u0161ablonu \u010di plugin? Pak se v\u00e1m bude hodit testovac\u00ed obsah neboli dummy content. Tedy obsah, na kter\u00e9m vyzkou\u0161\u00edte funk\u010dnost l\u00e9pe ne\u017e na pr\u00e1zdn\u00e9m webu. Ale kde ho vz\u00edt a jak web naplnit co mo\u017en\u00e1 nejrychleji? Odpov\u011b\u010f nab\u00edz\u00ed plugin FakerPress a bal\u00ed\u010dek dat WP Test. FakerPress FakerPress je plugin, kter\u00fd v\u00e1m pom\u016f\u017ee naplnit web<\/p>\n","protected":false},"author":1,"featured_media":4089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[139,525,536],"class_list":["post-4078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nezarazene","tag-fakerpress","tag-wordpress-testovaci-obsah","tag-wp-test"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4078"}],"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=4078"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/4089"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=4078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=4078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=4078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}FakerPress<\/h2>\n
Napln\u011bn\u00ed webu krok po kroku<\/h3>\n
Sekce settings (nastaven\u00ed)<\/h4>\n
Posts (p\u0159\u00edsp\u011bvky)<\/h4>\n
Comments (koment\u00e1\u0159e)<\/h4>\n
Terms (polo\u017eky taxonomie)<\/h4>\n
Users (u\u017eivatel\u00e9)<\/h4>\n
A co WP Test?<\/h2>\n
Kter\u00e1 varianta je lep\u0161\u00ed?<\/h2>\n