Out of the box, Contao + Nginx will fail with most URLs. As nginx doesn't support .htaccess you'll need to add rules within the server configuration for nginx.
Taking the basic .htaccess and...
Type: Posts; User: pbrooks
Out of the box, Contao + Nginx will fail with most URLs. As nginx doesn't support .htaccess you'll need to add rules within the server configuration for nginx.
Taking the basic .htaccess and...
At least it's not me, could of been occurring for a long time but it's certainly something which can halt development and waste a lot of time debugging.
I'd assume the various includes for...
Hi all,
Something I've been noticing recently is an increase of the ability to get a white screen of death from Contao during development.
I've got all error reporting on, including E_ALL. Say I...
I'm writing a FE module that will use some simple Ajax to update the module state.
After the original post I started considering doing it all in the JS. I haven't yet researched it but I assume...
Is there anything currently in the core to detect if Mootools, JQuery or both are being used in the FE? I know site administrators will use different combinations.
Hi all, I'll try to keep this brief but this is related to User.php within the Core and to get the ball rolling on decoupling the requirement of POST data from Input/Password fields.
The problem...
I understand of that intention, however the situation gets to become a limitation when you have two submit options on a form.
Ie if you have some logic to put into processFormData and it behaves...
To reopen this topic in one form, why does Contao remove the possibility of using the name attribute of a submit button?
Ie this code:
// Submit buttons do not use the name attribute
if...
I have actually been working on something similar, but wondering if they fit the same bill or are different.
A sample use case may be as follows, any specified user may submit new content or...
I'm trying to get away from using files to modify DCAs but rather do it in code execution, will give the hook a quick try and see if it works.
I've done quite a bit of modifying DCAs in the past and I've generally gone by the rule that if I want to modify a DCA I need to add a file with the dca name in a directory that will appear after the...
Hi Eric,
Most core modifications are possible, but if you give some detailed information on what you're trying to achieve then we can better help.
Just regarding public/protected/private , to use a protected method you must be calling it from either within the class or from within an extension of that class.
So let's say you extended a...
ruleType is a read only field for display purposes only, the idea is to display what type of rule has been set in the record and provide the other form fields related to it.
I had begun the OpenID implementation, my http://www.contao.org/extension-list/view/Authentication.19.en.html Authentication module I had to add new code to User.php but I will see how much I can rip...
It would help if I put the original code in the post, not the experiment stuff that didn't work. The previous code was me trying to sort the issue using a select.
Anyway this was the original...
Hi all,
Just wondering if it's possible to define what fields are displayed depending on what value exists for a text input.
Ie for the field:
'ruleType' => array
(
'label' =>...
Hadn't noticed the checkCredentials hook too much before, might modify my Authentication class to use this instead of having to do a patch on the core.
Did anyone ever fully implement OpenID?
Hi,
There is no way you can override the contao/index:Index run method without creating a new file. You could hack around this using Apache index directs on the directory but this is bad practice...
Hi all,
Just wondering what the best approach within Contao with regards to creating a new image, ie I've used PHP's GD functions to create a canvas and add elements to it. Then I'll be using...
Hi all,
To add get parameters to a given URL I've been using:
$this->generateFrontendUrl($objPage->row(),'/operation/create');
However this isn't working on one install of Contao, where the...
Hi all,
Anyone had any success with attaching FirePHP to Contao?
I installed the FirePHP directory in plugins and entered the configuration information into initconfig.php , however it seems to...
I see that ['eval']['path'] will limit the widget to just look for files in a certain directory. For those with imports is it possible to limit the file uploader to that directory too?
Cheers
Hi all,
I'm aware that the Database class is executing all SQL queries at once after preparing, is it possible to fully execute a database query per function call?
Cheers
Hi,
This will require some form of Single Sign-on integrating into both systems, I need to do a similar thing but auth users from Contao to a third party.
Hi all,
Just wondering why INSTALL is an invalid path for adding files to a package within the extension management?
I need to add some additional SQL to my module on install-time, it's a VIEW so...
It's a serialized object, use http://php.net/manual/en/function.unserialize.php to unserialize it into an array.
It looks like it's the OLE package within PEAR that's calling on System:
http://pear.php.net/package/OLE/
The two files in OLE/PPS/Root.php /OLE/PPS/File.php just call a static method in System...
It's not the PEAR class itself that's the problem but the class 'System' within PEAR that other things will call upon.
Including PEAR.php is no problem, it's when other PEAR modules include System.
I've just tried to use Contao with a PEAR class for XLS Writing (Which is LGPL and a requirement for the module I'm writing).
However PEAR has a class System, as does Contao.
Since it's not...
Hi MP___,
You'll need to write your SQL manually, it's a pretty straight forward operations.
See backend/dca/tl_group.php for TL's SQL.
For a custom callback, how does Contao output the various information stored in
$_SESSION['TL_ERROR']
$_SESSION['TL_CONFIRM']
$_SESSION['TL_INFO']
I assume it flushes the session variables when...
I've updated the ticket with a new version of Alpha code, this is no longer a diff but rather a module over-riding and adding content. (http://dev.contao.org/attachments/899/c ... pha007.zip)
The...
Hi all,
Is it possible to add custom arguments to a field within a DCA that can be accessed by a custom widget?
Cheers
Eeek!
My fix introduces a further bug that an empty record can then exist since the select menu change is saving the record.
Until a fix has been decided on for the actual issue, I'll look into...
The following code is a small hack to alter this behavior, however the bug still stands:
class tl_bug_palette extends Backend{
function field_save($value,$dca){
...
The bug has been reported here :http://dev.contao.org/issues/2684 with a demo module of the problem.
I've found out the behavior to duplicate this bug, I'll provide a working implementation of the BUG for Contao devs to try ASAP.
Within a DCA I am writing, A drop-down field defines the membership class for a member.
However for some membership classes some fields are to be removed from the default DCA, before it refreshes...
Hi FloB,
Thanks for the speedy response, anything DCA wise, language definitions I am aware (and commonly implement) that they can be provided via an extension.
Modifying User,ModuleLogin &...
Dear all,
I have now attached a second version of the authentication changes to the original OpenID ticket, this supports:
AuthenticationUsername
AuthenticationEmail
AuthenticationFacebook
At...
If you find that your module new fields keep showing CHANGE and not removing from Database maintenance then you've missed out NOT NULL and a DEFAULT value.
Just a quick note for others who might...
Heh, Cheers for the positive feedback.
Facebook Connect was very simple to add to Contao, however with all these Single Sign-In Authentication methods I will need to add a redirect to let the user...
A quick progress update.
So far I've got the logic within the User class to work with the new Authentication schemes and got to the stage of two functions:
generateLink()
generateFields()
which...
Hi all,
I've started to work on a full solution for other authentication methods into Contao, I've commented on the bug report and getting some discussion together here for the method I am taking...
Cookies are enabled, going to capture packets to get to the bottom of this.
It seems to be dependant on web server and not related to php.ini.
Our dev server is debian, the production server is...
A bit of an odd bug with our current install of Contao, it only lets Firefox users login.
Something must be going wrong with the cookie somewhere, so far I've traced it down to User::authenticate()...
Hi pitballs,
I've not played with catalog personally but just quickly looked at the source.
Are you adding a new item to the tl_catalog_items table?
If so, create a new module with:...
Hi all,
I'm creating a custom widget with a mix of select & input, all is going well except for the copy button on the widget.
When the copy button is pressed, the array index for the name...
Hi thdelerme, did you get sorted with this extension?
I do realise this post is a bit late but I'll help where I can, if you're just looking for extensions then it's probably best to post in 'Using...
Does documentation already exist regarding data type definitions for Contao?
Ie of the form:
[database.sql - Selectors]
Datatype: char(1) NOT NULL default ''
And similarly for other fields such...
Either my works browser is faulty or it's now sorted.
Anyway, cheers :)
The following works WITHOUT modifying the Password widget, I just hope this isn't a bug ;)
I will repackage this as a module in it's own right outside of the other module I'm developing it for.
...
Hi Contao team,
Could you please add a tickbox to 'not see this popup again' onto the javascript popup when people are redirected from typolight?
Since google hasn't indexed the site fully yet,...
A bit of a tricky one, don't really want to be altering the password length on the fly.
Also trying to un-necessarily re-implement parts of any core class such as the widget class.
I can possibly...
Sadly, some validation somewhere is stopping a blank password being saved. I've disabled the minlength and save_callback for password but it's still complaining about it requiring a min of 8...
Hi all,
I'm attempting to hide the password boxes in tl_member when a checkbox is ticked. I see two approaches:
1) Add another database column called 'password_random'
or
2) Extend the Password...
Hi all,
Within modules such as events and articles, what is the processing behind published vs start/stop.
Ie some confusion can arise from when an article is published.
If published is selected...
BE_USER_LOGGED_IN is to tell you if you have a backend user logged in, similarily FE_USER_LOGGED_IN will return if you have a frontend user logged in.
It will not tell you which user is logged in.
Hi all,
Just wondering about this question and in terms of packaging. Even if I'm putting the SQL files into INSTALL within the package, am I to still list the SQL in system/module/config?
Also,...