简体   繁体   English

TYPO3:我可以从同一台服务器上的另一个数据库中提取吗?

[英]TYPO3: Can I pull from another database on the same server?

I have an alternate database (the one I'd really like to use instead of the tables I moved to TYPO3). 我有一个备用数据库(我真的想用它而不是我移动到TYPO3的表)。 That is full of the information I want on my view. 这充满了我想要的信息。 Is it possible to pull from a specified database? 是否可以从指定的数据库中提取? And, can anyone provide a newer (6.1 is what i'm on) [English] tutorial on rendering database information to a page? 并且,任何人都可以提供更新的(6.1是我正在进行的)[英语]关于将数据库信息呈现到页面的教程?

page.20.subparts {

  typocontent = CONTENT
  typocontent {
    select {
      pidInList = 20
      ### FROM myDatabase.myTable ###
      where = colpos=1
      orderBy = sorting
    }

Also, constructive criticism is welcome as I'm still pretty sure I'm not using the monster correctly at all. 此外,建设性的批评是受欢迎的,因为我仍然非常确定我根本没有正确使用怪物。 I still don't get all the backend tabs and menus. 我仍然没有获得所有后端选项卡和菜单。 So far I've just been editing the template settings to make things "do what I want them to do", which from what I have seen, is very wrong. 到目前为止,我一直在编辑模板设置,使“做我想要他们做的事情”,这从我所看到的,是非常错误的。 But I don't normally design sites like this (CMS with Backend). 但我通常不会设计这样的网站(CMS与后端)。 I'm used to just straight directory/file creation and code editing. 我习惯于直接创建目录/文件和编码。 This is my first venture into not using PHP/C# to get the info I need and send it to a view. 这是我第一次尝试不使用PHP / C#获取我需要的信息并将其发送到视图。

You will need to install the system extension dbal . 您需要安装系统扩展dbal It comes with a manual: http://docs.typo3.org/typo3cms/extensions/dbal/latest/ 它附带一本手册: http//docs.typo3.org/typo3cms/extensions/dbal/latest/

This will allow you to use a different database additionally to the main database. 这将允许您使用除主数据库之外的其他数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM