I created a new page and now wish it wasn;t there. How do I delete it
I created a new page and now wish it wasn;t there. How do I delete it http://towtalk.net ... Hosted by Zarconia.net! |
It should go away on it's own if you remove any blocks it contains. https://www.deanbassett.com |
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. |
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. |
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 |
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. |
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 |
Ok. https://www.deanbassett.com |
Ok. simple add this to the delete button <script type="text/javascript"> if(confirm("Are you sure you want to remove the page")) alert('Page deleted, I hope you were sure'); |
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! |
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 |
@SkyYes @Deano lol you are probably right, someone will decide after that "Oppps, I deleted the wrong page!!!!!!" |
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! |
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 |
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! |
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!!!! |
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 |
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! |