skill-doli-website-edit
하는 일
이 스킬은 페이지 하나의 내용이나 템플릿처럼 데이터베이스에 저장된 Dolibarr 웹사이트를 바꾸는 방법을 설명합니다. Dolibarr 웹사이트를 운영하며 특정 수정이 필요한 사람을 위한 스킬입니다.
사용하는 경우
- ✓Dolibarr 웹사이트 페이지의 텍스트나 HTML을 바꿔야 할 때.
- ✓수정 전에 Dolibarr 데이터베이스에서 올바른 사이트와 페이지를 찾아야 하는 경우.
- ✓웹사이트 템플릿이나 페이지를 재디자인이 아니라 최소한으로 바꾸고 싶을 때.
스킬 링크
https://github.com/Dolibarr/dolibarr/blob/develop/.agents/skills/skill-doli-website-edit/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Dolibarr 웹사이트의 연락처 페이지 문구를 바꿔 주세요. 나머지 레이아웃은 그대로 두세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
데이터베이스에서 웹사이트와 페이지를 찾는 방법을 보여 준 뒤, 기존 HTML 구조와 CSS 클래스를 유지하는 최소한의 변경으로 저장된 페이지 내용을 수정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Skill: Handle Dolibarr website edit
A Dolibarr website (module Website) is loaded into the database. It is NOT a set of static files: the source of truth is the database, and the files under documents/website/ are only generated artifacts.
Where the data lives
llx_website: the websites. Relevant columns:rowid,ref(site name, used as directory name),lang,fk_default_home,otherjs,othercss.llx_website_page: the pages of each website. Relevant columns:rowid,fk_website,pageurl,title,lang,type_container,content(the HTML of the page),htmlheader(the<head>part).
To find the site and the page to edit:
SELECT rowid, ref FROM llx_website WHERE ref = 'mywebsite';
SELECT rowid, pageurl, title FROM llx_website_page WHERE fk_website = <siteid>;
Editing a page
Storage of page content
- Identify the website and the page (see queries above).
- To change the content of a page, edit the HTML stored in the
contentcolumn ofllx_website_page:
UPDATE llx_website_page SET content = '...new html...' WHERE rowid = <pageid>;
- The content is the HTML of the page body. Keep the existing HTML structure (containers, CSS classes) — do not redesign or reformat the whole page, apply the minimal change asked for.
Page format
- The
type_containercolumn can bepage(common page),bannerif this is just a part of a page included into a main page,blogpostif the page is a news article (fulle page or included into another page), orlibraryif page contains only PHP functions, orsetupfor a page never shown to visitor but used to offer a form to setup the website, orother(usually a part of page included into a mainpagetype page) - The content of each page must be organized using
<section conteneditable="true" id="a unique id">tags to separate each independant block of content.
Regenerating the .tpl.php file
The content column alone is not rendered directly. Each page has a generated file:
documents/website/<site-ref>/page<pageid>.tpl.php
<site-ref>is therefof the website (directorydocuments/website/<ref>/).documentsis the Dolibarr documents root ($dolibarr_main_data_rootfromhtdocs/conf/conf.php). With multi-entity enabled, the path isdocuments/<entity>/website/<site-ref>/.- After any change to the
contentcolumn, this file MUST be regenerated, otherwise the change is not visible on the rendered site.
Important: the .tpl.php file is NOT a raw copy of the content column. It is built by dolSavePageContent() (in htdocs/core/lib/website2.lib.php), which wraps the page content with a PHP header, the page htmlheader, the website CSS and other PHP code. So never write the content value raw into the .tpl.php file.
Two ways to regenerate the file:
- Preferred, through Dolibarr code: call
dolSavePageContent($filetpl, $website, $objectpage, 1)with the website object and the page object loaded from database, where$filetpl = $dolibarr_main_data_root.'/website/'.$website->ref.'/page'.$pageid.'.tpl.php'. This is exactly what the website editor does when saving a page. It can also be done by saving the page from the website editor UI (Website menu -> site -> edit page -> Save). - Only if Dolibarr code cannot be executed: archive the old file first (see below), then regenerate the file with the same structure as the previous version, replacing only the part that carries the page content with the new value from the
contentcolumn.
Archiving the previous version
Before rewriting page<pageid>.tpl.php, the existing file MUST be archived as:
documents/website/<site-ref>/page<pageid>.tpl.php.v<TIMESTAMP>
<TIMESTAMP>is the unix timestamp of the moment of archiving (this is the convention ofarchiveOrBackupFile()inhtdocs/core/lib/files.lib.php, which moves — not copies — the old file and keeps the last 5 versions only).- Never overwrite or delete the old .tpl.php without creating this
.v<TIMESTAMP>version file first.
Verification
After an edit, check that:
- The
contentcolumn ofllx_website_pagecontains the new HTML. documents/website/<site-ref>/page<pageid>.tpl.phphas been rewritten (check its modification time).- The previous version exists as
page<pageid>.tpl.php.v<TIMESTAMP>.
If the site is served through the alias/container mode, also check that the alias file documents/website/<site-ref>/<pageurl>.php stil
자주 묻는 질문
웹사이트 파일은 어디에 있나요?
웹사이트는 데이터베이스에 있습니다. website 문서 폴더 아래의 파일은 생성된 사본이므로, 원본은 데이터베이스입니다.
전체 페이지를 다시 만드나요?
아니요. 요청한 최소한의 변경만 적용하고, 기존 구조를 유지합니다.
데이터베이스 접근이 필요한가요?
네. 수정은 웹사이트 테이블에 대한 SQL로 이뤄지므로 데이터베이스 접근 권한이 필요합니다.
상세 정보
작성자의 원본 설명
Handles instructions to edit a Dolibarr website loaded into the database. Use when the user tries to modify a website, a website template or the content of a website page.
repo: Dolibarr/dolibarr
인기도
- GitHub 스타
- 7.8k
- 순위
- #12827
- 라이선스
- GPL-3.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.