Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

Drupal Wish #1: Easier Linking to Terms

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

You said it!

  • Tough one to Inves...

    I have heard and read stories such as this one before, and their common denominator is Drupal...

  • exclude

    excellent tip - can highly recommend the module - installed and working perfectly in drupal 7

  • Great CMS

    This book seems very interesting as I am currently starting a project to build a community site...

  • Thanks!

    Thank you very much !

  • Thank you very muc...

    Thank you very much !

more

Forum Find

Forum Finds: Node deletion is forever

Submitted by Drupalace on Mon, 2010-05-31 13:51
  • content
  • Forum Find

Here's a small bit of knowledge from the Drupal.org forums that'll be news to no experienced user, but is very important for newcomer admins or any user given power to delete content on a site:

If you delete a node (Page, Story, anything) on a Drupal site and decide you want it back, is there an undo feature? No. You get one chance to back down when Drupal asks "Are you sure you want to delete [node title]?", but that's it; click 'Delete' again and it's gone, man. There's no Trash Can or Undo option or other means of retrieval. Your only possible recourses are:

1. Restore the node from a database backup. (You should of course have such a thing.)

2. Look for a cached copy of the node on Google or some other web site caching service. You'll have to rebuild the node from scratch and re-input all of its fields, but at least you may be able to recover the node's main body text from the cache. (Who knows; you may even have a cached version of the page within your own browser's cache.)

Fortunately, it's easy to avoid data-wiping accidents. Make sure all users know that there's no easy undo for a deletion. (Alternately, don't give users permission to delete nodes in the first place!) When you do want to take a node off the site, consider hitting that node with a simple unpublish instead of a delete. It'll disappear from sight (and site), but will nicely lie dormant until you should choose to resurrect it. 

  • Drupalace's blog
  • Add new comment
  • Quote

Forum Finds: Modify length of user login sessions

  • Forum Find
  • login

Here's a good bit of info on Drupal login session length spotted in the Drupal.org forums:

Tired of logging in again and again to a Drupal site that keeps kicking you out? You can modify session length, i.e. the length of time that a logged-in session stays logged in. Open the site's settings.php file, and look for this line:

ini_set('session.cookie_lifetime',  0);

Replace that "0", or whatever number is there, with the number of seconds for desired session lifetime. The system will probably limit you to a max 2000000000 (two billion) seconds – which, at over 60 years, is extreme overkill. (Rule of thumb: One million seconds = 11 and a half days. Or just figure 100K seconds as a day plus change.)

Keep in mind, though, that letting users stay logged in for a long time has security implications (such as when a logged-in user's computer is appropriated by someone who shouldn't be poking around in the site). For more details and an alternate, module-based approach to setting session length, see the Persistent Login module.

  • Add new comment
  • Quote

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Drupal mini tip

As noted in Forum Finds: Node deletion is forever, when you tell Drupal to delete a node it gives you one "Are you sure...?" chance to recapitulate, but that's it. Confirm the deletion, and that node is gone; there's no Trash Can or Undo to get it back.

To prevent mishaps, be careful in giving users permission to delete nodes. Also, make it a rule to unpublish, not delete, nodes when you want to take them off the site. The node will disappear from view just as if it had been deleted, but will remain in the database should you ever want to republish, reedit, or otherwise revisit it.

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme