首页 \ 问答 \ 在页面树中使用不同的域(Use different domains in page tree)

在页面树中使用不同的域(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
更新时间:2022-12-05 22:12

最满意答案

要启用跨域的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.

相关问答

更多

相关文章

更多

最新问答

更多
  • Apache HttpClient(4.1和更新版本):如何进行基本身份验证?(Apache HttpClient (4.1 and newer): how to do basic authentication?)
  • 复选框不适用于模态(Checkbox does not work in modal)
  • 当使用大标题无法正常工作时,iOS 11会滚动到顶部(iOS 11 scroll to top when using large titles doesn't work properly)
  • 为什么我的Arduino不能超过10?(Why can't my Arduino compare above 10?)
  • 从Lib中删除PDB文件/功能(Remove the PDB file/functionality from Lib)
  • rails-2.3.5和rack-1.0.1的来源在哪里?(Where are the sources for rails-2.3.5 and rack-1.0.1?)
  • 如何使用List <>成员不可变的类?(How to make a class with List<> member immutable?)
  • Microsoft Edge popup扩展如何获取后台页面?(Microsoft Edge popup extension how to get backgroundpage?)
  • python删除中文unicode字符串之间的空格,但不删除英文单词之间的空格(python to remove space between Chinese unicode strings but not between English words)
  • SBT:如何Dockerize一个胖罐子?(SBT: How to Dockerize a fat jar?)
  • 如何从服务器请求中保存图像的分区以便以后合并(How to save segements of image in memory from server request for merging later)
  • python这段程序中a=self.[:]是什么意思 self一般用法是啥
  • ActiveRecord :: StatementInvalid:PGError:错误:关系“指令”不存在(ActiveRecord::StatementInvalid: PGError: ERROR: relation “instructions” does not exist)
  • 虚拟机安装kail linux最低配置是多少?
  • fread()中的空字符和c中的strncpy()(Null character in fread() and strncpy() in c)
  • 从ShutdownHook中查找程序退出的原因(Find, from a ShutdownHook, why a program exits)
  • 每天在固定时间运行任务(Run a task at fixed time everyday)
  • 电脑开不了机了,开机后进了桌面,显示WINDOWS BOOT MANAGER
  • 获取字符串第n个出现的索引?(Get the index of the nth occurrence of a string?)
  • python selenium 怎么打开 Chrome 并且能设置代理,请问可以指导小弟一下吗。
  • 错误:imagecopymerge()期望参数2是资源(Error: imagecopymerge() expects parameter 2 to be resource)
  • 在我的代码中,“无法找到可安装的ISAM”错误的原因是什么?(What could be the cause of 'Could not find installable ISAM' error in my code?)
  • Access 2013 - 没有自动编号的顺序编号(Access 2013 - sequential numbering without autonumber)
  • 将带有函数的Javascript对象转换为字符串(Converting a Javascript Object with Functions into a String)
  • Java中实现封装与信息隐藏与抽象与隐藏数据的比较(Practical example Encapsulation vs Information Hiding vs Abstraction vs Data Hiding in Java)
  • 不要包必须匹配java文件所在的子目录吗?(Don't packages have to match the subdirectories the java file is in?)
  • PyCharm Python控制台中的文件路径错误(File path wrong in PyCharm Python Console)
  • 在数据框列上应用curve_fit(Apply curve_fit on dataframe columns)
  • Java中的DateTime.FromOADate()相当于什么(Java中的Datetime是Datetime的两倍)(What is the equivalent of DateTime.FromOADate() in Java (double to Datetime in Java))
  • 给定DCEL,其中双胞胎等于下一个边缘,细分可以有多少面?(Given a DCEL where the twin is equal to the next of an edge, how many faces can the subdivision have?)