TYPO3 does not cache the page - typo3

My TYPO3 6.2.31 page has everywhere enabled caching ... But when I call the Page and look in admin panel ..
My typoscript looks like this:
config {
doctype = html5
renderCharset = utf-8
metaCharset = utf-8
prefixLocalAnchors = all
simulateStaticDocuments = 0
tx_realurl_enable = 1
absRefPrefix = /
#CACHE AND INDEX
no_cache = 0
no_search = 0
index_enable = 1
index_externals = 1
what could be the problem for not caching my site?

prefixLocalAnchors causes the page to be not cached!
Set prefixLocalAnchors = 0

There are a lot of things which incluence if a page is cached or not:
an extension
TS like page.config.no_cache = 1
disable caching in the page properties
and I guess some more as well.

Related

Powermail missing absolute links in mails when in lists <ul>

Powermail use lib.parseFunc_powermail, to parse the content of mail to sender and receiver. This converts the URLs into absolute URLs and it works.
If URLs are inside of a list this doesn't work anymore. All URLs in the mails are relative.
My tries to change TypoScript config:
# ParseFunc Configuration for using FAL links in receiver and sender mail
lib.parseFunc_powermail < lib.parseFunc_RTE
lib.parseFunc_powermail.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.tags.a.typolink.forceAbsoluteUrl = 1
# extended with
lib.parseFunc_powermail.tags.li.stdWrap.parseFunc = < lib.parseFunc_powermail
No result. Other tries.
lib.parseFunc_powermail.tags.li.callRecursive = 1
lib.parseFunc_powermail.externalBlocks.li.stdWrap.parseFunc < lib.parseFunc_powermail
lib.parseFunc_powermail.externalBlocks.li.stdWrap.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.externalBlocks.li.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.externalBlocks.li.stdWrap.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.externalBlocks.li.stdWrap.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.externalBlocks.ul.stdWrap.parseFunc.tags.li.stdWrap.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.externalBlocks.ul.stdWrap.parseFunc.tags.li.stdWrap.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.tags.li.stdWrap.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.tags.li.stdWrap.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.tags.ul.stdWrap.parseFunc.tags.li.stdWrap.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_powermail.tags.ul.stdWrap.parseFunc.tags.li.stdWrap.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
Does anyone have a tip on how to configure this properly?
Greetings, Heinz

TYPO3 - Translation doesn't show, always default language

(TYPO3 loading default language instead of translation) -> same story, but I can't fix it.
I do not have much experience in TYPO3 and I have the following problem at the moment.
Standard language is Dutch and I want a French translation. I have already translated a menu + page into French.
When I click on 'FR' (French) in the language select menu, the URL of index.php? Id = 215 & L = 0 changes to index.php? Id = 215 & L = 1, but the content remains in Futch.
I have srt_languagemenu installed and configured so that when the translation is not available, the language reference in the menu disappears. This works perfectly.
When I click on 'Save and open' from the backend after I did the translation, the normal standard (Dutch) page is also shown here.
Can someone tell me what I might do wrong or forgot to set?
TYPO3: 8.7.16
Thanks!
# Language Settings
# Default Language settings
config {
linkVars = L(0-1)
sys_language_uid = 0
sys_language_overlay = 0
sys_language_mode = content_fallback
page.config.language = nl
language = nl
locale_all = nl_NL.UTF-8
htmlTag_langKey = nl
htmlTag_setParams = lang="nl" dir="ltr" class="no-js"
}
# Language Frans
[globalVar = GP:L = 1]
config {
sys_language_uid = 1
htmlTag_langKey = fr_FR
language = fr_FR
locale_all = fr_FR.UTF-8
htmlTag_setParams = lang="fr" dir="ltr" class="no-js"
}
[global]
# REALURL
config.baseURL = {$siteUrl}
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
Can you please provide us your Typoscript section of config. including your conditions made for those languages?
Another possibile problem: On your root page you should have declared all languages of the system. You have to make sure, that the UID of each language record equals to the number of your L Parameter in the URI or at least the config. for this language must match it.

hide page & subpages from menu

I have the following page structure in TYPO3:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
Now I want to have 1/* + 4/* included in the header menu and 4/* + 7/* in the footer menu. Since the header and footer menus are different, I cannot just use the "hide in menu" feature and need to do it in TypoScript instead.
Here's what I have so far:
HEADERMENU = HMENU
HEADERMENU {
1 = TMENU
1.expAll = 1
1.NO = 1
1.NO {
stdWrap.if.value.field = uid
stdWrap.if.equals = 7
stdWrap.if.negate = 1
}
2 < .1
}
FOOTERMENU < HEADERMENU
FOOTERMENU.1.NO.stdWrap.if.equals = 1
The problem with this is, that it still displays the pages 8+9 in the header and 2+3 in the footer, even if it does not display page 1/7 anymore. I know that I could use if.isInList and the provide all subpage IDs, but then I'd have to change the TypoScript everytime I add a new page. If possible, I'd like to dynamically exclude a page and all its subpages.
How can I do that?
As Daniel mentioned in his answer there is a way to display all subpages of the selected pages. special = directory displays however only the subpages. So you could see only 2/3 and 5/6 and 8/9 in your menus.
special = directory
"This will generate a menu of all pages with pid = 35 and pid = 56."
I would suggest the excludeUidList property.
HEADERMENU = HMENU
HEADERMENU {
excludeUidList = 7
1 = TMENU
1.expAll = 1
2 < .1
}
FOOTERMENU < HEADERMENU
FOOTERMENU.excludeUidList = 1
It is working as a WHERE condition in a db SELECT query, so you won't get those pages on the first level and neither will it find their subpages then.
You could go for the special=directory approach to render a Menu of one or more pages and their subpages.
HEADERMENU.special = directory
HEADERMENU.special.value = 1, 4
More information in the documentation.

Setting up a TYPO3 page as multilingual page

I've got a TYPO3 page which is only in german. Now I want to set up the page in english as well. How can I realise this? I've read about webpage language and so on but, can't find a whole tutorial.
I'm using TYPO3 6.2.9
Thanks a lot
Update
## Localization menu:
lib.langMenu = HMENU
lib.langMenu {
special = language
special.value = 0,1,2
special.normalWhenNoLanguage = 0
1 = GMENU
1.NO {
XY = [5.w]+4, [5.h]+4
backColor = white
5 = IMAGE
5.file = EXT:cms/tslib/media/flags/flag_uk.gif || EXT:cms/tslib/media/flags/flag_de.gif
5.offset = 2,2
}
1.ACT < lib.langMenu.1.NO
1.ACT=1
1.ACT.backColor = black
1.USERDEF1 < lib.langMenu.1.NO
1.USERDEF1=1
1.USERDEF1.5.file = EXT:cms/tslib/media/flags/flag_uk.gif || EXT:cms/tslib/media/flags/flag_de.gif
1.USERDEF1.noLink = 0
1.USERDEF2 < lib.langMenu.1.USERDEF1
1.USERDEF2.backColor = green
}
Well,
in TYPO3 it is really easy to set up an other Language
All you need to do ist:
Create on your rootpage (the world) a new lanuguage
Then add in your Setup on the rootpage the following (for example french)
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = fr
config.locale_all = fr_FR
[global]
Then translate your first page.
You can access the page with this link.
Hope it helps.

How to setup a browse menu to cycle a page and it's sub pages only in typo3?

I am trying to set up a browse menu to cycle a page and it's sub pages. I have to have it in the format of < 2 > where < is the previous page, 2 is the current page, and > is the next page. To reslove this I decided to put an extension template on the parent page which in which a browse menu points to the first page of the sub page tree:
lib.pagenumber = HMENU
lib.pagenumber{
special = browse
special.items = | next
special.next.uid = 100
special.next.fields.title = 2
1 = TMENU
1{
noBlur = 1
expAll = 0
NO = 1
NO.ATagTitle = 1
NO.before = <div id="currLGMpg" class= "currpg">1</div>
NO.linkWrap = <div class=nextLGMpg>|</div>
}
}
The current page is not linked but just an image box which has to be between the prev and next links and also be auto numbered. this is the second problem I am trying to solve.
For the subpages I am thinking that a template on the first subpage with option split on the linkwrap would work for styling the prev and next links but I have no idea how to put the image for the current page in the middle.
Hello for cycling you should follows the below steps this only for next please follow same steps for prev.
temp.lightbox_navi.30 = HMENU
temp.lightbox_navi.30 {
stdWrap.wrap = <li>|</li>
special = browse
special {
items = next
items.prevnextToSection = 0
next.fields.title = < next Projekt
}
1 = TMENU
1 {
NO = 1
}
stdWrap.ifEmpty.cObject = HMENU
stdWrap.ifEmpty.cObject {
special = browse
special {
items = first
items.prevnextToSection = 0
first.fields.title = < next Projekt o
}
1 = TMENU
1 {
NO = 1
}
}
}
So I finally solved all but one issue. which is to auto number the page. For those interested, you need to map the next and prev separately to so that you can put a page number button inbetween. The following typoscript code sits on the root page tree of the pages you want to setup browse buttons for:
#Next page button setup
lib.nextpage = HMENU
lib.nextpage.special = browse
lib.nextpage.special.items = next
#can't remove the page title some reason it just gets inserted back so we set it to nothing
lib.nextpage.special.next.fields.title =
#if we're on the parent page of the page tree we wish to browse next should point to the first page of the subtree.
[globalVar = TSFE:id = 46]
lib.nextpage.special.next.uid = 100
[global]
lib.nextpage.1 = TMENU
lib.nextpage.1{
noBlur = 1
expAll = 0
NO = 1
#NO.ATagTitle = 1
NO.linkWrap = <div class=nextLGMpg>|</div>
}
#Page number
lib.currpage = TEXT
#can't autonumber yet so put a 1 as a placeholder for the current page number
lib.currpage.value = 1
lib.currpage.wrap = <div id="currLGMpg">|</div>
#previous page button setup
#copy from next page setup; tbh all we gain is 1 less line code
lib.prevpage < lib.nextpage
lib.prevpage.special.items = prev
lib.prevpage.special.prev.fields.title =
#again if we're at the 1st subpage we need to target the parent page as that is page one.
[globalVar = TSFE:id = 100]
lib.prevpage.special.prev.uid = 46
#next line tests to see if we're at page 1. If we are we remove the prev object because browsing stops here.
[globalVar = TSFE:id = 46]
lib.prevpage >
[global]
lib.prevpage.1 = TMENU
lib.prevpage.1{
noBlur = 1
expAll = 0
NO = 1
#NO.ATagTitle = 1
NO.linkWrap = <div class=prevLGMpg>|</div>
}
Once I figure out how to autonumber I will update the answer.