Get Term Name From Term Id
Ever managed to pull a 'term id' using Drupal Views, yet really need to display the 'term name'?
Well, thanks to Vicky on the Stack Overflow site, here's the solution...
Place this function in template file...
Ever managed to pull a 'term id' using Drupal Views, yet really need to display the 'term name'?
Well, thanks to Vicky on the Stack Overflow site, here's the solution...
Place this function in template file...
I often get asked this question.... so here is my answer....
Most have been pulled from other sites, and links to those sites have been included... The last section are my own personal thoughts...
Here are some ‘points’ with explanations I’ve pulled from, http://www.volacci.com/blog/ben-finklea/2010/march/31/9-reasons-why-drupal-best-cms-seo, which starts with:
I'm always a little cautious when updating modules, so I tend to download and unpack the new modules into a 'workings' folder rather than the 'modules' folder... Then I make sure I have downloaded the current (now out of date) module from the server using FTP so I have all of the files that are currently working downloaded too... Then to update the module, I simply drag it's folder from my 'workings' folder on my computer, to the 'modules' folder on the server... This means that the server now has the updated files, and I have both on my computer...
So here’s the scenario… A perfectly working Drupal site, without errors suddenly starts spitting out an error:
Unable to save result set in /includes/database.mysql.inc on line 115
With the help of good ol’ Google, I managed to find FISHTRAP who had also experienced the same error…
Sometimes it’s handy to use a different page.tpl.php for a certain content type. Maybe the page has a different layout, needs additional regions not used on other pages, etc…
Solution
In light of recent events, where I managed to delete a database that I shouldn’t have… I figured I should make sure that all of my Heart Internet hosted Drupal accounts are backed up on a daily basis…
As this is very easily done on a Drupal site via the ‘Backup and Migrate’ module, I figured I’d set them all up and create some instructions at the same time…
OK, I’ve managed to get to the bottom of it… For the life of me I couldn’t figure out how to get the XML Sitemap module to show pages other than the home page…
Then I found it!
This is more for myself, but good if it helps someone else too….
This is a Drupal 6 (6.22) set-up on Heart Internet hosting (Reseller account).
There are loads of themes available, but you’ll rarely find one that’s exactly what you want (or what the client wants), straight out of the bag… So at some point you’ll need to add a region, and this is how.
In each ‘theme’ you will have a .info file, a page.tpl.php file and the style sheet. The .info file will start with the name of you theme, so themename.info for example.
INFO
To add a new region called ‘Banner’, you open the .info file and you should see a section like: