Quantcast
Channel: Insane in the Main Frame
Browsing all 310 articles
Browse latest View live

extbase: commandcontroller doesn’t show up in scheduler

My controller just wouldn’t show up in my extbase commandcontroller task menu and I couldn’t figure out why. Turns out these were my mistakes: the controller MUST be named CommandController. Mine was...

View Article


Symfony2 and the Facebook php sdk 4

To work with the Facebook PHP SDK 4 in Symfony2, the first step is to add it to the composer. Edit the composer.json require and add this line: "facebook/php-sdk-v4" : "4.0.*", and then do an update...

View Article


Typo3: manually login a frontend user (felogin) – with and without a cookie

On a typo3 page, the frontend-login was supposed to not only work via form but also via social-media (facebook and google plus). Thats why the users had to be manually logged in in the extbase...

View Article

group_by in formbuilder: creating optgroups in dropdown

I had 2 entities, “Category” and “DetailCategory”, with every DetailCategory having one Category. To make it easier in a form to select the right DetailCategory (which can have the same name in...

View Article

settings empty -> include static template

The problem: in constants.txt and setup.txt of my new extbase extension I had defined a storagePid and wanted to access this in my controller. But for some reason $this->settings did not contain the...

View Article


Typo3: variables, editable in backend

There is an easy way to define minor variables and make them editable in the typo3 backend. It can be done via extension settings. Just add in the constants.txt: # cat=plugin.tx_extensionname//a;...

View Article

Extbase: handle images in model

If a model needs an image, it seems to be a good idea to do this via filereference. First, there is the definition of what we may call $image in our model: /** * image * * @var...

View Article

TCA: visibility of fields dependant on select value

The problem: depending on the chosen value of a select ‘Type’, certain fields should be hidden or visible. If the selected value is “Type A” or “Type B”, the field “val” should be visible, if the...

View Article


Realurl: define URL for RSS feed

I wanted to add an RSS feed page with certain information about new articles to an existing typo3 project with an active realurl extension. So I started by defining a new type with the number 888 in my...

View Article


Magento admin: saving of an entity works only partially

Using this awesome tutorial I created a new admin menu item with my own entity. When trying to add fields to my entity, I encountered the following problem: new fields just weren’t saved. Even when I...

View Article

adding a field in typo3 backend with extbase

It’s a miracle! I googled a typo3 problem and actually found an answer that worked! I needed an additional field in tt_content, so first of all I added a new field called “tx_kurs_id” to the tt_content...

View Article

Extbase Validator – Errormessages are duplicated

I wrote a validator for a contactform and the problem was that errors were displayed twice. The Controller has a showAction for showing the form: /** * @param Contactform $contactform */public function...

View Article

Image may be NSFW.
Clik here to view.

Google Maps Api: map is grey only, buttons distorted

After inserting a map with google api (v3), the map wouldn’t show anything but grey and the buttons were weirdly distorted: Seems that bootstrap is the culprint, adding this to my stylesheet worked:...

View Article


typo3 and extbase: generate a frontendlink in a backend hook

Some basics first: my extension is called ophi_inserat and allows users to create ads in the frontend. The model is called “Ad” and is saved in tx_ophiinserat_domain_model_ad in my database. Those ads...

View Article

typo3 backend: show thumbnail in listview

I have a model with the field “image”, which is a simple VARCHAR with the image name. My extbase extension is called ophi_insta and the model is named entry. When I save the image, it is uploaded to...

View Article


typo3: scheduler task with additional fields

I know how to use extbase to create scheduler tasks. What I didn’t know is how to add additional fields to a task. Turns out it kinda works if you do not use an extbase task. Most of this I got from...

View Article

Article pages sometimes throw 404 error

A weird problem which I have encountered in two different magento installations (version 1.9.x.x): sometimes it happens that product pages are no longer available, instead a 404 error page is shown. In...

View Article


Typo3 extbase: inject services

The problem: I create a ViewHelper, which calls a service (calcService) and in this service I want to use another service, named AuthenticationService. I got the following error message: Fatal error:...

View Article

Image may be NSFW.
Clik here to view.

typo3 page view: manipulate the look of a content element

One of my customers wanted to see in the page view, which section_frame option they chose. So I found out there is a hook to manipulate the title and text below the grey bar. Add the following to the...

View Article

Typo3: disable hidden when copying translation

That is stunningly easy with TypoScript, it’s even possible to prevent the prepend of “[Translate to english]” text on the headline: //for pagesTCEMAIN.table.pages { disablePrependAtCopy = 1 //the...

View Article
Browsing all 310 articles
Browse latest View live


Latest Images