There's a multidomain website with different root levels in one TYPO3 instance.
I want to create a sitemap which includes all pages from all microsites in this instance. When I use a vhs viewhelper (v:page.menu) there's no way to set the entryLevel above the current root level.
Any idea?
Are you sure, there's no way?
ListViewHelper explains the attribute entryLevel to be the "optional entryLevel TS equivalent of the menu".
In TS you can set negative entryLevels to go behind the rootpage. This should work with the viewhelper, too.
Related
In my TYPO3 8.7.31 I have an error:
No TypoScript found. Did you already setup module.tx_femanager.settings.configPID in your PageTS?
As the error message says, you need to configure module.tx_femanager.settings.configPID in your Page TSConfig (not to confuse with TypoScript). This is necessary to make the TypoScript setting available also in the TYPO3 backend which is not the case by default.
As mentioned in the documentation you need to specify the page id (pid), where your main TypoScript settings (frontend) are stored. Usually you will take the root page of your installation.
To set the Page TSConfig, edit the page properties of your root page and switch to the tab Resources. There you can find a field Page TSConfig. In this field you need to put above mentioned setting.
A hint for your next question: please put more effort into your question! Let us know what you tried so far. And please do a proper formatting of your question.
The Problem can also appear, if you have set the
module.tx_femanager.settings.configPID = 1
in your root page ts
but not included the main settings (femanager) in the template.
I have a website in TYPO3, it has a header and footer and a load of generated page links.
Is there any parameters or TypoScript that can be used that would enable all links to have absolute paths? e.g. the item that generates the menu might look like
<f:cObject includeAbsolutePath="true" typoscriptObjectPath="lib.content_subMenu" />
I basically need all page links to be absolute.
I am using Typo3 V7.6
config.absRefPrefix might be your solution. But this could lead to drawbacks as well, e.g. in multi-domain environments. But in that case, you might work with conditions to set a proper domain name.
See details in the documentation.
There is a conflict between two installed extentions in one page. I want to disable one of the extentions only for this specific Page.
Is there a way to accomplish this? Maybe somehow in Backend Templates?
On the page where you want to disable the extension you can create a template where you disable the extension by TypoScript:
plugin.tx_badextension >
tt_content.list.20.tx_badextension >
This works recursive, that means all sub-pages of the page where this snippet is included in a template are concerned too. If you want to enable the plugin on a sub-page again, you've to include there the TypoScript of the extension.
It's also possible to include the extension's TypoScript only on a few pages and not in the root-page. But the configuration is always inherited and has to be inversed if the plugin shall be activated or deactivated on sub-pages.
No, there are no way. Extensions can only disable for the complete TYPO3 installation.
EDIT:
Here is a way to disable this extension for a single pages like news page with typoscript.
// Skip tx_jhopengraphprotocol for single news view, as EXT:news adds dedicated og-properties
[globalVar = GP:tx_news_pi1|news > 0]
temp.tx_jhopengraphprotocol >
page.669 >
[global]
If you look in the setup.txt https://github.com/jonathanheilmann/ext-jh_opengraphprotocol/blob/master/Configuration/TypoScript/setup.txt
You should be able to deactivate it with
temp.tx_jhopengraphprotocol >
page.669 >
In your TypoScript for that page.
Depending on the way the extensions are included you might be able to deactivate the rendering of one extension.
Most extensions are configured in typoscript, where you can clear the corresponding part in an extension template (or TS condition) for your page.
either you deactivate the extension specific part (plugins.my_extension >)
or the inclusion in the page rendering (page.100 > if the extension was included like page.100 < plugin.my_extension)
or clear the configuration for plugins as subtree of tt_content tt_content.list.20.my_extension >
The way is dependent on your extension and might fail if the inclusion is done in other ways (e.g. hooks, signals)
IN TYPO3 versions before 7.6 it was possible to render links inside the content element HTML by using the TypoScript
tt_content.html.parseFunc.tags.link < lib.parseFunc.tags.link
This does not work anymore since 7.6. How can it be solved?
If you use fluid_styled_content, override the HTML.html and want to use forms and have the Typo3 link tags <link>text</link> converted to html links, you will have to use this (at least this worked for me, both custom html forms were working and links were converted):
<f:format.htmlentitiesDecode>
<f:format.html parseFuncTSPath="lib.parseFunc">
{data.bodytext}
</f:format.html>
</f:format.htmlentitiesDecode>
There are a couple of possible solutions for this question.
1.) Use fluid_styled_content.
I guess that now fluid_styled_content instead of css_styled_content is used. Therefore the used TypoScript does not work anymore. A valid solution would be to switch back to css_styled_content. However that is the old ancient way and for newer projects you shouldn't do this.
2.) Override the template of fluid_styled_content.
If you open the template of fluid_styled_content and the HTML element, found at typo3/sysext/fluid_styled_content/Resources/Private/Templates/Html.html you will see
<f:format.raw>{data.bodytext}</f:format.raw>
this must be changed to
<f:format.html>{data.bodytext}</f:format.html>
Overriding is described in the docs, see https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/Configuration/OverridingFluidTemplates/Index.html
I am looking for a way to be able to set some content dynamically in the layout of a typo3 site.
For example, is there a way to set dynamically the title of the site?
So, I am wondering if is it possible to define some variables in Page TSConfig area as shown in the following image.
This option would be very usefull in cases where users are not so experienced to edit this content from Template tools --> Setup.
Thanks a lot!!!
Only admins have access to pages TSconfig field. They have access to the template record (and the TypoScript module) too.
Therefore you should use constants instead which do exactly what you want to archive.
Have a look at the TYPO3 documentation: https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/TypoScriptTemplates/Index.html
Define in constants:
# cat=page type=string; label=Page Title
title = foo
And use in setup:
config.pageTitle = {$title}