Feature #20556
closedAdd TypoScript properties to enable the admin panel only on specific pages/typeNums
0%
Description
If in TypoScript the setting "config.admPanel = 1" is set, the admin panel will show on all pages in the frontend. If a specific page or typeNum is used to return XML or JSON data (e.g. for AJAX disposal), the admin panel would mix up these responses.
Of course it's possible to define conditions to avoid this - however it's a common task that should be solved without TypoScript conditions by new properties, e.g:
config.admPanel {
deny {
pages = 1,2,3
types = 100,101
}
// allow takes precedence:
allow {
pages = 10,11,12
types = 0
}
}
(issue imported from #M11254)
Updated by Benni Mack over 15 years ago
Hey Olly,
why not just do TS conditions?
Updated by Philipp Gampe over 15 years ago
because the you have do not have a clear setting...
it would just be more consistent
Updated by Georg Ringer about 15 years ago
what is wrong with
config.admPanel = 0
page= PAGE
page {
config.admPanel= 1
}
or
config.admPanel = 1
xmlFeed = PAGE
xmlFeed {
typeNum = 1234
config.admPanel = 0
}
as said in http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.1/view/1/7/#id4354902
CONFIG > configuration for the page. Any entries override the same entries in the toplevel-object "config".