Search /
Docfinder:
Advanced search  |  Help  |  Site map
RESEARCH CENTERS
SITE RESOURCES
Click for Layer 8! No, really, click NOW!
Networking for Small Business
TODAY'S NEWS
Valentine's Day Patch Tuesday: Microsoft to issue 9 patches, 4 critical
Mobile World Congress sneak peek: Quad-core smartphones, Ice Cream Sandwich & more
Microsoft details 'Windows on ARM' program
March debut of 'iPad 3' a sure bet, says analyst
FBI unbolts Steve Jobs 1991 investigation file
Cisco boosted profit, sales in Q2 while cutting costs
Macs take on the enterprise
Four crazy tech ideas from Google's Solve for X project
Obama 2012 campaign playlist revealed courtesy of Spotify
Oracle buying Taleo for US$1.9 billion in direct hit at SAP
Amazon attacks Apple: You get 3 Kindle products for price of iPad 2
Pre-rendered pages highlight latest Google Chrome release
Microsoft exec: Lync-Skype integration a 'compelling opportunity'
The future of hypervisors
/

Compendium /

Learning my way around Drupal

Related linksToday's breaking news
Send to a friendFeedback


Network World Fusion 03/08/04

Still playing with Drupal as a possible community platform. It's pretty cool, and so I'm starting a series of notes (under "Community") to chronicle my (mis)adventures with it.

One of the things that Drupal does is make everything a "node." It's essentially an item in a database or, for us static-page types, a single page. One of my first challenges was to try to bend this behavior a bit. Drupal has a very nice RSS aggregator, but by default, the headlines for all aggregated items leads to the Drupal pages, um, nodes for those items - only from those pages can you get to the original source. Nice for keeping people on the site, not so nice for people who see something interesting and want to get to it quickly.

Fortunately, the Drupal table that controls this identifies items as really local to the site or coming from an RSS feed, so it's a question of adding some PHP code that basically say "if this comes from a PHP feed, use the item's real URL, not the Drupal node ID for the hyperlink." Done. UPDATE: I just downloaded the beta of a new Drupal version, and I see it does this out of the box. Yay!

Unfortunately, right now, this determination is made inside the "themes" that control page display, which means if we want to give users the ability to control their displays, I'd have to embed the logic in each template set. Now to see if I can bump that decision up a bit, to the core module that controls the themes, so I can add it just once.

Back to Compendium

Comments

Post a comment

Name:


E-mail address:


URL:


Comments:


Remember info?




NWFusion offers more than 40 FREE technology-specific email newsletters in key network technology areas such as NSM, VPNs, Convergence, Security and more.
Click here to sign up!
New Event - WANs: Optimizing Your Network Now.
Hear from the experts about the innovations that are already starting to shake up the WAN world. Free Network World Technology Tour and Expo in Dallas, San Francisco, Washington DC, and New York.
Attend FREE
Your FREE Network World subscription will also include breaking news and information on wireless, storage, infrastructure, carriers and SPs, enterprise applications, videoconferencing, plus product reviews, technology insiders, management surveys and technology updates - GET IT NOW.