Packages and Page Types
Permalink
Dear,
I've created an addon with several Page Types included. (my_package/page_types).
These Page Types are being installed with the package. However when I select the Page Type when creating a new page, it won't work unless I copy the Page Type manually over to the Theme folder.
Why aren't Page Types working straight from the package folder?
Best regards,
Roy H.
I've created an addon with several Page Types included. (my_package/page_types).
These Page Types are being installed with the package. However when I select the Page Type when creating a new page, it won't work unless I copy the Page Type manually over to the Theme folder.
Why aren't Page Types working straight from the package folder?
Best regards,
Roy H.
When you look in the Dashboard at your Page Types that aren't working is the package name in the Package column?
If not, the Page Type isn't being associated with your Package when it's being installed, so it's not looking for it within that directory.
To get a Page Type associated with the package, in the Package controller where you are creating the Page Type, make sure that you include the package in the add information, so it would look something like this:
Hope this helps.