Latest Publications

TYPO3: Robots.txt

First of all: I’m very busy at the moment so it’s been a little quite lately, but I’ll try to keep up..

I’ve done some research and I think this is a pretty good example of how to use robots.txt on a TYPO3 website:

User-Agent: *
Allow: /                                      # Allow bot to enter
Disallow: /fileadmin/website/notimportant/    # Exclude only folders with no
                                              # link from frontend, like
                                              # templates, css, js.
Disallow: /t3lib/                             # Nothing to see here
Disallow: /typo3/                             # Nothing to see here
Disallow: /typo3conf/                         # Nothing to see here
Disallow: /typo3temp/                         # Nothing to see here
Disallow: /*?id=*                             # Disable non-realurl
Disallow: /*&type=98                          # Disable print pages

Sitemap: http://www.example.tld/sitemap.xml   # Your Sitemap
Sitemap: http://www.example.tld/rss.xml       # Your RSS Feed

You’ll notice the upload folder is allowed since there are files in here, which are linked to the frontend. The same applies for files in the fileadmin. If you don’t use RealUrl keep in mind to remove that specific line or else the bot won’t index much.

If anyone knows a better setup please don’t hesitate to comment!

TYPO3: Generate all realurl path’s in one click!

A small trick when working with realurl. If you want generate all url path’s at onces just create a sitemap page (not in menu) and visted it. All pages in the sitemap do now have a realurl path generated.

TYPO3: Quick RSS feed of tt_news

RSS-feeds of tt_news are really simple. To make it even more easy just copy-paste this to your TypoScript setup:

plugin.tt_news {
# SYS-Folder with newsitems
pid_list =
# Page with single view
singlePid =
displayXML {
  xmlTitle = Your RSS title
  xmlLink = Your website url
  xmlDesc = Your RSS description
  subheader_stdWrap.crop = 250 | ... | 1
  }
}

Now just go to your homepage and add &type=100 to the url! You’re done

There are a few more options, but above are the most important. See the tt_news manual for a complete reference!

TYPO3: Clear all cache for non-admins

With this line of User TSConfig you can enable non-be-admin’s to clear all cache the way an admin would.

options.clearCache.all = 1

TYPO3: A better tt_news page browser

Sometimes you walk into things you should have known by now… This week I was setting up a tt_news configuration, which I have done like a million times, and found this code:

plugin.tt_news {
usePiBasePagebrowser = 0
}

Now, just out of curiosity I set it to 1, just to see what happened… What do you know… way better than the default pagebrowser! It really makes me wonder why these things aren’t active by default?

Anyway, most of you probably already knew this, and if you didn’t like me, you should have ;)

By the way: If any of you programmers are bored and want to write something really useful.. write a Ajax-based pagebrowser!

TYPO3: Cleanup your FE HTML source code

TYPO3 produces a lot of comments, prefixes, metatags etcetra… You might want to clean your HTML source code when your website is complete. In order to do this you need TypoScript!
Read more…