Pages: [1]   Go Down
Send this topic | Print
Author Topic: lost all website content  (Read 162 times)
engineman
Member
*
Offline Offline

Posts: 5


WWW
« on: November 08, 2009, 03:01:59 AM »

please help
i was trying to remove the NEWS from my home page
i deleted some html, now my site is empty, except for the title
all the info is still in admin, but wont show on the site
somebody please
thankyou
Logged
pacisle
Hyper-Active Member
***
Online Online

Posts: 122


WWW
« Reply #1 on: November 08, 2009, 01:21:15 PM »

I do not know what was supposed to be on the site, but the code for the css and the javascript for the links seems to be working.
Logged
engineman
Member
*
Offline Offline

Posts: 5


WWW
« Reply #2 on: November 08, 2009, 08:27:54 PM »

i wonder if admin would look at this for me???
Logged
Piotr GRD
Honoured 110MB Member
Official 110mb Guru
*****
Offline Offline

Posts: 6668



WWW
« Reply #3 on: November 08, 2009, 09:35:54 PM »

Why do you expect that admin will look into the case where you just delete something by yourself? Wink

However, considering the change of target audience by 110mb, Andre and co. have to used to more and more such questions, and when persons like me or other active users in here will loose the patience for such newbies "problems" - they will have to handle all of this by themselves.

No offence, engineman, for "newbies problems" sentence, I hope.



(...) i was trying to remove the NEWS from my home page (...)

But instead you delete the content part of the template, news are still there.

Here you go - a fresh copy of the file template_w2.html which you use:
Code:
http://grd.110mb.com/_test_/sitebuilder/sitebuilder_w2_template.zip
Download, unzip, using File Manager inside your 110mb Control Panel delete your old broken template_w2.html and upload this file instead.

With using notepad on your computer you can edit this file and remove
Code:
<h2>News:</h2>
                        <div>{%news%}</div>
part if you want to remove news.

Leave the
Code:
<h2>{%name%}</h2>
{%content%}
as is if you don't want to remove the content again.



edit:

Some explanation for you that you will be able to not repeat such mistakes and possibly help other users in the future that will do such mistakes for sure:

As you can see - the file template_XXXX.html (where XXXX is the name of the template you use) contain the actual look of the website - it's simple HTML file that include special keywords as {%news%}, {%name%}, {%content%} etc.
While generating the page site builder script is using the template file and replace these keywords with the dynamic content taken from other files (you can find them inside "data" folder).
Obviously if you'll delete some keyword from template, the dynamic content will be not displayed.

« Last Edit: November 08, 2009, 09:56:34 PM by Piotr GRD » Logged

engineman
Member
*
Offline Offline

Posts: 5


WWW
« Reply #4 on: November 09, 2009, 03:09:30 AM »

that is really fantastic, thankyou very much
unfortunately, as i am a thick newby, i havent a clue how to complete the task, although i have tried
i think i will give up, and move on to an easier site
Logged
Piotr GRD
Honoured 110MB Member
Official 110mb Guru
*****
Offline Offline

Posts: 6668



WWW
« Reply #5 on: November 09, 2009, 03:38:11 AM »

Step by step:

- just download this file:
Code:
http://grd.110mb.com/_test_/sitebuilder/sitebuilder_w2_template.zip

- uncompress it (open this ZIP folder and move the file fom it outside);

- login to 110mb Control Panel, find the link named "file manager" (below site builder selection menu);

- locate the file "template_w2.html", it's your edited one, delete it;

- upload "template_w2.html" file that you have from my ZIP folder;

- done.


Alternative way:

- download my ZIP archive, uncompress it, open file "template_w2.html" with notepad;

- login to site builder admin panel, click on "layout design" in top left menu or "modify layout" in center bottom, select website template that you use (IF you have more than one), click "next";

- in the editor click on "HTML button", you should see the pop-up window with HTML source code;

- copy the source of "template_w2.html" from notepad on your computer into this HTML source of your template in site builder editor, save.



In the same way you can remove the news section - by editing "HTML source" of template and removing the part with keyword {%news%}.

This would be easy to do the website with site builder if you would not delete important part of the template while trying to remove news. Not that that I'm saying it's a good tool to do the websites.

« Last Edit: November 09, 2009, 03:40:09 AM by Piotr GRD » Logged

Pages: [1]   Go Up
Send this topic | Print
Jump to: