Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hi all. I have managed to have a great deal of success creating custom content types using a combination of flexinode, cck and contemplate but am stumped on one point. The custom content type has two select boxes and I want to display the selected values in fields above the content, not inside the body.
I was wondering if I could sort the output of a taxonomy? The default output appears to be creation time (with new items at the top). However, I want to sort via node title (A to Z).
I could do this easily with the views module, but then if I click on the taxonomy links at the bottom of the node, I get the taxonomy view...sorted by time!
I would like to add a new field when a user is creating a node. The field data will then be shown on the published node wherever I decide to put it. Can anyone point me in the right direction to do this and where I should begin.
In theory it seems relatively straight forward but as i'm not a programmer I may struggle (if it is a difficult please say so!).
I found there are 2 ways to determine what the current active language is:
i18n_get_lang()
global $i18n_langpath;
Both methods rely on the i18n.module and they both return the current active language as a two-letter code (en, fr, es...). But the first method is a function and the second method is a global variable.
Any idea which should be used? What's the best practice here?