Rudy is me

A weblog (mostly) about PHP and TYPO3 development

Shortcut to get the current Unix timestamp in PhpStorm

Because it's convention to use the current timestamp as the code for any Exception thrown in TYPO3, I need the current timestamp regularly when making or altering a TYPO3 extension. I used to go to a site like to get the current timestamp, but it is possible to create a shortcut to get the current timestamp in PhpStorm using Live Templates.

Installing packages to ddev VMs

Standard ddev VMs have everything you need for most websites, but sometimes you might need an extra PHP module or command line tool. Ddev has made it easy to add additional packages to the VM.

Linking to records

In TYPO3 you can link to pages, files, folders, external URLs, e-mail addresses and telephone numbers by default. But what if you want to link to a different record, like news. You could use an external URL link, but with a few lines of page TS config and TypoScript you can add a tab to the link window to link directly to a record.

Rearrange new content element wizard tabs and items

TYPO3 comes with a lot of default content elements types. When creating a content element using the Page module you can choose which type to add using the new content element wizard. The content element types are arranged in tabs. You can rearrange the content types and tabs using Page TS config.

Adding CSS or JavaScript using a Fluid template

Often you want to add CSS or JavaScript for just one page template, a single action of a plugin or only if a particular content type is added to a page. If the page, plugin or content type uses Fluid as a template, this can easily be done.