Joomla 템플릿을 어떻게 만듭니 까?첫 번째 Joomla 템플릿을 만드는 방법
0
A
답변
1
0
대부분 나는 joomla에 대해 배우는 데 시간을 보내고 CSS를 공부하는 데 지출되었습니다. 처음에 그렇게하는 것이 좋습니다. 아직하지 않았다면.
1
내가 생각할 수있는 가장 단순한 joomla 템플릿은 다음과 같습니다. 켜져 있다면 디버그 메시지의 헤드 비트, 일부 모듈 비트, 구성 요소 비트, 메시지 비트 및 스팟이 필요합니다.
그리고 내가 예 거기 모듈 코드 형태를 취할 당신에게 등 자신의 HTML 및 CSS를 통합 할
<html>
<head>
<jdoc:include type="head" />
</head>
<body>
<jdoc:include type="modules" name="top" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="bottom" />
<jdoc:include type="modules" name="debug" />
</body>
</html>
참고 :
는 대부분의 joomla 구성 요소 templatesused overwride 할 수 있으며 모듈. (그들은 html 폴더에 저장되어 있습니다. joomla와 함께 제공되는 기본 템플릿에서 이러한 예제를 볼 수 있습니다.)
또한 템플릿 디렉토리에서 파일을 업데이트해야합니다. 가장 중요한 것은 xml 파일입니다. 기본 모듈을 살펴보고 거꾸로/리버스 엔지니어로 작업하십시오.
지금 대부분의 템플릿에서 사용하는 표준 모듈 위치를 사용하는 것이 좋습니다 ... 템플릿을 쉽게 전환 할 수 있습니다.
1
0
**The index.php file should start with:**
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/
TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language;
?>" lang="<?php echo $this->language; ?>"
><head>
<jdoc:include type="head" /></head>
Those lines specify the beginning of the HTML output of your website. This PHP code
<jdoc:include type="head" />
will include in your page the Joomla header content (the page title, meta description, keywords, etc.) that you have added in the administrative end of your application.
Next, we have to add the "body" part of your website:
<body>
<jdoc:include type="component" />
</body>
</html>
**Edit your index.php file and change the lines between <body> and </body> to:**
<div id="container">
<div id="header">
<jdoc:include type="modules" name="top" />
</div>
<div id="sidebar_left" >
<jdoc:include type="modules" name="left" />
</div>
<div id="content" >
<jdoc:include type="component" />
</div>
<div id="sidebar_right">
<jdoc:include type="modules" name="right" />
</div>
<div id="footer" >
<jdoc:include type="modules" name="footer" />
</div>
</div>
Note that we have surrounded those in <div> tags and added information about their classes and ID's. In addition, we have wrapped everything in a div with ID "container" which allows us to set the basic dimensions of your page. The div classes will be defined in the template.css file once we create it.
**At this point, however, your index.php should look like this:**
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<
?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
</head>
<body>
<div id="container">
<div id="header">
<jdoc:include type="modules" name="top" />
</div>
<div id="sidebar_left" >
<jdoc:include type="modules" name="left" />
</div>
<div id="content" >
<jdoc:include type="component" />
</div>
<div id="sidebar_right">
<jdoc:include type="modules" name="right" /></div>
<div id="footer" >
<jdoc:include type="modules" name="footer" />
</div>
</div>
</body>
</html>
**Now we have to edit the templateDetails.xml file. In it, paste the following lines:**
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN"
"http://dev.joomla.org/xml/1.5/template-install.dtd">
<install version="1.5" type="template">
<name>tutorial_template</name>
<creationDate>02/2008</creationDate>
<author>SiteGround</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.siteurl.com</authorUrl>
<copyright>SiteGround</copyright>
<license>SG TOS</license>
<version>1.0.0</version>
<description>Basic Joomla Template</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>css/template.css</filename>
</files> <positions>
<position>left</position>
<position>right</position>
<position>top</position>
<position>footer</position>
</positions>
</install>
**The next step is to add some styling to the template. First, open the index.php file and add the following line just before the </head> tag:**
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates
/tutorial_template/css/template.css" type="text/css" />
**Now, you should edit the css/template.css file and add the following lines to it:**
* { padding: 0; margin: 0;}
img { border: 0;}
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.3em; margin: 0; padding: 0;
font-size: 13px; color: #0F0F0F; }
a:link, a:visited { text-decoration: underline; font-weight: normal; color: #000; outline:
none; text-align: left; }
.float { float: left; }
.clear { clear: both; }
.overall { background-color: #fff; }
div.center { text-align: center; margin: 0px auto 0 auto; padding: 0; width: 950px;
background: #FFFFFF; }
#container { width:960px; margin: auto; background-color: #f4f9fc; border: 1px solid
#e2e2e2; text-align: left; }
#header { text-align: center; background-color:#f4f9fc; height: 80px; }
#content { width: 598px; text-align: left; background-color:#f4f9fc; padding: 5px; }
#sidebar_left { text-align: center; background-color:#f4f9fc; width: 165px; border-
right: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; padding: 5px; }
#sidebar_right { background-color:#f4f9fc; text-align: center; width: 165px; border
-left: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; padding: 5px; }
#footer { background-color:#f4f9fc; text-align:center; border-top: 1px solid #e2e2e2; border-
bottom: 1px solid #e2e2e2; padding: 5px; }
관련 문제
- 1. Joomla 템플릿을 만드는 방법은 무엇입니까?
- 2. Joomla 첫 번째 구성 요소
- 3. joomla 템플릿을 새로 설정하는 방법
- 4. 제 joomla 템플릿을 도와주세요
- 5. Joomla : 특정 기사에 대한 템플릿을 변경하는 방법
- 6. Joomla 아티클이 주어진 템플릿을 사용하도록 강제하는 방법
- 7. 첫 번째 서블릿을 만드는 방법은 무엇입니까?
- 8. PDF의 첫 번째 페이지에서 이미지를 만드는 앱
- 9. WPF listBox 템플릿을 만드는 방법
- 10. Asp.net Gridview 헤더 및 첫 번째 열 frezee 만드는 방법?
- 11. 안드로이드에서 첫 번째 활동을 보이지 않게 만드는 방법
- 12. django 관리 페이지의 첫 번째 사용자를 만드는 방법
- 13. 첫 번째
- 14. 첫 번째 in .Net
- 15. 레일에 설정된 경로의 템플릿을 만드는 방법 3
- 16. 첫 번째 안드로이드 서비스
- 17. jqgrid의 첫 번째 열 값을 iframe 창으로 만드는 방법은 무엇입니까?
- 18. 첫 번째 행이 아니라 첫 번째 열로 헤더를 사용하여 Java Swing JTable을 만드는 방법은 무엇입니까?
- 19. Iphone : 첫 번째 섹션의 머리글을 볼 수 있도록 두 번째 섹션의 첫 번째 셀로 스크롤하는 방법
- 20. 월요일을 첫 번째 요일로 사용하는 GWT DatePicker를 만드는 방법은 무엇입니까?
- 21. Joomla : 앞 페이지에 두 번째 기사 콘텐츠 영역을 포함시키는 방법
- 22. joomla 사용자 정의 링크를 만드는 방법
- 23. Joomla : 모든 페이지에 다른 이미지를 표시하는 방법
- 24. Joomla 1.6 다국어 기능은 템플릿을 변경하지 마십시오
- 25. joomla 1.5에서 사용자 로그인 후 템플릿을 변경하십시오.
- 26. 첫 번째 문자는 jquery를 사용하는 숫자가 아니어야합니다.
- 27. 첫 번째 열을 기반으로 열을 채우는 방법
- 28. UITableView에서 헤더와 첫 번째 행을 수정하는 방법
- 29. DataGridview에서 첫 번째 행의 가시성을 변경하는 방법
- 30. , 현재 요소의 첫 번째 자식을 선택하는 방법?