FAQ
Within this page
Configure RTE
Using TSconfig:
RTE.
RTE.
Important
- Be careful, this will configure the RTE for all
tt_content bodytextfields! - Use TCA overrides if you want to configure the blog content RTE only.
Using TCA overrides:
Create a TCA override for post records:
my_
With this content:
$GLOBALS['TCA']['tx_t3blog_post']['columns']['content']['config']['overrideChildTca']['columns']['bodytext']['config']['richtextConfiguration'] = 'my_rte_preset';
$GLOBALS['TCA']['tx_t3blog_post']['columns']['preview_text']['config']['richtextConfiguration'] = 'my_rte_preset';
Some links are broken, i.e. categories, archive or rss
Check if plugin. is set right (see Installation).
RSS Output instead of page
Remove static template T3Extblog: RSS setup . It should only be included on a separate RSS specific page.
Logging
Versions later than 5.0.0 of this extension use the TYPO3 PSR-3 logging: https://docs.typo3.org/m/typo3/reference-coreapi/9.5/en-us/ApiOverview/Logging/Configuration/Index.html
By default, all errors are logged into var/.
When in Development application context all debug and notice messages will be logged too.
Feel free to adjust this as you wish. For example configure the log to include messages about blocked comments and subscriptions:
$GLOBALS['TYPO3_CONF_VARS']['LOG']['FelixNagel']['T3extblog']['writerConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::NOTICE => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 't3extblog',
],
]
];
Link RSS in page header
Use following TS config where 123 is the UID of yours RSS page:
page.headerData {
100 = TEXT
100.wrap = <link rel="alternate" type="application/rss+xml" title="Blog RSS Feed" href="|" />
100.typolink {
parameter = 123
returnLast = url
forceAbsoluteUrl = 1
}
}
Add canonical tag to page header
Use following TS config:
[globalVar = GP:tx_t3extblog_blogsystem|post > 0]
page.headerData.123 {
wrap = <link rel="canonical" href="|">
htmlSpecialChars = 1
typolink {
parameter.data = TSFE:id
forceAbsoluteUrl = 1
returnLast = url
additionalParams.cObject = COA
additionalParams.cObject {
10 = TEXT
10.dataWrap = &tx_t3extblog_blogsystem[controller]=Post&tx_t3extblog_blogsystem[action]=show&tx_t3extblog_blogsystem[post]={GP:tx_t3extblog_blogsystem|post}&tx_t3extblog_blogsystem[year]={GP:tx_t3extblog_blogsystem|year}&tx_t3extblog_blogsystem[month]={GP:tx_t3extblog_blogsystem|month}&tx_t3extblog_blogsystem[day]={GP:tx_t3extblog_blogsystem|day}
10.if.isTrue.data = GP:tx_t3extblog_blogsystem|post
}
}
}
[global]
Does it work together with EXT:indexed_search?
Yes! T3extblog works together with "indexed search engine". Once your posts are indexed, your visitors can search through all your posts. You should restrict indexing to the main content (blogposts) and exclude latest posts, the category module etc. to get useful results.
Does it work together with EXT:index and EXT:seal?
Yes! This extension ships integrations for EXT:index
(package name lochmueller/), which is used by search extensions like
EXT:seal. Both integrations are registered automatically
when EXT:index is installed.
Which integration is used depends on the technology of the index configuration record:
| Technology | Integration | Configuration |
|---|---|---|
database | Content type for the blogsystem plugin | TypoScript module. |
frontend, http | Extender t3extblog- | record in the index configuration |
Database indexing
The database indexing does not render the page, but reads the content elements of each page. The blogsystem plugin content element is replaced by one index entry per post, including the post title, the preview text and the post content elements.
The posts are taken from the storage pages configured in the TypoScript of the blogsystem plugin page.
As the indexing runs in backend context (usually CLI), the TypoScript module. is used,
like for the blog backend module. By default this is a copy of plugin..
Important
Make sure to copy the configuration again when changing the storage PID after the default setup is included, otherwise no posts are indexed (only the blogsystem plugin page itself):
plugin.tx_t3extblog.persistence.storagePid = 123
module.tx_t3extblog < plugin.tx_t3extblog
No extender configuration is needed for database indexing.
Frontend and HTTP indexing
These technologies render or fetch each URI, so the post URIs need to be part of the page traversing. Add the extender to the configuration (JSON) of the index configuration record. Replace 123 with your storage PID and 456 with the PID of your blogsystem plugin page:
{
"extender": [
{
"type": "t3extblog-posts",
"limitToPages": [456],
"recordStorages": [123],
"dropOriginalUri": false
}
]
}
The t3extblog- extender is a preset of the generic record extender of EXT:index, so all options of
the generic extender (like record or constraints) are supported too. Set drop to true
if the list view should not be indexed.
Filter and mark posts in EXT:seal
All post documents get the tag Blog (in addition to the default tags Page and the page keywords). Posts are
detected by their URI, so this works for all index technologies.
Add a filter of type "Tag condition" to the search plugin to let your visitors filter for posts. Use one line per
tag in the format value=Label:
BlogPost=Blog posts
Page=Pages
File=Files
To mark posts in the result list, overwrite the partial Result/ of EXT:seal and check the tags:
<f:for each="{item.tags}" as="tag">
<f:if condition="{tag} == 'BlogPost'">
<span class="badge">Blog post</span>
</f:if>
</f:for>
Can I override the basic templates?
Copy the template files (t3extblog +Partials +Templates)
in your fileadmin or custom extension and set the path via TS or constant editor.
See Configuration for code snippets!
Sitemap
Important
Make sure to install EXT:seo (package name typo3/)!
This extension include a preconfigured setup for the TYPO3 CMS core feature sitemap
which could be included as a static template.
See t3extblog/ for details.
Tip
- See here for more info on core sitemaps:
- https://usetypo3.com/xml-sitemap-in-typo3.html https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Feature-84525-XMLSitemap.html
Breadcrumb menu
This extension comes with a custom menu processor for blog posts. Use it like this:
page = PAGE
page {
10 = FLUIDTEMPLATE
10 {
dataProcessing {
# Core menu processor for pages
100 = menu
100 {
as = schemaBreadcrumbMenu
special = rootline
special.range = 1|-1
}
# Custom menu processor for posts
110 = FelixNagel\T3extblog\DataProcessing\PostMenuProcessor
110 {
as = schemaBreadcrumbMenu
}
}
}
}
Example usage with a simple breadcrumb markup (incl. schema.org semantic sugar):
<nav aria-label="breadcrumb">
<ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
<f:for as="menuItem" each="{schemaBreadcrumbMenu}" iteration="iterator">
<li class="breadcrumb-item{f:if(condition: '{menuItem.current}', then: ' active')}"
itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{f:uri.typolink(parameter: menuItem.link, absolute: true)}">
<span itemprop="name">{menuItem.title}</span>
</a>
<meta itemprop="position" content="{iterator.cycle}" />
</li>
</f:for>
</ol>
</nav>
Important
- Alternatively, you can use EXT:schema (package name
brotkrueml/) and use the built-in view helper:schema <schema:breadcrumb breadcrumb=" {schema Breadcrumb Menu}"/>
Does it work with EXT:dd_googlesitemap?
Yes! Use this syntax: ?e (where 123 is your storage folder page id).
Add an optional 'limit' parameter for very large blogs. Example: &limit=100.
Important
No longer support since version 5.x! Use the new core feature instead: SEO sitemap support
Tip
Since Google supports RSS-Feeds, we recommend to use this solution!
Filtering tags doesn't work?
To avoid filling the cache with not existing pages, the filter only works with tags => 3 letters.
Link handler configuration
Since TYPO3 8.7 a built in link handler is integrated into the core. See here for more info: https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.6/Feature-79626-IntegrateRecordLinkHandler.html
Replace 123 with your storage PID and 456 with the PID of your blogsystem plugin page.
Example page TSconfig configuration:
TCEMAIN.linkHandler {
tx_t3blog_post {
handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
label = Blog-Post
configuration {
table = tx_t3blog_post
storagePid = 123
hidePageTree = 1
}
scanAfter = page
}
tx_t3blog_cat {
handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
label = Blog-Category
configuration {
table = tx_t3blog_cat
storagePid = 123
hidePageTree = 1
}
scanAfter = page
}
}
TypoScript configuration
config.recordLinks {
tx_t3blog_post {
typolink {
parameter = 456
additionalParams.cObject = COA
additionalParams.cObject {
10 = TEXT
10.value = &tx_t3extblog_blogsystem[controller]=Post
20 = TEXT
20.value = &tx_t3extblog_blogsystem[action]=show
30 = TEXT
30.dataWrap = &tx_t3extblog_blogsystem[post]={field:uid}
}
title.field = title
useCacheHash = 1
}
}
tx_t3blog_cat {
typolink {
parameter = 456
additionalParams = &tx_t3extblog_blogsystem[category]={field:uid}
additionalParams.insertData = 1
useCacheHash = 1
}
}
}
Set default post category
Add this to the page or user TSconfig:
TCAdefaults {
tx_t3blog_post {
# CSV of category UIDs
cat = 1,2,3
# Works for other fields too!
hidden = 0
}
}
Disable post fields
Add something similar to the page or user TSconfig:
TCEFORM.tx_t3blog_post {
# Just some examples...
hidden.disabled = 1
starttime.disabled = 1
endtime.disabled = 1
preview_mode.disabled = 1
preview_text.disabled = 1
}
Hint
Do not hide the date field as it's needed for sorting!
Translation / Localization
Localization works like for any other TYPO3 extension:
plugin.tx_t3extblog._LOCAL_LANG {
en {
comment.human = Please confirm!
}
}
Adding localizations
Feel free to add new localization!
Crowdin project: https://crowdin.com/project/typo3-extension-t3extblog
More information about TYPO3 translations: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Internationalization/TranslationServer/Crowdin.html
Clear frontend cache
Since version 2.2.0 this extension makes use of cache tags. The following cache tags are available:
- tx_t3extblog
- tx_t3extblog_PID
- tx_t3blog_post_uid_UID
- tx_t3blog_post_pid_PID
- tx_t3blog_com_pid_PID
- tx_t3blog_cat_pid_PID
PID = page uid, UID = record uid
Cache tags are cleared by a built-in functionality when a record is modified or created in backend and frontend.
This works by adding cache tags for each page rendered with a t3extblog plugin. Each time a blog record is edited, deleted or created, this cache entry is flushed. No additional cache configuration is needed.
It's still possible to use TS config for adjusting the cache behaviour. This could be basic configuration (see below) or using a more advanced tag approach:
# Flushes all blog related caches
TCEMAIN.clearCacheCmd = cacheTag:tx_t3extblog
# Flushes cache for all records in page with UID 123
TCEMAIN.clearCacheCmd = cacheTag:tx_t3extblog_123
Before version 2.2.0
When a frontend user adds a new comment the blogsystem plugin page cache is cleared using default TYPO3 extbase functionality.
When editing records in backend (for example posts or comments) as a non admin user the cache needs to be cleared manually or by using page TS config:
# PIDs of page which need to be cleared
TCEMAIN.clearCacheCmd = 123,456,789
The code needs to be added to the sys folder where the blog records are edited.
Hint
The mentioned TCEMAIN settings are part of the TYPO3 core and can be used therefore not only for the t3extblog extension.
Some output tweaks
Category-Module
Add number of articles per category
Just add <f: to Templates/.
This function is expensive, so we don't add it to the standard template files.
Detail-View (show post)
Add prev/next-function
Link the previous / next article in the detail view of a post. The following lines will do the job, add them in Templates/Post/Show.html
<f:if condition="{nextPost.linkParameter}">
<f:then>
<f:link.action controller="Post" action="show" pageUid="{settings.blogsystem.pid}" arguments="{nextPost.linkParameter}"> < {nextPost.title} </f:link.action>
</f:then>
</f:if>
<f:if condition="{previousPost.linkParameter}">
<f:then>
<f:link.action controller="Post" action="show" pageUid="{settings.blogsystem.pid}" arguments="{previousPost.linkParameter}"> {previousPost.title} > </f:link.action>
</f:then>
</f:if>
TYPO3 CMS legacy support
Since version 6.x
Please take a look here which branch / version suites your needs: https://github.com/fnagel/t3extblog/blob/master/README.md#installation
Version 4.5 - 4.7
There is a legacy branch for TYPO3 4.5-4.7. It's functional (tested in TYPO3 4.7) but needs some fixes backported. Please open an issue on GitHub if you are interested in a bugfixed 4.5 branch.
Version 0.9.1 of this extension is NOT compatible with TYPO3 4.5 or 4.7 even if TER says otherwise. You will need to use this branch: https://github.com/fnagel/t3extblog/tree/legacy