KeenToCode
KeenToCode

Reputation: 13

Typo3 getting data and convert it to specific xml schema

i am new to typo3, so sorry, if this is too obvious. I do not expect a complete solution, just the topics i would need to read about in order to solve the task would be perfectly enough. :)

Here the task: I have a typo 3 installation with job advertisements in it. Now the company wants to publish that data in to a social website, which needs to have the job advertisement data put on a server in an xml feed, which looks like this: http://www.kununu.com/docs#jobfeed. Don't worry about what it says in there, it's just stuff like Job Title, Description etc.

Like i said, i am completely new to this and just have a vague idea.

My thoughts so far were something like this:

Thank you loads for your help in advance.

Cheers

Upvotes: 1

Views: 649

Answers (1)

til.tack
til.tack

Reputation: 161

you can handle that (basicly with typoscript). The other part has to come from PHP (F.e. extbase plugin) ... First part creates the XML output. Second part uses my Demo plugin to include data (Pages+special fields) from DB.

Within TS we are able to create a new typeNum. With that you can call your XML. ( ?type=1234 ) Within the BE you can select each page for output.

If you need help just contact me. I would send you the plugin.

sitemap = PAGE
sitemap {
  typeNum = 1234

   config {
    # Set charset to utf-8
    metaCharset = utf-8
    # Deactivate TYPO3 Header Code
    disableAllHeaderCode = 1
    # Content-type settings
    additionalHeaders = Content-type:text/xml;charset=utf-8
    # Do not cache the page
    no_cache = 1
    # No xhtml cleaning trough TYPO3
    xhtml_cleaning = 0
  }


  10 = USER_INT
  10 {
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        pluginName = Sitemap
        extensionName = Srcxmlprovider
        controller = Sitemap
        vendorName = Sourcecrew
        action = exportXml
        switchableControllerActions {
          Sitemap {
            1 = exportXml
          }
        }
  }


}

Ich habe die EXT noch schnell ins TER gepushed. Ein Tutorial liegt innerhalb.

http://typo3.org/extensions/repository/view/srcxmlprovider

Upvotes: 1

Related Questions