Adding a static page to squarespace (developer) - html

I currently have a Squarespace site which is a bit old but still functional. It's going to be a while before I do the new site for it, however, I want to add a new page to the Squarespace site that is a static HTML page that functions as a mini preview to the new site.
I have made a separate site just for now and everything is ready to go up on the live account (that's paid for). The dev site I just did everything on the site. region file, however, the layout of the live site is a bit different since it's using a template.
I followed their docs to this page on adding static pages...
It says to add a folder called pages and 2 files, in my test I made barry.page and barry.page.conf
barry.page is a boilerplate HTML page for testing and barry.conf looks like:
{
"title" : "Barry",
"description" : "barry desc"
}
As far as I can tell, this is all I need to do however I cannot find the page when I run the site either locally or on Squarespace. localhost:9000/barry returns a 404.
How can I find this site, it would be a major pain if I had to host the site elsewhere and redirect from Squarespace because their docs aren't written well!

Assuming you've pushed your changes to the server (and assuming you meant barry.page.conf not barry.conf), perhaps you've not set the URL for the page as desired using the "settings" icon to the right of the page in your "Not Linked" section (while in the back-end editing ["config"] area of your Squarespace website).
That should at least get the page to show up.

If you're here in the future, Squarespace 7.1 does not offer the ability to create static pages as in Squarespace 7.0. You can see the version you're on by signing into your site dashboard > Help > scroll down to the bottom.

Related

when people go to my website it shows all my files and not the landing page of my website -mclosed

when I go to my website directory it shows all my files and not to my landing page, is there a way to fix this? I have tried everything even looked through the internet without any clear response. I am close to finishing my website I only need to resolve this problem.
Thank you!
The issue seems to be that you are not on the HTML file, but on the folder.
To fix this issue, you have to redirect yourself to the HTML landing page.
/ar/home.html
This should show your HTML landing page correctly rendered.
Tip: Normally, the main page is called index.html by convention. This can be helpful. For example, the Live Server extension on Visual Studio Code will automatically go to index.html if the file isn't specified. Other hosting services, like GitHub Pages, also do the same.
None of the extensions, IDEs and hosting services listed above are sponsored! They are just used for the sole purpose of examples.
In conclusion, you need to go to the HTML file, instead of the folder.

how to enable base template on apphook'd page and use footer in static placeholder

I've got an application hook to work as explained in the very basic sample of the doc. The application does its job, renders its own templates and does all navigation back and forth.
But I am facing 2 problems:
After putting the hooked application an a page via the advanced settings of the cms, I am no longer be able to edit the page over the frontend. If I navigate in /?edit mode to this particular page cms toolbar dismisses and the /?edit mode is taken away.
How can I recover editing such an apphook'd page?
In the site's view mode (published apphook'd page) I have no styling and no base.html template stuff. So I miss the header menu coming from the base template and the footer which is generally added to each page by a static placeholder. Since I am not able to do frontend editing of the apphook'd page (as mentioned in paragraph 1), I am unable to embed the application into my well known page style.
How can I get the intimate styling back for such an apphook'd page?
I am working with
django 1.11.18
djangocms 3.5.3
python 3.7.2
Got it to go. Considerably following this instructions did the trick. I was able to overload the particular template from within the apphook application.

copied site HTML code from Google Chrome's inspect element doesnt work full functional

I am using wix.com to make sites,I was making a site for a company and i tried to embbed a the facebook page html of that company into one of the site pages but it doesnt fully load!it stops after viewing the n.o of likes.
I tried to embbed the website directly but the Facebook page doesnt load at all! so I thought of copying the code and adding it in the wix site
Here is a screen shot
The contents are dynamically loaded by using ajax requests to facebook's server.
You copied the code and added it to your site. But since your domain name is different, facebook will prevent Cross Origin Requests and so you will get a 405 Error and the content will not be provided to you. That is the problem there.

Some weebly features don't work when exporting to HTML and hosting on a different server

Recently I've been tasked with redesigning a website for the current company I'm working at. I've been using weebly to make the site, and then exporting the HTML to be re-hosted on the company's servers.
However, I've noticed that some functionality in weebly's code has stopped working. I imagine this might be due to weebly hosting some elements on their own servers, but this is merely a beginners best guess.
1. The picture for the logo on the banner does not appear once the HTML is rehosted
For comparison, here's the site while hosted on weebly:
http://mjmacoustique.weebly.com/
and the site on the company's servers:
http://www.mjm.qc.ca/redesign2015/
When weebly hosts, the ''MJM'' image should be on the top left and function as a return to home page button when clicked. However, when it's hosted on the company's server, the image is not found.
2. On Firefox, the background image of the home page is replaced with an all black background
When opened in firefox, it fails to load the background image of the main page.
Any help or solutions to these problems would be greatly appreciated.
Thanks.
I can help with question #1: the logo is hosted on weebly's servers, but in the html it's written in a shortcut method like this example: /uploads/2/6/8/5/26851316/1434298489.png"
the easy workaround would be to keep the weebly version of the site working, in in the html change the src value of the missing images to something like this http://mjmacoustique.weebly.com/uploads/2/6/8/5/26851316/1434298489.png
So you haveto add the http://YOURSITE.weebly.com before all the src values of your images.
otherwise, just load all the images you need on a blank page of the site on your servers, copy image urls of those and replace the urls in the html with that.
Hope that helps?
The firefox issue might also be solved if all your src values are linked correctly but I cannot be sure about that.
When I tried exporting a site from weebly, some assets were missing from the zip it produced. This resulted in some images failing to appear because they simply weren't there. I don't know how often this happens (or if it happens only for some sites), but weebly's export feature definitely seems to have bugs.
I worked around this by using wget to recursively fetch the content that weebly was hosting. Then I hand-copied the missing assets (and only the missing assets) from the directory structure saved by wget and merged them into the directory structure from weebly's export zip. This is time-consuming, but necessary since the directory structure fetched by wget includes dynamically-generated content (meta data for weebly's editor, assets with decorated names, etc) that you probably don't want in the content you host elsewhere.

links open in new tab instead of frame after logging out of web app

i'm an amateur and have a decent understanding of html, but i know very little about php, cgi, asp, java, etc. that is why i chose html/frames template for my site.
I've read the article "framesareevil", but i just don't know any of the other, preferred, languages.
here's the situation:
I've got a simple site with 3 frames top, menu and content.
I've got all the links in menu to open in content. this works fine to a point.
one of the links is to a web app (commit crm web interface)
the link open in the frame just fine, and i can do all my work etc. the problem arises after i log out of the web app.
after logging out, all the links in menu open in a new tab. this is in all browsers on windows, Linux and android.
I have to reload the site to get the frames to behave like i want.
i set that logout page to auto redirect to the content default page (content.html), thinking maybe the web app was screwing up the frame or something, but it made no difference.
i do not understand when links open in a new tab after I've used the web app, and the content frame has been redirected to content.html
any thoughts?