在页面树中使用不同的域(Use different domains in page tree)
我有这样的页面树:
- root -- subpage 1 --- subpage1.1 -- subpage 2 --- subpage 2.1 --- subpage 2.2 -- subpage 3 …
现在我必须将其他域链接到子页面2,因此子页面2下的所有链接都必须使用此域。 所有到其他部分的链接都必须使用根域。 菜单也必须使用相应的域。
我怎样才能做到这一点?
I have e.g. this page tree:
- root -- subpage 1 --- subpage1.1 -- subpage 2 --- subpage 2.1 --- subpage 2.2 -- subpage 3 …
Now I have to link an additional domain to subpage 2, so all links under subpage 2 have to use this domain. All Links to other parts must use the root-domain. Also the menu must use the respective domains.
How can I do this?
原文:https://stackoverflow.com/questions/39848926
最满意答案
要启用跨域的typolink ,您必须使用TypoScript安装程序激活它:
config.typolinkEnableLinksAcrossDomains = 1
设置上面的一个,也设置(TypoScript设置)
config.typolinkCheckRootline = 1
我已经测试过,它对我来说一直工作。
TYPO3 =< 8.7 LTS
To enable typolinks across domains you must activate it with TypoScript Setup:
config.typolinkEnableLinksAcrossDomains = 1
Setting the above one, also sets (TypoScript Setup)
config.typolinkCheckRootline = 1
I've tested it and it works so far for me.
TYPO3 >= 9.0
Note about TYPO3 >= 9.0
Since TYPO3 9.0
config.typolinkCheckRootline
is always active. You must safely remove it therefore.Note about TYPO3 >= 9.4
If you use the new site configuration introduced in 9.4, you don't need
config.typolinkEnableLinksAcrossDomains
anymore.
相关问答
更多-
def excluded?(value) EXCLUSION_DOMAINS.any? { |domain| value.include? domain } end def excluded?(value) EXCLUSION_DOMAINS.any? { |domain| value.include? domain } end
-
返回的树存储了用于对训练数据进行预测的值。 你应该能够问这些预测是什么类的。 class(regression_tree_gini$y) [1] "numeric" class(classification_tree_gini$y) [1] "factor" The returned tree has stored values for predictions on the training data. You should be able to ask what the class is of thes ...
-
由于DOM是XML的树表示 虽然您可以将DOM与XML结合使用,但DOM通常是HTML的树形表示。 和xslt处理器使用树结构作为输入, 当我在命令行使用saxon时,我给它一个文件。 它是一个字节序列,而不是树。 有些东西必须将这个序列转换成树。 我想知道DOM和xslt处理器的树结构有什么区别? 列出所有差异太长但有些显着: DOM树应该符合一套标准。 他们有一个公共界面。 XSLT处理器使用的树不必符合任何标准。 XSLT处理器可以很好地创建自己的树,它只能用于自己的目的。 DOM树通常在结构上是可变 ...
-
有没有办法在Wordpress中使用不同的域启用网络登录?(Is there a way to enable network login in Wordpress with different domains?)[2021-05-18]
在wp-config.php中使用它了: $allowed_domains = array( 'site.local', 'anothersite.local' ); $cookie_domain = (in_array($_SERVER['SERVER_NAME'], $allowed_domains)) ? $_SERVER['SERVER_NAME'] : $allowed_domains[0]; define('COOKIE_DOMAIN', $cookie_domain); 它会检 ... -
Codeiginiter的多域(Multi Domains for Codeiginiter)[2022-11-02]
实现这一目标的一种方法是使用@Sagar Khatri提到的通配符子域或特定子域和HTACCESS。 您可以创建子域名:member.site.com和admin@site.com 现在使用HTACCESS文件(这是一个Apache配置文件),我们将限制对这些子域的访问 # dont allow acces to the admin controller not under the admin subdomain RewriteCond %{HTTP_HOST} !^admin.site.com$ [NC] ... -
如何将javascript函数应用于具有特定域的href(How to apply javascript function to href with specific domains)[2022-04-02]
只需使用主机名匹配: var domains = ["google.com", "stackoverflow.com"]; window.onload = function() { var anchors = document.getElementsByTagName("a"); for (var i = 0; i < anchors.length; i++) { for(var j = 0; j < domains.length; j++){ if ... -
如何计算树的高度(How to calculate a height of a tree)[2022-04-20]
假设树中的典型节点表示为Java类。 class Node{ Entry entry; ArrayListchildren; Node(Entry entry, ArrayList children){ this.entry = entry; this.children = children; } ArrayList getChildren(){ return children ... -
Collapisible Tree(Collapisible Tree)[2022-03-11]
我只是为您的示例进行快速调试:似乎每次将在图表中显示的节点都将分配一个id,请参阅调试屏幕截图以获取详细信息: 希望能帮助到你:) I just do a quick debug for your example: It seems every time the nodes which will be displayed in the graph will be assigned an id, see debug screenshot for detail: hope it helps:) -
允许用户在Heroku上为Django应用程序使用自定义域(Allowing users to use custom domains for Django app on Heroku)[2021-08-20]
Prelim Answer: 如果您控制域的名称服务器并可以访问RNDC密钥,则可以使用注册后视图/信号将DNS username.yoursite.com喷射到您的DNS服务器,以将username.yoursite.com重新分配给yoursite.com 。 确保apache设置为接收通配符虚拟主机到正确的应用程序,然后使用自定义中间件来读取request.META['SERVER_NAME'].lsplit('.')[0]以查看子域是什么。 然后,您可以在视图中使用此信息来区分用户子域。 Preli ... -
tree.DecisionTreeRegressor是模型树还是回归树?(Is tree.DecisionTreeRegressor a Model Tree or a Regression Tree?)[2022-04-29]
你理解是对的。 在数学上,回归树表示分段常数函数 ,而(线性)模型树是分段线性函数 。 DecisionTreeRegressor是一个回归树。 You're understanding is right. Mathematically, a regression tree represents a piecewise constant function, while a (linear) model tree is a piecewise linear function. DecisionTreeRegr ...