Configuration
Page Type Configuration
The extension defines two page types for serving content:
llms.txt Page Type
llmstxt = PAGE
llmstxt {
typeNum = 1699
config {
disableAllHeaderCode = 1
additionalHeaders.10.header = Content-Type: text/plain; charset=utf-8
additionalHeaders.10.replace = 1
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
10 = USER
10 {
userFunc = WebVision\AiLlmsTxt\Controller\LlmsTxtController->generateAction
}
}
Copied!
Markdown Page Type
markdown_page = PAGE
markdown_page {
typeNum = 1701
config {
disableAllHeaderCode = 1
additionalHeaders.10.header = Content-Type: text/plain; charset=utf-8
additionalHeaders.10.replace = 1
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
forceAbsoluteUrls = 1
}
10 = USER
10 {
userFunc = WebVision\AiLlmsTxt\Controller\LlmsTxtController->renderPageAsMarkdown
}
}
Copied!
Route Configuration
The extension includes route enhancers to create user-friendly URLs:
# EXT:ai_llms_txt/Configuration/Routes/RouterEnhancer.yaml
routeEnhancers:
PageTypeSuffix:
type: PageType
map:
.md: 1701
llms.txt: 1699
Copied!
To use these routes, include them in your site configuration:
# config/sites/main/config.yaml
imports:
-
resource: 'EXT:ai_llms_txt/Configuration/Routes/RouterEnhancer.yaml'
Copied!
Advanced Configuration
Custom Content Processing
The extension uses TYPO3's standard content rendering. To customize how content appears in Markdown:
- Use standard TYPO3 content element configuration
- Customize TypoScript rendering for specific content types
- The extension respects all standard TYPO3 content visibility settings