Exporting custom templates via features ?

BPSColruyt's picture
BPSColruyt
Wed, 10/19/2016 - 03:32
#1
Exporting custom templates via features ?

Hi guys,

Via admin/awe-content/templates we created some custom templates for use in our content.

These are obviously saved into db, but not exportable via features.

It would be nice to have this available in order to deploy them to our staging and production environment afterwards.

We are willing to cooperate in building these feature config hooks, but are in need of your assistance because of our theme knowledge lack.

Thanks upfront for your help !

khoa's picture
khoa
Thu, 10/20/2016 - 03:43

Hello,

After enabling AWEContent Themer module, please go to admin/awe-content/templates/export. This is the place where you can export templates that you create. Just select the templates that you want to export then click the Export button. Then you will get a zip file of export templates.

Thank you!

BPSColruyt's picture
BPSColruyt
Thu, 10/20/2016 - 07:24

Hi Khoa,

This is already something very useful !

Where can we import it back to another site ?

khoa's picture
khoa
Thu, 10/20/2016 - 21:46

Hi,

Just extract the zip file, then copy the folder and paste it into your root theme folder. For example: sites/all/themes/your_theme_folder

Thanks!

BPSColruyt's picture
BPSColruyt
Mon, 10/24/2016 - 02:41

Hi,

Just tried this export / import into themes folder and it seems to work as expected.

Image title

Inside admin/awe-content/templates:

Image title

We are now able to add these files to our VCS and set it in our deployment paths.

Thanks for the info!

Best regards,

phuonght's picture
phuonght
Mon, 10/24/2016 - 03:21

Hi,

When creating or saving a template,  we often upload a image to set avatar. And as your attached screenshot, maybe you did not upload it. 

BPSColruyt's picture
BPSColruyt
Tue, 10/25/2016 - 10:38

Done :)

Image title

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.