Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Custom Page Exporter

Avatar

Level 5

I need to export page with this folder structure

+ index.html

+ css(folder)

    -.css files

+ js(folder)

    -.js files

The Page Exporter

I'm currently having this file structure

+content

    +mySite

        -page.html

+etc.clientlibs

    +myCss,myJs.

+libs

     +something

and the css and js file aren't working after export.

Currect ContentSync setting

1689565_pastedImage_5.png

Can someone please walk me thru this? thanks

2 Replies

Avatar

Community Advisor

What error you are getting ? are you getting 404 error? or did css and js files are downloaded?

When you open a page in the web browser, if you see 404  error for css and js then I think you need to configure rewrite paths. please check below link

The Page Exporter

Mobile with Content Sync

Avatar

Level 5

Hello! Thanks for answering.

Yes I have read those documentations. But it isn't clear enough (for me) and lacks examples..

I'm getting no errors. i can successfully download. But the zip doesn't meet my requirement.

Problem1 - In the zip, my css and js files doesn't seem to apply (tho exported).
Problem2 - the exported zip doesn't met my folder structure requirement.

If know how to configure please do share. I'm having head aches thanks!