CMS: lub vev xaib tswj hwm thiab cov nyees khawm

Cov txheej txheem:

CMS: lub vev xaib tswj hwm thiab cov nyees khawm
CMS: lub vev xaib tswj hwm thiab cov nyees khawm
Anonim

Cov kev tswj hwm cov ntsiab lus niaj hnub, lub hauv paus, cov qauv, cov ntsiab lus, plugins, widgets thiab lwm cov cuab yeej tsim tawm tso cai rau koj los tsim cov khoom siv web zoo sai nrog cov neeg siv-phooj ywg interface, paub cov qauv ntawm kev muab kev ua haujlwm los ntawm cov txheej txheem ib txwm muaj. dialog, tswj thiab cov nyees khawm. Kev loj hlob ceev, kev ruaj ntseg thiab kev ntseeg siab yog qhov txawv ntawm cov ntsiab lus hauv Kev Tswj Xyuas Cov Ntsiab Lus (CMS) kev ntsuas.

Kev tswj hwm lub vev xaib ib txwm muaj

Nyem khawm ntawm lub vev xaib yog ib qho haujlwm tshwj xeeb. Cov txheej txheem tshwj xeeb - cov ntawv qhia zaub mov. Ib txheej ntawm kev xaiv rau kev nqis tes ua - cov npe, "checkboxes" lossis cov ntsiab lus xaiv hauv ntau yam.

Ntau qhov sib txawv ntawm niaj hnub web kev tswj hwm thev naus laus zis tsis yog ntau cov nyees khawm, cov ntawv qhia zaub mov, cov xaiv, cov npe, cov ntawv qhia chaw clickable thiab lwm cov tswv yim tsim tawm, tab sis cov qauv tsim ib txwm tsim los ntawm kev tsim cov kab lis kev cai.

Kev tsim kho lub vev xaib yog txhua qhov kev ua haujlwm tib yam. Dab tsi yog thaum pib ntawm lub computer era los ua lub hauv paus ntawm lub era ntawm kev loj hlob ntawm Internet technologies. Txhua yam tau dhau los ua qhov zoo nkauj thiab zoo nkauj,nyuaj dua thiab muaj lub luag haujlwm, thiab cov ntaub ntawv ntim tau pib loj zuj zus.

Kev tswj hwm kev cai
Kev tswj hwm kev cai

Siv tus tsim tawm lub sijhawm manually tsim ib lub vev xaib, tsim cov lus sib tham tshwj xeeb, lossis tsim lub pob rau lub vev xaib yog lub tswv yim qub, sim thiab muaj tseeb. Nws muaj nyob rau hauv kev daws teeb meem tshwj xeeb lossis tshwj xeeb. Hauv lub ntiaj teb niaj hnub no, lub vev xaib zoo yog:

  • CMS nrov;
  • zoo lub ntsiab (template);
  • stable set of plugins (tools).

Ib hnub ua haujlwm - thiab lub khw tshiab, tshawb fawb cav lossis tswj cov ntaub ntawv hluav taws xob twb tau ua haujlwm lawm.

Ib tug neeg feem ntau thiab ib tus neeg siv (tus neeg tuaj saib lub vev xaib) tshwj xeeb yog ib txwm muaj cov teeb meem tam sim no. Lub siab xav ntawm tus tsim tawm los ua kom nws cov neeg siv khoom muaj peev xwm ntawm kev cog lus ntawm nws lub tswv yim lossis kev sib tham tshwj xeeb yog los ntawm kev muaj tswv yim, kos duab lossis ua yeeb yam.

Unique controls

Lub neej niaj hnub yog kev coj ua hauv tsev, tom haujlwm thiab ntawm ntug hiav txwv. Tus txiv neej yeej ib txwm muaj kev ntseeg siab ntawm "kev coj noj coj ua" ntawm lub neej, kev ua haujlwm thiab kev lom zem. Tus neeg siv Is Taws Nem xav tias muaj kev ntseeg siab hauv ib puag ncig uas paub, thaum tsis tas yuav twv seb tus tsim tawm xav muab rau nws qhov chaw.

Paub siv logic
Paub siv logic

Txhua CMS muaj nws lub ntsej muag, qhia txog cov kev cai tsim hauv lub koom haum ntawm kev sib tham nrog tus qhua. Piv txwv li, qhov zoo tshaj plaws thiab ua haujlwm tau zoo WordPress lub vev xaib khawm yog Shortcodes Ultimate plugin.(paub "cov lej luv"). Koj yuav tsum tau npaj cov cuab yeej ib puag ncig sai rau kev teeb tsa txoj kev sib tw thiab ntau yam:

  • 2 feeb - WordPress installation;
  • 3 feeb - kev teeb tsa thiab kev taw qhia rau Shortcodes plugin;
  • 4 feeb - teeb plaub khawm.

Qhov no txaus los txuas tam sim ntawm cov nyees khawm (1) thiab (2) qhib cov nplooj ntawv txheeb xyuas, khawm (3) mus rau qhov chaw ntawm cov txiaj ntsig parsing, khawm (4) rau cov ntawv parsing tau tsim.

Cov khawm nrawm hauv WordPress
Cov khawm nrawm hauv WordPress

Hauv qhov piv txwv no, lub ntsiab lus WordPress tsim nyog nrog cov lej ntxiv. Tus tsim tawm tuaj yeem tso cov cai, txhais los ntawm nws tus kheej, hauv HTML / CSS nyob qhov twg ntawm nplooj ntawv xav tau, lossis siv qhov txiaj ntsig ntawm plugin.

Tseem ceeb kom nco ntsoov: qhov twg code tsim yuav tsis ib txwm yog qhov twg siv code.

Tsis muaj kev ua haujlwm yuav tsum tau txawm tias CMS yooj yim tshaj plaws: nws ib txwm yog tsab ntawv, cov txheej txheem, lub tswv yim rau kev tshawb nrhiav thiab ua cov ntaub ntawv. Tab sis thaum lub sij hawm debugging lub parsing algorithm, nws yog ib qho yooj yim kom muaj lub qhov rais rau cov ntaub ntawv thawj zaug, lub qhov rais rau cov kev tshwm sim ntawm kev ua hauj lwm, thiab yooj yim tswj kev ua hauj lwm / debugging txheej txheem.

Kev piav qhia lub hom phiaj thiab cov ntsiab lus siv

Thawj ob lub nyees khawm yog cov ntaub ntawv thawj zaug (piv txwv li cov nplooj ntawv piv txwv uas koj xav tau cov ntaub ntawv), qhov thib peb yog qhov tshwm sim ntawm tsab ntawv parsing. Lub pob thib plaub ua haujlwm (pib parsing).

Parameters yuav tsum tau ua rau tsab ntawv ua haujlwm. Cov kev txwv no tau yooj yim sawv cev los ntawm HTML / CSS code. Kev siv shortcodes ntawm no tsis yog qhov tshwj xeeb. Tej zaum koj kuj yuav tau sau JavaScript code thiabsiv AJAX los tswj kev sib cais ntawm lub sijhawm.

JS thiab tswj
JS thiab tswj

Txhua CMS niaj hnub muab tus tsim tawm nrog lub peev xwm los txuas tus neeg siv JavaScript. Tab sis ib qho CMS thiab plug-in rau nws siv cov tswv yim (kev paub, kev txawj thiab kev paub) ntawm lawv tus tsim. Lub hom phiaj ntawm thaj chaw thov tshwj xeeb ib txwm nyob sab nraum qhov pom ntawm CMS tus tsim tawm, lub ntsiab lus, qauv, plugin.

Koj tuaj yeem nce qib cov yam ntxwv ntawm qhov ntsuas ib puag ncig. Cov txheej txheem (5) qhia tau hais tias koj tuaj yeem yooj yim thiab organically nkag mus rau qhov tsis "manually" xav tau rau kev txheeb xyuas. Cov ntsiab lus xaiv (6) qhia tias qhov no ua tiav li cas los ntawm plugin.

Yuav ua li cas los tsim lub pob rau lub vev xaib: kho sai

Qhov kev daws teeb meem tiag tiag ntawm qhov piv txwv saum toj no tau tsim los siv Shortcodes Ultimate plugin, uas tsim ib qho shortcode - ib txoj hlua ntawm cov cim (txhua nplooj ntawv ntawm lub xaib tuaj yeem siv los tsim shortcode). Cov txiaj ntsig tau raug hloov mus rau header.php cov ntaub ntawv ntawm Nees nkaum Xya Xya lub ntsiab lus thiab siv los ua qhov parameter rau do_shortcode() muaj nuj nqi.

Ib qho piv txwv ntawm kev ntxig khawm code rau hauv lub ntsiab lus
Ib qho piv txwv ntawm kev ntxig khawm code rau hauv lub ntsiab lus

Nyob rau hauv daim duab no, saum toj thiab hauv qab no, koj tuaj yeem pom cov lej ntawm qhov uas xav tau ua haujlwm tau muab tso rau. Nws yog qhov yooj yim los siv "span" lossis "div" tag (1) los tswj qhov tseeb ntawm cov ntsiab lus uas xav tau, tab sis qhov no yuav tawm tsam cov lus teb cov tswv yim ntawm CMS siv. Hauv lub caij (1), lub caij los ntawm Shortcodes Ultimate plugin (2) zoo nkaus li zoo.

Hauv qhov no, CMS yog ib puag ncig, tsis yog lub xaib. Ntawm no nws yog ib qho tseem ceebsai sai daws qhov teeb meem: debug cov ntawv parsing. Khawm rau lub xaib - ib, ob, peb - thiab tus tsim tawm tsis rov qab los rau lawv ntxiv lawm. Nws qhov kev mloog tsuas yog nyob nrog kev txhim kho thiab kev debugging ntawm cov ntawv txheeb cais.

YYuav tsis nkag siab, tab sis tseem ceeb kom nco ntsoov

PHP yog hom lus zoo thiab siv tau. Hauv ntau txoj hauv kev, nws tsis zoo rau JavaScript, tab sis hauv ib khub lawv ua haujlwm zoo. Siv CMS yog qhov kev xav tau kev daws teeb meem. Lub sij hawm txuag yog amazing, tab sis tus nqi yog "tons code". Muaj ntau txoj hauv kev, txoj cai no tsis muaj kev txaus siab, feem ntau nws tsuas yog tsis yooj yim sua kom pom nws.

Hauv qhov piv txwv saum toj no, cov lus piav qhia ntawm lub caij (2) yog qhov muaj peev xwm, thiab muaj plaub yam lus piav qhia rau txhua lub pob rau lub xaib. Nqe lus piav qhia (3) yog ntau compact thiab kuj piav qhia tsuas yog plaub yam. Qhov no yog xuas tes ua. Nqe lus piav qhia (2) yog muab los ntawm plaub caug zaus ntxiv plugin thiab CMS kab. Nqe lus piav qhia (3) coj raws li yog.

Kev ua haujlwm niaj hnub tsis yog qhov tshwj xeeb xav mus rau hauv cov ntsiab lus, thiab cov neeg tsim khoom niaj hnub ua haujlwm nrog cov kev xav ntawm nws nyiam CMS. Ntau tus txawm tsis paub yuav ua li cas ntxig ib qho yooj yim "checkbox" ntawm qhov xav tau ntawm nplooj ntawv lossis sau lawv tus kheej khawm nkag mus rau qhov chaw siv HTML / CSS.

Cov kev cai qhua ib txwm siv los ua cov cuab yeej tsim lub vev xaib ib txwm muaj. Tsis muaj dab tsi txaj muag nyob rau hauv qhov tseeb tias txhua qhov chaw tshaj tawm lub tswv yim ntawm CMS siv:

  • nws tus neeg siv-phooj ywg interface;
  • nws ib txwm nyiam ntawm kev xa khoom ua haujlwm;
  • nws lub logic rau kev sib tham, tswj thiab khawm.

BNyob rau hauv lub ntiaj teb no dynamic ntawm cov ntaub ntawv, ceev ntawm kev txiav txim siab thiab kev pab cuam yog nyob rau hauv pem hauv ntej. Lub tswv yim ntawm txhua CMS yog qhov sib txawv, tab sis lub hom phiaj yog tib yam rau txhua tus: kom sai sai tsim lub vev xaib txhim khu kev qha, zoo thiab ua haujlwm tau zoo.

Perfect site…

Ntawm Internet technologies zoo. Nws nyuaj rau hais lwm yam. Tab sis lub zog ntawm lawv txoj kev loj hlob dais me ntsis zoo ib yam li cov kauv ntawm classical scientific thiab technological kev vam meej. Nws yog ntau dua ntawm Brownian tsab ntawv tsa suab.

Incompatibility ntawm versions, hom, templates, ntau yam cuab yeej, dynamics ntawm lub npe ntawm tej yam programming cuab yeej nrog tib lub hauv paus, zoo li lub rustle ntawm nplooj ntawm tsob ntoo loj. Tab sis tsob ntoo loj tuaj.

Lub vev xaib zoo tshaj plaws yog thaum tsuas muaj ib lub pob rau lub xaib. Nov yog thaum ib tug neeg los ze rau lwm tus thiab kev sib tham pib.

hnab ntawv golden
hnab ntawv golden

Ib lub vev xaib niaj hnub no yog thaum tus neeg tuaj txog, thiab muaj … tus tsim tawm lub tswv yim txog kev tsim, style ntawm kev muab kev ua haujlwm, kev ua haujlwm thiab kev kawm. Tsis muaj kev sib tham. Tus qhua yog nyob ntawm txoj kev hlub tshua ntawm cov nyees khawm, cov ntawv qhia zaub mov, thiab lwm yam kev tswj hwm los ntawm tus tsim tawm. Nws yog kev lig kev cai, nws paub thiab yooj yim, tab sis nws puas yog tiag?

Pom zoo: