Hi
I am using drupal 7. I created a new table with using node_form_alter.
Now I need the default view (when i click to view a node) show me the information from two tables.
$build = array();
$sql = 'SELECT nid FROM {node} n WHERE n.type = :type AND n.status = :status';
$result = db_query($sql,
array(
':type' => 'purchasing',
':status' => 1,
)
);
I've been trying to find out how to get the content language in Drupal 7 (alpha 5).
In the header of page.tpl.php I want to add some content language dependent code.
First I tried $language, but then I found out that this returns the interface language.
I would like some nodes to allow anonymous comments, some nodes not to allow anonymous comments, and some nodes to allow comments by role, but it seems that there is only a single on/off switch for anonymous comments and none at all for comments by role? If so, are there any modules that will do this?
What I need or require:
I need a cutting-edge, sleek website designed for a new endeavor that will be devoted to showcasing high-definition videos and interactive maps that will serve as walkthroughs for video games. There will be a dedicated page for every video game, and on each page will be a list of 'achievements' and related videos.
In greater detail, visitors will initially see a nice home page when they first arrive at the site. On this page will be a showcase of recent games that have been added to the site, perhaps in a nice interactive gallery style with thumbnails where you hover over a screenshot from the game and the title fades in. Under that gallery will be a space to make bulletins or announcements. At the top should be some dropdown boxes (again very sleek and interactive as I currently have on my site) that allow you to pick the system you are interested in (ex. ps3, pc, xbox 360). When you click that, you are taken to a page that lists all games we have content for.
You then click on a game and are taken to a page that lists all of the achievements/trophies for that game. Achievements/trophies are challenges in video games that many people go online to find help for. To get an idea of what the achievement list will look like: http://www.xbox360achievements.org/game/transformers-war-for-cybertron/a...