How do I create a link to a tab within a panel node?
I'm working on a Drupal website and have tabs within panel nodes (Modules: Tabs, Panels, Tabs Panel Style). When I click on the tabs it takes me to the correct tab. When I click on the 'next' and 'previous' links they take to the correct page. When I hover over those links they show m...
For example, I have a php function:
function DeleteItem($item_id)
{
db_query("DELETE FROM {items} WHERE id=$item_id");
}
Then, I have something like the following:
<html>
<head>
<script type="text/javascript">
function DeleteItem($item_id)
{
alert("You have deleted item #"+$item_id);
}
</script>
</head>
<body>
<form>
Item ...
I'm getting duplicate nodes in a a view I've created in Drupal. It appears the issue is related to the way the join is done in views for the node_access table.
Using devel, I see the following query:
SELECT node.nid AS nid,
node.language AS node_language,
node_data_field_weekend.field_weekend_value AS node_dat...
hi!
i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job?
EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro..
it's simple..i've openID enabled in my drupal 6. When i t...
Hey,
I'm trying to link together a number of pages in a regular flow in Drupal. The way I've been doing it recently, is to create a new Menu and then seperately create a page for each menu item.
For example, I have a menu block with links One through to Six. I then create six pages and link One to node/1, Two to node/2, Three to node/...
I am trying to display a custom page the same as my search results page by re-using the theme functions and pre-processors built into the search module.
With an empty Drupal cache this works beautifully. I simple call
theme('search_results', $results, 'node' );
with a correctly popuated results array, and I get back formatted markup...
Or, how can I send the user to a specific directory from a link? Basically, I have groups setup as project and on the site there will be many projects associated with groups and they will each have their own folders within webfm that are automatically creating. I would like to show the files for that group in a nice fashion. I would like...
by default, when you create a content which has a taxonomy,
drupal will show a select list with all term showed up.
i just want to know, which built in function the drupal 6 used to build that
select list.
...
I'm writing a drupal module, and I need to write a query that returns particular rows of one of my content_type tables. My query so far is:
SELECT DISTINCT pb.*, f.filepath FROM {content_type_promo_box} pb LEFT JOIN {files} f ON pb.field_promo_image_fid = f.fid
I realized as I was working that the table not only contains each cck fiel...
Hi guys, im here with a nasty question.
Drupal handle comments giving the user the choice to display thems just in 4 ways: Flat list - collapsed, Flat list - expanded, Threaded list - collapsed, and Threaded list - expanded.
Im using the last one, whom provide a markup like:
<div class="comment">
<!-- comment's content -->
</div>
...
I have a legacy PHP form that I'm moving over to Drupal 6. I'm trying to make things easy for me as well as the future admins of the site. The below form is the heart of the old site data. So far in cck I have Locations, in taxonomy I have Countries, now I just need to allow these Species data to be added. I would do it in CCK, but I als...
Hiya,
I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually use Drupal Template Suggests but for some reason when creating the files:
search-block-form.tpl.php
search-result.tpl.php
search-results.tpl.php
search-theme-form.tpl.php
None of them seem to override the ...
i have a template "views-view-field--tracker--name.tpl.php" for a view called tracker, and i am using an If...Else Statement in the template to print fields.
<?php
if ($node ->uid == 0) {
print $view->field['field_authorname_value']->render($row);
} else {
print $view->field['name']->render($row);
}
?>
The above code is not functi...
Hi,
I'm developing a basic system (using drupal) to manage a school. It has to handle courses, teachers and students, among other features.
With cck i've already created the courses and their respective subjects/disciplines.
My question is, how do i assign grades to each student on each subject/discipline?
How can i make those assigned...
currently the output from my date field entries reads like this
Sun, 25/04/2010 - 10:00am - Sun, 02/05/2010 - 5:00pm
but I would prefer it to read like this
Sun, 25/04/2010 - Sun, 02/05/2010 10:00am - 5:00pm
is there a drupal beginner way of doing this?
...
I have a statement in my template.php file that directs to a custom node-myccktype.tpl.php. I've added some DIV's so that I can have a two column node/add form, but now I'm trying to find print my fields, but can't seem to get it.
I'm basically using something like this:
<?php print form_render($form['field_sr_minutes']); ?>
which I...
Hi, all!
I have a multi-language drupal setup (2 languages, english default). I want users to receive always content in the other language (lets say spanish) on initial page request, but keep english as default language for future language switch. So users will be redirected on initial load to site.com/es, but through the language switc...
I am using Drupal 6 and have the AJAX module installed. I have the following code:
function remove_manufacturer_role_form($form_state) {
$form['#ajax'] = array(
'enabled' => TRUE
);
$form['hidden'] = array('#type' => 'value', '#value' => 'is_it_here');
$form['submit'] = array('#type' => 'submit', '#value' => t('Remove yourse...
I am theming a custom tpl.php file to style my forms.
I am printing my fields with something like this:
print drupal_render($form['field_sr_minutes'])
The problem is that on one element I need to get in this form is a taxonomy field, which is what i'm having a problem with. It will display with drupal_render($form), but I want to put...
I currentley have a test site up and running on mydomain.cm/test. I am using the WYSIWYG module with tinymce to allow my customers to upload pictures to the site. One a image is added to the site tinymce/imce does not use the base url defined for the site in front opf links but gives linkes realtive to the root i.e. a picture of img.jpg ...