Site Folder Structure

Hello,

I am new to sparkle and I was looking to see if there was any control over the exported site structures. I am exporting to disk and would like to make the export cleaner by having the export create the index.html file and folder with all site items inside. Essentially you only see one file and on folder before digging deeper. I am not using Sparkle to create an upload a typical website my purpose is more an html interface for a project deliverable.

It’s possible. In the Page properties, once you’ve enabled the checkbox “Custom Filename”, you can then enter a file name folder1/filename.htm, or even folder1/subfolder2/subfolder3/filename.htm.

Hello @BrandonMcLaren1

For pages it’s possible.

In the “Page Settings” you can choose to publish a page to At Top Level or In a Folder

https://sparkleapp.com/docs/page.html

10

Sparkle will always create separate folders for images, css, js and video at the top level. I don’t think you can change that folder structure with Sparkle right now.

2 Likes

Thank you for the replies and information. I was able to figure each of these out on my own already, but it is still not what I am training to do. I don’t want to move a page and contents to a folder I want to move the main index page to its own spot and the entire site content to a folder. When you access the root directory you would see Index.html and a folder nothing else. The folder would contain the entire contents of the site. I don’t think this is possible in Sparkle so I have found a way to do it manually by editing the index file in html once it is created.

Maybe this could be a feature option in the future.

1 Like

Couldn’t you simply use the page settings to specify a sub-folder location for every page except the “homepage”?

See the reply above from @Shadowfax .

1 Like

Yes but its not about the pages themselves it is about the overall site. If you notice the site exports to many linked files and folders associated with the home page. You have no control over these files as they are auto generated when publishing.

Your best bet here is placing the entire website into the subfolder, and have a top level html file you build yourself in which you simply place a redirect to Sparkle’s home page.

1 Like

Are you implying @habboud that Sparkle supports a subfolder hierarchy structure?

Yes, it does. An example from our own website:

> https://cedrus.com/support/
> https://cedrus.com/support/stimtracker/

Good deal! Thanks for sharing.

thanks Habboud.

The custom page file wouldn’t work (kept changing post/second/index.html to post-second.index.html).

The folder box below DID work though!

Couldn’t have done it without you getting me in the ballpark!

Screen Shot 2021-08-11 at 20.36.23