I've created a drupal views Attachment display that lists a bunch of nodes. How would I add this to a content type? I've seen examples that require changing the template files, but can views Attachments be used without making changes to the theming layer?
...
I'm trying to see if a CCK checkbox field is checked.
Is it something like:
if ($node->field_checkbox[0]['value'] = 'checked')
?
Thanks.
...
I know how to pass one argument to a menu callback
$items['someaddress/%'] = array(
'title' => 'title',
'page callback' => 'some_function',
'page arguments' => 1,
'type' => MENU_CALLBACK
);
I don't understand why the argument being passed is $_POST['nid'] but this works. It corresponds to page argument 1.
function...
I have 17 sites with a multisite installation and uses the domain access module. This means that I have the same code base and same database for all 17 sites.Is it possible to configure Apache(hosting server) in such a way that all sites have a different IP even if the physical location for all sites is same?
...
Hi, I'm using the Drupal views module to create an overview of nodes. In the view i created i configured the Title. But now when the page is rendered the title isn't shown. It is shown in the breadcrumb etc. But not in the grid template, also if i use another template it still doesn't show. Any idea what this can be? I tried looking for ...
I'm trying to get the id of a view by supplying its name. Right now I have to insert the view into a node, then inspect it with dsm to see its ID, which I then hardcode where I need it. That's not a good workflow. If at least I could get the view's ID without inserting it somewhere first and inspecting it with dsm, that would be better. ...
Two quick questions regarding custom theming of view fields in Drupal 6 -
(a) I know that we can include a custom theme for a view field in a appropriately named template file but I notice that it has to be placed in the theme folder.
However, I want this theme file to be bundled with my module and was wondering if it could be done so...
i'm using Drupal 6. How can I create HTML e-mails for subscriptions (i.e via a template)? mail_edit() offers plaintext messages: can I use it for sending HTML mail?
...
I am in a situation where I need my end user to be able to organise a list of nodes using drag and drop. To do this I would normally be able to use Draggable Views. I also need the user to be able to bulk update the nodes returned. Normally I would use Views Bulk Operation. Is there anyway I can use both modules together? Would I need to...
Hello,
I am aiming to produce a individual top 5 list for each user of my drupal site. now trying to work this one out has become quite difficult and hence why i am here.
what im looking for is a top 5 list which allows the user to select nodes to be ranked by the user.
so at anytime the user can edit the list and re-order the list.
...
I have a view with many nodes.
I need to reference to 4 specific nodes from a menu. and scroll the view to these nodes.
The order could change, and new nodes could be added so I cannot use the class "row-4.. or row3".
I need to add a specific ID to that nodes. It would be great to add their 'nid' in the html code as ids.
How can I ma...
I'm using ubercart with uc_coupon, but the problem is that when I click on apply coupon, the page refreshes and I get no confirmation, nor the price changes, in the view cart.
But when I proceed to checkout I can see the discount at the bottom.
What should be done to dynamically update the price in the cart.
...
What are the best tuts sites for advanced learning on Drupal i.e hooks, modules, API?
...
I'm using Taxonomy View to display all nodes belonging to a term.
If it is a parent term, all nodes belonging to the children term are displayed (I've set depth>0).
However the nodes are displayed all together. While I would like them to be displayed in different groups (one for each children term).
Thanks
...
I tried to add facebook like button to my veiws, which lists a particular node-type. I used views custom field module to add the iframe code.
The problem is when I click like..
it shows Nikhil liked http://example.com/node/44
instead it should have shown Nikhil liked node title on example.com.
Where am I going wrong.
...
I'm using node_load to load a node based on the value of one of its fields. If the field I'm testing against were uid for example, I would do it like this:
$n1 = node_load(array('uid' => $val));
but this field sub1 is nested in an array field_val[0][sub1]. I tried putting quotes around the whole thing, but it didn't work. I tried othe...
Hi, i'm developing my first Drupal project and i'm wondering how should alter the breadcrumbs and active menu item. part of my site setup is as follows:
Virtual Exhibitions (which is a view, that lists all the taxonomy terms related to a certain taxonomy vocabulary, breadcrumb should be "home > Virtual exhibitions")
Theme...
I have a simple drupal block which displays top terms from a given vocabulary, ordered by the frequency of use of those terms (ie, most popular tags). I would like to add a "view more..." link at the end of this block, which links to the "page" mode of this view, listing all terms, instead of just the top N terms. How would I go about do...
Hi,
I need a function for a plugin to check, if the shown account is the user's account or that from another one. I am using this function for that:
global $user; $account;
$account = user_load(array('uid' => arg(1)));
if ( $user->uid == $account->uid ) {
}
I am doing that inside a module but it does not work. When I go to my profi...
I'm updating a node with nodeapi update, but there's more that I need to do behind the scenes which requires me to know the old value of a field/ Is there a way I could get the old value of a field before it's overwritten.
...