Delete a New Page Block

I created a new page and now wish it wasn;t there. How do I delete it

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 3 Feb 2010

It should go away on it's own if you remove any blocks it contains.

https://www.deanbassett.com
Quote · 3 Feb 2010

As bizarre as it seems, I don't think you can - you have to do it from the database.  This would be a good thing to discuss in the bug forum, but of course this isn't a bug - it would be a new feature, so you better not mention it there.

Quote · 3 Feb 2010

I don't think so Dean - I have an empty one still on my page - is that a cache issue?

Update- just tested that - made a new page with one column and one block, then removed the block - the page is still there.

Quote · 3 Feb 2010

Any new page i have ever created has always deleted itself as soon as i removed any content it contained. I am going to test this again just to make sure, but removing all content is all that should be required.

https://www.deanbassett.com
Quote · 3 Feb 2010

ok, see if your test results are different than mine.  I guess I am old school though - I think there should be a "delete page" button.

Quote · 3 Feb 2010

Yea. Me too. I must have been thinking of D6. I know one of the versions removed empty pages automatically. D7 i guess does not. Could be a bug i suppose.

https://www.deanbassett.com
Quote · 3 Feb 2010

Ok.

phpmyadmin.

Go to table sys_page_compose_pages

Find your page name and delete.

I could add this to my deanos tools module, but i can see it already. HELP. I deleted my home page. How can i get it back. Nope, no way i am going to deal with that.

https://www.deanbassett.com
Quote · 3 Feb 2010

Ok.

phpmyadmin.

Go to table sys_page_compose_pages

Find your page name and delete.

I could add this to my deanos tools module, but i can see it already. HELP. I deleted my home page. How can i get it back. Nope, no way i am going to deal with that.

simple add this to the delete button

<script type="text/javascript">
function remove page(){

if(confirm("Are you sure you want to remove the page"))
if(confirm("Are you really sure you want to remove the page"))
if(confirm("Are you realy really sure you want to remove the page"))
if(confirm("Are you really really REALLY sure you want to remove the page"))
if(confirm("You know you cannot un-delete right?"))
if(confirm("Are you sure  you know you cannot undelete"))
if(confirm("Do you agree to not hold deano liable for deleting a wrong page"))
if(confirm("If you are wrong about deleting this page, you can stop deleting it now"))
if(confirm("If you are unsure, stop now"))
if(confirm("Are you sure you want to remove the page"))
$.getScript('remove');

alert('Page deleted, I hope you were sure');
}
</script>

Quote · 3 Feb 2010

LOLOL!

You mean like the guy that deleted his admin account?

Thanks guys. I'll just go delete it from the database. I didn;t know if that would cause other issues or not.....

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 3 Feb 2010

Even with all those are you sure questions. There will still be people that go. Ummmm, i changed my mind, i want it back.

https://www.deanbassett.com
Quote · 3 Feb 2010

@SkyYes

@Deano lol you are probably right, someone will decide after that "Oppps, I deleted the wrong page!!!!!!"

Quote · 3 Feb 2010

Ok. So lets say you don't build it and they don't come. Then they find this page and decide to go on a deletin rampage in their databases.

 

Might as well teach them what 'regedit' stands for LOL!

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 3 Feb 2010

At least it's not a function in one of my modules. I just have this fear of giving people a faster way to break something.

https://www.deanbassett.com
Quote · 4 Feb 2010

Well. I have an idea.

create the script where any time they build a new page, it adds it to a permissions file, then only allow your script to delete what it finds in that file. That way, they can't delete the default stuff.

Just a thought.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 4 Feb 2010

 

Well. I have an idea.

create the script where any time they build a new page, it adds it to a permissions file, then only allow your script to delete what it finds in that file. That way, they can't delete the default stuff.

Just a thought.

 

Until they edit something else on their site, screw up and accidentally hack his mod, which then deletes all the default pages instead of the one they wanted. 

 

I can see the headlines now:

 

Help!  I just deleted all my members and gave admin permissions to all the IP's I blocked!!!!

Quote · 4 Feb 2010

deano,

i think you could pull it off based on the last pageID from a default installation, and limit the delete feature from say pageID=164 or whatever the last nage ID number would be, and dont provide the option to remove default pages.

Even with all those are you sure questions. There will still be people that go. Ummmm, i changed my mind, i want it back.

you are right, some jackass would surely delete the home page, maybe you could add it to your tools to dump the dbase and archive it, J I F C eh?

Regards,

Good Luck with that one

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 4 Feb 2010

LOL. This is gonna be one of them endless posts about stupid people, I can feel it now

 

You know, you can put seat belts in a car but they are completely useless if they don't have the sense to use them.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 4 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.