Results 1 to 23 of 23

Thread: Contao Tutorials, Documents in English

  1. #1
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage Contao Tutorials, Documents in English

    Hello.

    I am very much new in Contao CMS. I am facing below issues with the Contao so far.

    1. While Installaing I cannot get the Theme in the option. How do I get the one and use while installing?
    2. I am English speaking and hence looking for English spekaing documents, tutorials and development manual with hands-on examples. Please share.

    Looking forward to the feedback.

    Regards & Thanks.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Hi,

    how did you install Contao? And which version?
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hi, thanks for reply.
    I am working at WAMP server now. I have installed version 3.5. Facing problem while installing version 4.4. Seek help urgently. Please help.
    I wish to be a full stack Contao developer. Any kind of guidelines will be appreciated.
    Thnaks in advance.

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Well, what's your goal? Do you want to use Contao 3.5 or Contao 4? What exactly is the problem? Please elaborate this in more detail.
    Contao Community Moderator
    → Support options

  5. #5
    User
    Join Date
    02-05-19.
    Posts
    66

    Default

    Hello xchs.

    Thanks for the reply.

    Installation version: 4.6
    Environment
    Windows 7
    Server - Linux
    Access using the Samba network
    Use shell to give the commands.

    I am following the instructions as given in URL https://contao.org/en/download.html.
    But I found the below error.
    The requested URL /contao-manager.phar.php/ was not found on this server.

    Please help to resolve the issue-

    Regards & Thanks.

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Well, it should be quite easy to set up a local environment running a Contao instance:

    • Set up a local server stack (XAMPP, WAMP, etc.)
    • Make sure that the local web server is up and running (with administrator privileges!) and that you can open the web server default page via http://localhost
    • Add a new project folder into your default document root, e.g. C:\xampp\htdocs\myproject\ or C:\wamp\www\myproject\
    • Create a subdirectory web/ within your project folder (e.g. C:\xampp\htdocs\myproject\web\)
    • Download the Contao Manager from contao.org: https://download.contao.org/contao-m...o-manager.phar
    • Move the contao-manager.phar into your web/ subfolder (e.g. C:\xampp\htdocs\myproject\web\) and rename it to contao-manager.phar.php
    • Open the Contao Manager web interface: http://localhost/myproject/web/contao-manager.phar.php
    • Sign in (add a new Contao Manager user) and proceed with the installation of Contao 4.6
    Contao Community Moderator
    → Support options

  7. #7
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello xchs.

    Currently the environment I have given is what I have explained. Is there any option to work in this environment?
    Also I am going to try with Contao 3.5 and let you know the result.

    Could you please share some good documentation on Contao in English? I know PHP open sources such as Wordpress, Joomla, Drupal. I know how to do the HTML templating, create new Theme, developing Plugins / Extensions. I wish to do all these in Contao too. Where can I found the files such as header.php, footer.php, page.php etc. ?

    Any sort of help will be appreciated. Looking forward to your feedback.

    Regards & Thanks.

  8. #8
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    https://docs.contao.org/books/manual/4.4/en/

    Contao is template-based. Most things can be done directly from the back end though. If it's ever really necessary, you can make appropriate changes in the front end templates. The page template fe_page.html5 is the skeleton and a central template for the output.

    Please also have a look at the demo to become more familiar with the principles and concepts:

    Front end: https://demo.contao.org/
    Back end: https://demo.contao.org/contao
    Contao Community Moderator
    → Support options

  9. #9
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello xchs.

    With the same environment I able to install Contao 3.5.
    Here I faced the below 2 issues.

    Admin end
    Itgiven an error in red at the top of the panel.
    Contao is currently running in maintenance mode, in which the website (front end) is not available. Do not disable it if you are currently installing or upgrading third-party extensions! The website might not function properly.

    Front end
    Its an error in red that says.
    No root page found

    Please help me to resolve the issues.
    Please guide me to do the below.
    1. Create a default theme and make it run in the front end.
    2. Create a new theme from an HTML template with js files, css files and images.

    Any sort of help will be appreciated. Looking forward to your feedback.

    Regards & Thanks.

  10. #10
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello.

    In the meantime I am trying to install Contao 4.6 with the composer. I enter below command and it installs successfully.
    composer create-project contao46/managed-edition contao46

    1. While pointing the browser to /contao46/web/ gives the below error.
    An error occurred
    What's the matter?
    An error occurred while executing this script. Something does not work properly.
    2. Also admin panel cannot be open.

    Please help.

    Regards & Thanks.

  11. #11
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Quote Originally Posted by alahiri View Post
    I enter below command and it installs successfully.
    composer create-project contao46/managed-edition contao46
    I'm sure you just made a typo. The command line must read as follows:
    Code:
    composer create-project contao/managed-edition contao46

    Quote Originally Posted by alahiri View Post
    1. While pointing the browser to /contao46/web/ gives the below error.
    Are you still working on localhost? Have you set up a vhost?

    Quote Originally Posted by alahiri View Post
    An error occurred
    What's the matter?
    An error occurred while executing this script. Something does not work properly.
    Errors are logged in var/logs. Please check there what went wrong.


    Quote Originally Posted by alahiri View Post
    2. Also admin panel cannot be open.
    What does your URL look like?
    Contao Community Moderator
    → Support options

  12. #12
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello xchs.

    Thanks for the reply once again.

    Case 1 - Contao 4.6 - Linux + Windows
    I am trying with this command.
    composer create-project contao/managed-edition contao46

    After successful installation use the below URL in browser.
    http://projects.contao/dev.amit/contao46/web/
    Give same error as explained in my last post (it was tested in WAMP server).
    Also I do not find the Admin panel.
    Here is the log info of this installation.
    HTML Code:
    [2019-02-08 11:02:49] request.INFO: Matched route "contao_index". {"route":"contao_index","route_parameters":{"_route":"contao_index","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend"},"request_uri":"http://projects.contao/dev.amit/contao46/web/","method":"GET"} []
    [2019-02-08 11:02:49] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2019-02-08 11:02:49] request.CRITICAL: Uncaught PHP Exception Contao\CoreBundle\Exception\InternalServerErrorHttpException: "Your installation is not secure. Please set the document root to the /web subfolder." at /srv/www/dev.amit/contao46/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 93 {"exception":"[object] (Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /srv/www/dev.amit/contao46/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:93, Contao\\CoreBundle\\Exception\\InsecureInstallationException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /srv/www/dev.amit/contao46/vendor/contao/core-bundle/src/EventListener/InsecureInstallationListener.php:39)"} []
    Case 2 - Contao 3.5 - Linux + Windows
    I have a setup in Linux server and I am using the same from Windows machine. Using Putty to give installation commands.
    http://projects.contao/dev.amit/contao35/

    Case 3 - Contao 3.5 - WAMP
    I have another setup in WAMP server.
    http://localhost/tests/cms/contao35/

    I do not set up VHOST anywhere.

    Please help me to resolve the issues. I do not understand where the problem lies.
    Then help me to start working and developing with Contao CMS.
    I am eagerly looking forward to your reply.

    Regards & Thanks,
    Amit.

  13. #13
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Please read the error message: "Your installation is not secure. Please set the document root to the /web subfolder."

    Set up a vhost (e.g. projects.contao) and point the document root to /srv/www/dev.amit/contao46/web/ so that you can access the

    • front end via http://projects.contao and the
    • back end via http://projects.contao/contao and the
    • install tool via http://projects.contao/contao/install
    Contao Community Moderator
    → Support options

  14. #14
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello.

    Contao 3.5
    Is it mandatory to create the Virtual Host?
    I have installed the Contao 3.5 in WAMP and Linux server without any problem.
    Frontend
    We'll be right back
    Backend
    Contao is currently running in maintenance mode, in which the website (front end) is not available. Do not disable it if you are currently installing or upgrading third-party extensions! The website might not function properly.
    Why these are like these? How to overcome these? Where is my default theme?

    Question
    Is there any way I can find out whether it is installed properly.
    I am getting below error in error.log file.
    HTML Code:
    [07-Feb-2019 18:49:35 GMT] 
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/dev.amit/contao35/system/modules/core/drivers/DC_Table.php on line 3399
    #0 [internal function]: __error(2, 'count(): Parame...', '/srv/www/dev.am...', 3399, Array)
    #1 /srv/www/dev.amit/contao35/system/modules/core/drivers/DC_Table.php(3399): count(NULL)
    #2 /srv/www/dev.amit/contao35/system/modules/core/drivers/DC_Table.php(374): Contao\DC_Table->treeView()
    #3 /srv/www/dev.amit/contao35/system/modules/core/classes/Backend.php(650): Contao\DC_Table->showAll()
    #4 /srv/www/dev.amit/contao35/system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('page')
    #5 /srv/www/dev.amit/contao35/contao/main.php(20): Contao\BackendMain->run()
    #6 {main}
    I am going create Virtual Host in WAMP first and then will report you.

    Start
    In the meantime could you please let me know how do I begin templating, theming, creating websites from scratch.
    Please refer any good book in English.

    I am looking for your heartiest help.

    Regards & Thanks,
    Amit.
    Last edited by alahiri; 02/08/2019 at 15:56.

  15. #15
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Which Contao version have you installed? You should use Contao 3.5.38 to be fully compatible with PHP 7.2.
    Contao Community Moderator
    → Support options

  16. #16
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello xchs.

    Thank you for the reply once again.

    I have installed version 3.5.38 in both WAMP and Linux servers successfully.

    Frontend
    No root page found

    Let me know how to begin the development. How to import images, css files, javascript files? How do I create the layout and templates, create pages and add content to it? Is it possible to set header and footer pages, sidebar, menus?

    Please help.

    Regards & Thanks,
    Amit.

  17. #17
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello.

    I will be obliged if you please let me know the below.

    1. How do I install a theme?
    2. How do I start templating with css, images, javascript?

    Looking for your advice.

    Regards & Thanks.

  18. #18
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Have you already looked at the resources I gave you in post #8?
    Contao Community Moderator
    → Support options

  19. #19
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hello xchs.

    Thanks for the reply once again.

    Yes. I have checked the admin panel. But I do not understand how the home page and other pages with content and forms are generated. Also how to create the structure and then add pages to it with content. This is also in Contao 4, but I am trying with Contao 3.5.

    Can I get any help? For example how do I create a homepage?

    Regards & Thanks,
    Amit.

  20. #20
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by alahiri View Post
    Hello xchs.

    Thanks for the reply once again.

    Yes. I have checked the admin panel. But I do not understand how the home page and other pages with content and forms are generated. Also how to create the structure and then add pages to it with content. This is also in Contao 4, but I am trying with Contao 3.5.

    Can I get any help? For example how do I create a homepage?

    Regards & Thanks,
    Amit.
    First Page created in Root is homepage.

  21. #21
    User
    Join Date
    02-05-19.
    Posts
    66

    Frage

    Hi.

    In the homepage I found the error 'No root page found'. How do I get the new theme and install and run it? Also let me know how to create a new layout and add content to it.
    Any sort of help and advice would be appreciated.

    Thanks.

  22. #22
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,291

    Default

    Check this video: https://www.youtube.com/watch?v=csHHpVuqwlo

    And also check the Contao online demo for reference: https://demo.contao.org/contao/login
    Contao Community Moderator
    → Support options

  23. #23
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170
    Regards

    Yanick - Contao core developer @terminal42 gmbh

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
  •