Example of centered HTML UL LI menu

Here is an example of a centered HTML UL LI menu:

<style type=”text/css”>
    .wrapper {
        text-align: center;
        background: #22ff00;
    .wrapper ul {
        display: inline-block;
        margin: 0;
        padding: 0;
        list-style: none;
        /* For IE, the useless browser */
        *display: inline;
        background: #ff0000;
    .wrapper li {
        float: left;
        padding: 2px 5px;
        border: 1px solid black;

        <li>Menu 2</li>
        <li>Menu 2</li>


TYPO3, tt_news clear cache when add new post

tt_news is a great plugin, but according to me the ”out-of-the-box” cache settings is really bad. All beginnerns allways get stuck with the problem that FE-pages does not update tt_news post when a change is made.

If you have a ”normal” website that publish 1 – 2 posts a week, there is no need for the multi-super-duper cache settings. So to make it easy for your self, just set the cache to clear every time you make a change to your news folder. This is done by adding this line of typoscript ”TCEMAIN.clearCacheCmd = all” to your news folder TSConfig.

Step-by-step instructions

  1. Edit your newsfolder
  2. Go to tab ”Resources”
  3. Paste this ”TCEMAIN.clearCacheCmd = all” into the box at the bottom (title: Page TSConfig)
  4. Save the page


This only works for admin users by default, to make it work for other be-users, just add the following to the group or users tsconfig (found in ”User admin” -> selected user/group -> ”option” tab):


jQuery clone and change multiple id

This is a bit tricky, but I prefere to do it this way:

var newset = $(”#template”).clone(true).attr(”id”, counter).hide().fadeIn(1000);
$(”input[name=firstname]”, newset).attr(”id”, ”firstname”+data);
$(”input[name=lastname]”, newset).attr(”id”, ”lastname”+data);
$(”input[name=company]”, newset).attr(”id”, ”company”+data);

So, first clone the elements, then before appending it, change each id it self.

Super fast blogg post, I´m in a hurry 🙂