Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for websites without Indexing support #99

Open
mesarpe opened this issue Mar 2, 2019 · 6 comments
Open

Support for websites without Indexing support #99

mesarpe opened this issue Mar 2, 2019 · 6 comments

Comments

@mesarpe
Copy link

mesarpe commented Mar 2, 2019

By changing the line 88 of filecollection.js, it is possible to support web servers without support for the Apache directive DirectoryIndex.

It is necessary to replace:
get(this.getFileListUrl(this.type, config), function(success, error) {
By the following:
get(this.getFileListUrl(this.type, config) + '/index.html', function(success, error) {

Then, we can manually generate the index.html and support every web server. I have tried on release 2.0, and it works successfully.

Cheers and great work!
PS: it's not an issue.... btw.

@oleteacher
Copy link

Very interested but I cannot seem to find filecollection.js after cloning (used recommended git clone https://github.com/chrisdiana/cms.js-starter.git)

Even downloaded the latest release and not in files.

Any advice appreciated.

@chrisdiana
Copy link
Owner

Thanks for the suggestion @mesarpe! Great thinking! We should be able to roll that into the next release.

@chrisdiana
Copy link
Owner

@oleteacher it's most likely because the starter project only includes the minified version. you can see the file collection source here.

@jywarren
Copy link

I wonder if it could be possible to specify a sitemap from a single json or yml config file, for easy to configure completely static sites with no external API calls or indexing required? How hard would that be to adapt here? Thank you!

@jywarren
Copy link

Hmm, https://github.com/chrisdiana/cms.js/blob/main/src/filecollection.js seems pretty straightforward in terms of being adapted to a static JSON index... would you be open to my trying?

@jywarren
Copy link

Another way to streamline this could be to run an automated index.html generator such as https://www.npmjs.com/package/generate-index-html as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants