(1)
(2)
- - -
I have a few questions to myself I must give answers for, after seeing that.
ChatGPT AI wrote: Sure, here's an example of a simple page in CouchCMS template language:
- Code: Select all
<cms:template title='Basic page'>
<head>
<title><cms:show k_page_title /></title>
</head>
<body>
<div id="main">
<cms:editable name='main_content' type='richtext'>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec id ante libero. Curabitur convallis elit dolor, vitae egestas elit placerat eget.</cms:editable>
</div>
</body>
</cms:template>
ChatGPT AI wrote: This code defines a template called "Basic page". In the head of the document, it sets the title to the value of the `k_page_title` variable. In the body, it creates a div with an editable region named "main_content" that contains some placeholder text.
When this template is used to create a new page, the user will be able to edit the content inside the "main_content" region without having to touch any code.
(2)
- - -
I have a few questions to myself I must give answers for, after seeing that.
