Search:

Type: Posts; User: punkstjimmy

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Composer autoloading ide_compat.php and causing issues

    Hello,

    I'm finding that the ide_compat.php file is being autoloaded by composer but I can't figure out why. This is causing various problems and conflicts with other classes.

    Here's an extract...
  2. Replies
    3
    Views
    1,469

    I figured this out, the home page has to have an...

    I figured this out, the home page has to have an alias of 'index'.
  3. Replies
    3
    Views
    1,469

    Contao 4.2.5 - Remove homepage alias

    Hello,

    How can I remove the alias for the home page? I was doing this with a hook but a change in the latest update now prevents this from working as it just goes into a redirect loop.

    I want...
  4. Replies
    0
    Views
    871

    Contao 4 + config/autoload.php

    Hello,

    When developing a module I often need to update the config/autoload.php file within the module, for example every time I add a class or a template. In Contao 3 there was a tool in the CMS...
  5. Awesome, thanks!

    Awesome, thanks!
  6. Any info on installing / converting modules in Contao 4?

    I'm trying to set up my first Contao 4 site but I'm having trouble figuring out what I need to do to get some extensions installed. Is there any info out there on exactly how this can be done? The...
  7. Replies
    1
    Views
    1,331

    Found it -...

    Found it - https://docs.contao.org/books/manual/3.5/en/06-data-container-arrays/reference.html :)
  8. Replies
    1
    Views
    1,331

    DCA reference?

    I used to use the DCA reference on the old site quite a lot for checking which callbacks and field types are available etc. but I can't find it since the site has changed. Is this still available...
  9. Thanks for the reply, this is similar to what...

    Thanks for the reply, this is similar to what I've done so far but I think you've slightly misunderstood what I'm trying to do.

    Just be clear in my child table I have 3 different palettes, I'm...
  10. Conditional palette for child table based on parent table

    Hi,

    I'm setting up a DCA that has a parent and child table, similar to how tl_news_archive and tl_news are set up. Is it possible to change the palette of records in the child table based on a...
  11. Replies
    2
    Views
    1,334

    Thanks for the quick reply - looks like Contao is...

    Thanks for the quick reply - looks like Contao is just using the file system to cache then.
  12. Replies
    2
    Views
    1,334

    Does Contao support APC?

    Hi,

    does anyone know if Contao's caching system supports the use of APC?

    Where in the codebase does Contao actually write to the cache?

    Cheers,
    Jamie
  13. Multi-domain site - serving different robots.txt?

    We have a multi-domain site which uses two different site roots. We need to alter the robots.txt file for one of the domains but leave it as it is for the other. They share the same file system so if...
  14. Replies
    2
    Views
    1,219

    I emptied the tl_files table and clicked the...

    I emptied the tl_files table and clicked the 'Sync' button in the file manager and it's fixed the problem, all the files have their proper PIDs now. Not sure what happened there!
  15. Replies
    2
    Views
    1,219

    Strange issue with uuid in tl_files

    Hi,

    in my tl_files it seems some items are being given invalid pid's. Here are some normal pid entries:



    1c7881405b6411e3a2b80019d12a6303
    636fff685c2911e39addefe4a797013f...
  16. Replies
    1
    Views
    4,447

    phpBB integration

    Hi,

    has anyone managed to integrate phpBB with Contao? By integrate I mean that users can log into Contao and use phpBB without a second login.

    I've created an auth plugin for phpBB to...
  17. Importing news and events AFTER update from Contao 2 to 3

    Hi,

    when you upgrade a site from Contao 2 to 3 the news and events are converted into the Contao 3 style (using content elements). This is great for straight upgrades.

    However, I need to import...
  18. Thread: Page cache

    by punkstjimmy
    Replies
    4
    Views
    2,374

    Thanks for the feedback. After looking into...

    Thanks for the feedback.

    After looking into this a bit more it actually turns out you can enable the page cache by checking the 'Set cache timeout' checkbox in the page setting under Site...
  19. Thread: Page cache

    by punkstjimmy
    Replies
    4
    Views
    2,374

    Page cache

    In the 'Maintenance' section of Contao's backend there is the following:

    Purge the page cache
    system/cache/html: 0 file(s)

    This always shows 0, so it seems that no frontend pages are being...
  20. Replies
    8
    Views
    3,686

    Upgrade from Contao 2 > 3

    Hi,

    I'm just wondering has anybody successfully upgraded a Contao 2 site up to Contao 3?

    I've tried this a couple of times now and both times the sites have broken. We're looking to upgrade a...
  21. Replies
    2
    Views
    1,535

    Re: Backend file upload form

    Found it in DC_Folder.php :)
  22. Replies
    2
    Views
    1,535

    Backend file upload form

    Hi,

    does anyone know where this is generated from?

    I'm trying to replace the upload form in the file manager with a HTML5 drag and drop uploader. I can't work out where Contao is loading this...
  23. Replies
    5
    Views
    5,864

    Re: Custom Dynamic Page Alias ?

    Ruud makes some good points in his post.

    To further enhance the security of your code, as well as make it easier for you to write you should try and use Contao default behaviour and libraries...
  24. Replies
    3
    Views
    1,894

    Re: Ajax content refresh

    You just need to echo your HTML out. You can get the HTML for any Contao template by using the parse() method.

    If your template is stored in $this->Template all you need to do is:



    $html =...
  25. Replies
    1
    Views
    1,052

    Accessing the backend filter values

    Hi,

    i'm writing a custom export function for one of my backend records lists. I need to be able to get the values of the filter so that I export the records that are currently on display only.
    ...
  26. Replies
    1
    Views
    1,234

    Hourly cron

    Has anyone had any trouble with the hourly cron job in Contao 3?

    I've had an issue in two Contao 3 sites now including the latest Contao 3.1 where the hourly cron jobs don't seem to run. In the...
  27. Re: Swift_RfcComplianceException not handled by Email.php

    Might be a namespace issue, try putting a \ infront of the class so it's \Swift_RfcComplianceException. If your code is in the Contao namespace it will be looking for...
  28. Replies
    6
    Views
    2,262

    Re: List of articles

    Unfortunately no, you can't use that as a field in your DCA. The Articles section in the backend of Contao is a list of records rather than a form field.

    The file and page tree can be used as...
  29. Replies
    6
    Views
    2,262

    Re: List of articles

    You can only use the tree with pages, files and folders but if you need to be able to select multiple articles you can add 'multiple' to your field's 'eval':


    'eval' => array('mandatory'=>true,...
  30. Replies
    6
    Views
    2,262

    Re: List of articles

    Hi,

    Contao allows you to select an Article as a Content Element. To do this it does exactly what you are trying to do - get a list of articles into a select box.

    The code for this is located in...
  31. Replies
    2
    Views
    1,905

    Re: Loading and minifying JS

    Thank you! I didn't know you could do that, that works exactly how I need it to.
  32. Replies
    2
    Views
    1,905

    Loading and minifying JS

    Hi,

    i'm trying to find a way to minify all the JS for my site into one file. I've been using 3rd party tools to do this but I'd like to do this within Contao if possible.

    Contao already loads a...
  33. Replies
    2
    Views
    975

    Re: 2.11 .htaccess problem

    I think you're after a 301 redirect. This is the HTTP code for 'Permanently moved'. You use it as follows:


    Redirect 301 /myfile.html http://www.mysite.com/en/myfile.html
  34. Re: Dealing with variants in Orders and Product databases

    Hi,

    variants are stored in the tl_iso_products table like any other product, the difference is that they don't have any information except the information that is different from the 'main'...
  35. Replies
    2
    Views
    1,147

    Re: Get the ID of a module in a template

    I'm not sure if you can get an ID from the navigation sub-templates like nav_default.html5. It depends if the navigation module passes the ID to the template.

    The best thing to do is put this line...
  36. Replies
    11
    Views
    3,071

    Re: Styling active links - Please help!

    You're welcome :)
  37. Replies
    11
    Views
    3,071

    Re: Styling active links - Please help!

    I see you've updated it but it's not working.

    Try removing the 'float:left;' from the li, I think that should sort it.
  38. Replies
    11
    Views
    3,071

    Re: Styling active links - Please help!

    You might also need to set the ul width to 100%.
  39. Replies
    11
    Views
    3,071

    Re: Styling active links - Please help!

    Try changing this:



    .mod_navigation li {
    float: left;
    display:block;
    }
  40. Replies
    4
    Views
    1,751

    Re: FB share on element level

    This is more of an issue with the way that Facebook share works than Contao.

    When you share to Facebook you share the link to the page. Facebook will just grab the first bit of text it finds on...
  41. Replies
    11
    Views
    3,071

    Re: Styling active links - Please help!

    I have used the custom html module to create the navigation as I wasn't able to centre the standard navigation module for some reason.

    If you used the Custom HTML module then it's just static...
  42. Replies
    2
    Views
    1,061

    Re: Contao search indexing issue

    Hi,

    yes this site does have some dynamic pages that makes use of URL parameters. Maybe that explains the high number of records in the index table.

    I'm not sure why this would cause the whole...
  43. Replies
    2
    Views
    1,061

    Contao search indexing issue

    We've had some issues with some pages on our sites timing out and generally taking too long to load.

    We noticed that on one of the sites the tl_search_index table had reached 2,354,0751 records...
  44. Replies
    4
    Views
    1,928

    Re: Strange issue with form generator form

    hmmm, I'm not sure why it's doing it on the site in question then. I've never seen the problem before but then this is my first Contao 3 site so I wasn't sure if it was supposed to do it or not.
    ...
  45. Replies
    4
    Views
    1,928

    Re: Strange issue with form generator form

    Ok, I've had a look at the Input class.

    It seems Contao stores the form data in a session variable called $_SESSION['FORM_DATA'].

    Every time $this->Input->post('key') is used it fetches the...
  46. Replies
    4
    Views
    1,928

    Strange issue with form generator form

    I have a contact form that I created in the form generator.

    For some reason after submitting a message through the form the POST data seems to 'persist'.

    For example, i'll submit the form and...
  47. Replies
    3
    Views
    1,798

    Re: Advanced file protection

    I did a similar thing with Contao. Firstly I locked the folder in the file manager which prevents any direct access to it's contents.

    I then had a module that that accepted the ID of the file,...
  48. Replies
    3
    Views
    1,114

    Re: 'Select all' on checkbox inputs

    Thanks for the suggestions. I also arrived at the same solution. In the end I injected the extra checkbox option using jQuery, then set on click event that checked or unchecked all the other boxes in...
  49. Replies
    3
    Views
    1,670

    Re: Using Contao 3 models

    Thanks, I'm getting more familiar with it now.

    You can't create a many to many relationship using the default Model class, instead you need to deal with many to many data in a custom method with...
  50. Replies
    3
    Views
    1,114

    'Select all' on checkbox inputs

    Is it possible to add a 'Select all' box to a DCA checkbox field that is displayed in the frontend?

    Specifically I'm talking about the registration module, that uses the tl_member DCA. I've added...
  51. Replies
    3
    Views
    1,670

    Re: Using Contao 3 models

    Just some extra notes, i've been looking at the 'getRelated' method but i'm not sure how you use it.

    From what I gather you need a model for the related item, but i'm not sure how Contao finds the...
  52. Replies
    3
    Views
    1,670

    Using Contao 3 models

    Hi,

    I've just started developing with Contao 3 and could do with some help using the models class. I have a few questions.

    Do all methods in a model class need to be static?

    Is there a way...
  53. Re: Upgrade to v3.0.4 Fails on Clean Install v3.0.3

    Strangely enough I can confirm that switching to German, logging in then logging back out and switching to English before logging in again also resolved this for me, although I keep having to do it.
  54. Re: Upgrade to v3.0.4 Fails on Clean Install v3.0.3

    I'm having exactly the same issues with a fresh Contao 3.0.4 install. Missing labels, things not displaying properly etc. it looks the same as in the screenshots above.
  55. Replies
    1
    Views
    830

    Contao 3.0.4 install issues

    Hi,

    I'm trying to set up a fresh local Contao 3.0.4 site. During the install process the forms weren't displaying correctly, labels missing and the styling was generally broken.

    I managed to...
  56. Replies
    12
    Views
    2,166

    Re: How to install?

    You should be able to just download Contao, drop it into the root directory on your server then navigate to http://www.yoursite.com/contao/install.php which will run you through the installation.
    ...
  57. Replies
    2
    Views
    1,008

    Re: News - facebook comment

    We've done this for some sites, but not using a module.

    We did it by disabling Contao comments, then getting the comment box code from Facebook and putting it at the bottom of our reader...
  58. Replies
    2
    Views
    1,038

    Re: Database transaction example

    Thanks for info, i'll have a look around.
  59. Re: How to get first_name and email from tl_formdata_details

    With the way it's stored it's going to be difficult to get the data out of the database as an associative array. It might be better to get the data out of the database, then create the array with...
  60. Replies
    9
    Views
    2,446

    Re: Unit Tests?

    Hi,

    I know this is an old post. Unit testing has become much more of a standard in PHP over the last year and I just wondered if there was any progress in terms of Unit Testing in Contao?

    I've...
Results 1 to 60 of 162
Page 1 of 3 1 2 3