Results 1 to 2 of 2

Thread: Adding external libraries in contao

  1. #1
    New user
    Join Date
    08-22-17.
    Posts
    15

    Default Adding external libraries in contao

    Is there a way to external libraries in contao? I need to include "include('simple_html_dom.php');", for parsing html from page template. Is there any solution for doing parsing of html in page template, fe_page?

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    485

    Default

    Write an extension (system/modules/my_extension/) where you load your classes.

    Use a hook to modify your FE output (maybe the modifyFrontendPage hook).
    https://docs.contao.org/books/api/extensions/hooks/

    Set up your hook within your extension.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •