I have set up a view that uses the Term ID argument to display the taxonomy term description on a page. The term name shows up on the page, as this is called out by using the percent substitution for the title; however, unless I have nodes associated with that term, the term description will not appear.
I've been banging my head against the wall for days on this one, and the only solution I can arrive at is that I use PHP code to provide the default argument when the argument isn't present. However, I don't know the proper code to use here to get the term description.
Thank you for your time, and if this doesn't sound like a viable solution, please let me know if there are any other ideas to get this to work.
Comments
Comment #1
renenee commentedAny ideas on this one? I'm truly stuck, and I can't imagine this is an uncommon need ... thank you!
Comment #2
dawehnerI'm not sure what you actually tryed but this sounds a bit like if you would have a node listing, not a taxonomy listing ... could this be the case?
Comment #3
renenee commentedThanks for responding. Here's my specific situation:
I have a website for an engineering firm with three different service areas. Basically, they will have a portfolio of projects within various taxonomy categories. I need them to be able to add categories and sub-categories under these service areas via Taxonomy, which will automatically generate a menu item via Taxonomy Menu. When setting up a term in Taxonomy, they will enter a term description, which is then placed via views on the landing page for that category. Then, I have used hierarchical select to force them to choose the deepest category in the lineage when creating a new project node.
The issue is that a parent term does not have a project (or node) associated with it, so it won't display the term description.
Not sure if this helps illustrate this, but here is a landing page for a service area on the development site:
http://garydavi.www71.a2hosting.com/architectural
If you click on Residential in the left column, you will see it displays and empty page (even though there is a term description associated with that Taxonomy term). If you click on Lakefront, underneath Residential, you will see the projects associated with that term and the term description that follows.
Am I just approaching this the wrong way?
Comment #4
renenee commentedJust wanted to check on this one again. Any ideas?
Comment #5
dawehnerI'm still not sure whether you might have missed my answer, but in general the views issue queue is so full of people, so waiting for 7 days is somehow nothing.
Maybe it would help if you post your current view as attachment, see http://drupal.org/node/571990 for more information. At least this allows us to tell what you actually did. Words are often hard to understand.
Comment #6
esmerel commented