javiereguiluz / easybook

Book publishing as easy as it should be (built with Symfony components)
https://easycorp.io/EasyBook
Other
754 stars 81 forks source link

Unable to find template "copyright.twig" #130

Closed mrichman closed 1 year ago

mrichman commented 10 years ago
[Twig_Error_Loader]
Unable to find template "copyright.twig" (looked into:
  /Users/mrichman/github/easybook/app/Resources/Themes/Clean/Pdf/Templates,
  /Users/mrichman/github/easybook/app/Resources/Themes,
  /Users/mrichman/github/easybook/app/Resources/Themes/Base/Pdf/Templates).
javiereguiluz commented 10 years ago

@mrichman considering your error message, I guess that your config.yml file looks like this:

book:
    title: "..."
    # ...

    contents:
        - { element: cover     }
        - { element: toc       }
        - { element: copyright }
        # ...

The problem is that there is no copyright element. You have two options to fix this error. First, you could use the license element without any custom content. This will add a copyright license to your book:

book:
    title: "..."
    # ...

    contents:
        - { element: cover   }
        - { element: toc     }
        - { element: license }
        # ...

Moreover, you can define your own custom license text by adding a content to the license element:

book:
    title: "..."
    # ...

    contents:
        - { element: cover }
        - { element: toc   }
        - { element: license, content: "my_custom_license_file.md" }
        # ...

Add anything you want to the Markdown file associated with the license element and it will be included in your published book.