Yuav Tsim Tus Qauv Rau Joomla Li Cas

Cov txheej txheem:

Yuav Tsim Tus Qauv Rau Joomla Li Cas
Yuav Tsim Tus Qauv Rau Joomla Li Cas

Video: Yuav Tsim Tus Qauv Rau Joomla Li Cas

Video: Yuav Tsim Tus Qauv Rau Joomla Li Cas
Video: Yuav Ua Lis Cas Peb Thiaj Mus Txog Peb Lub Hom Phiaj? 2024, Tej zaum
Anonim

Joomla yog qhov chaw ntau txoj kev tswj hwm qhov chaw (CMS) uas tso cai rau koj los ua txhua lub chaw teeb tsa kev pab cuam. Txoj haujlwm "Tus Qauv" yog lub luag haujlwm rau kev ua kom pom cov khoom ntawm cov nplooj ntawv ntawm lub vev xaib hauv CMS no. Txhua tus qauv tsim tuaj yeem ntsia tau ncaj qha lossis tsim ntawm nws tus kheej los ntawm tus webmaster.

Yuav tsim tus qauv rau joomla li cas
Yuav tsim tus qauv rau joomla li cas

Nws yog qhov tsim nyog

  • - txuj ci siv HTML thiab CSS;
  • - pob ntawm tej Joomla template.

Cov Lus Qhia

Kauj ruam 1

Ua ntej tsim koj cov qauv, xaiv ib qho qauv uas koj yuav siv los sau koj tus kheej cov cai. Qhov no yuav txuag koj lub sijhawm thiab zam kom tsis txhob sau kab tsis tsim kab kev cai uas yog qauv rau Joomla thiab tau siv thaum txhim kho tej tawv nqaij.

Kauj ruam 2

Luam tawm lub ntsej muag rau hauv daim nplaub tshev cais thiab qhib cov ntaub ntawv templateDetails.xml hauv nws cov hauv paus. Cov ntaub ntawv no muaj cov ntaub ntawv pabcuam, kev piav qhia thiab npe ntawm txheej txheej. Hloov kho cov kab uas xav tau raws li koj pom zoo. Piv txwv li, koj tuaj yeem hloov kho qhov piav qhia pauv hloov tus sau npe lub npe rau koj li, sau email, chaw nyob. Ntawm kab, koj tuaj yeem sau lub npe rau koj qhov kev npaj tom ntej.

Kauj ruam 3

Mus rau qhov thaiv ntawm cov ntaub ntawv raug kho tawm. Tshem tawm tag nrho cov lus piav qhia uas yog ib feem ntawm qhov block, pib nrog kev debug thiab xaus nrog txoj haujlwm 14, tawm tsuas yog ib qho tom qab ua haujlwm. Ib yam li ntawd, rho tawm cov kab, thiab Cov Lus.

Kauj ruam 4

Tom qab ua tiav cov haujlwm, txuag cov kev hloov pauv ntawm cov ntawv thiab rho tawm cov lus nplaub tshev hauv cov ntawv qhia nrog cov ntawv template. Tom qab ntawd qhib cov ntaub ntawv index.php nrog cov editor koj siv thiab rho tawm txhua cov ntsiab lus tshwj tsis yog kab:

<? php

txhais tau tias (‘_ JEXEC’) lossis tuag; ?>

Kauj ruam 5

Muab cov ntawv tais ceev tseg rau txhua lub npe, thiab tom qab ntawd ntim nws mus rau hauv qhov chaw siv cov txheej txheem archiver, txoj cai-nias ntawm cov npe ntawm koj lub template thiab xaiv "Tsim archive …". Cov ntaub ntawv tsim yuav tsum muaj qhov txuas ntxiv.zip.

Kauj Ruam 6

Mus rau cov peev txheej tswj kev tswj hwm thiab mus rau ntu "Qauv". Siv cov haujlwm ntawm kev teeb tsa, xa tawm cov ntawv koj nyuam qhuav ua thiab tos rau cov lus ceeb toom txog kev ua tiav kev teeb tsa. Tom qab ntawd pab kom cov txiaj ntsig cov qauv los xaiv nws los ntawm lub neej ntawd tshuab raj.

Kauj Ruam 7

Kos tus qauv tsim rau koj tus qauv yav tom ntej thiab sau cov HTML tsim nyog nyob rau hauv cov ntaub ntawv index.php raws li. Tsim kev cai siv qee cov qauv ntawm lub cav. Yog li, koj tuaj yeem nkag mus rau lo lus txib kom hloov pauv tus qauv Joomla headers:

Cov cai no yuav muaj tag nrho cov cim uas xav tau hauv ntu ntawm nplooj ntawv.

Kauj ruam 8

Koj tuaj yeem sau koj tus kheej lub rooj plaub ntug cascading rau hauv template.css hauv ib qho ntawm cov peev txheej. Tom qab tsim tus tshiab css template, suav nrog nws hauv koj cov ntaub ntawv index.php siv

  • / qauv / template; ? & rt; /css/template.css”type =“ntawv nyeem / css”>.

    Kauj Ruam 9

    Ntxiv mus, tsim cov nplooj ntawv markup siv HTML code. Ua qhov no, khaws kho kom raug index.php raws li koj tus qauv muab. Yog tias tsim nyog, ntxiv rau cov haujlwm koj xav tau rau templateDetails.xml cov ntaub ntawv thaiv, muab cov ID kom tsim nyog rau txhua ntu hauv koj tus qauv. Yog li, los teeb cov tsis muaj header, koj tuaj yeem tsim Lub Taub Hau thiab suav nrog qhov no rau hauv cov ntaub ntawv index.php raws li hauv qab no:

    Kauj ruam 10

    Tom qab tsim lub taub hau tshiab, koj tuaj yeem hloov kho nws los ntawm Joomla qhov rai hauv tus thawj tswj hwm module. Txhawm rau ua qhov no, ua ib qho kev tshaj tawm tshiab thiab ntxig rau cov ntawv sau thiab cov duab tsim nyog uas yuav tshwm hauv cov npe. Ua tib yam nrog txhua lub ntsiab ntawm cov interface koj tab tom tsim thiab txuag txhua qhov kev hloov koj ua.

  • Pom zoo: