Syndicate content

Drupal Tutorials

Hi,

I have CSS code in content for styling. Due to this my search results is showing CSS code. Please let me know how this problem can be solved. Thanks in advance.

AP

Hi,
Is there a way to remove a link from a book page?

So for example here is the book menu:

  • Book
    - Chapter 1 (expands when clicked)
  •   Chapter 2 (expands when clicked)
  •     Alabama (expands when clicked)
  •     Arizona (expanded)
  •      Section 1 (link)
  •      Section 2 (link)

Thanks

Hi all,

Which is the best way to customize front page of my site?

  1. I have a vocaboulary named "CATEGORIES"
  2. Example of categories (first level of terms) are: "music", "art", "sport"
  3. Every category has is own sub-terms, e.g.:
    • music -> rock, country, jazz
    • art -> photos, sculpture
    • sport -> basketball, football, hockey

In my home page i would have a box for every category, listing all recent posts for that category (and posts of related subterms), like this:

Hi Aaron, came back to use your code on how to insert a View programmatically http://www.pixelclever.com/how-programmatically-insert-a-view-drupal-6

I have come up with a few problems.

I created a view with fields to use the taxonomy term as an argument, then created the View theme templates to display the fields. The view that overrides the the content type shows all the nodes of the content type, and is not picking up the argument taxonomy term from the url (though it does on the live preview in the view)?

hi

i've added a cck field (named field_luogo) to a node

and now i would like to add to the node a php snipplet getting the cck field value and passing it as argument to a view;

so i've tried

$node->field_luogo[0]['value'];

but i get no value

is this the right way ?

thanks pierluigi

This document is intended for module developers who wish to make use of JQuery to process an array of hierarchical data into a click and expand menu. It is written with the assumption that you are a programmer and that you know how to create multidimensional arrays through recursive functions.
The only function that third party modules need to call from JQuery menu in order to create a click and expand menu is as follows:

theme('menu_creation_by_array', $menutree, $trail);

This calls the theme function menu_creation_by_array() and sends it two arguments:

The Views module for Drupal 6 (also known as Views 2) ships with several default views which allow you to override certain Drupal core list pages. One of the most useful of these views is the view provided for taxonomy term list. Just recently I decided to set up views to override my taxonomy pages so that they would show children terms, but when I jumped into the Views 2 interface and tried to actually do it I was left a little perplexed; if you are reading this page you probably were too.

In Drupal 6 views has been completely rewritten from the ground up, and as such we have to adjust the little code snippets that we developers have collected over the years to compensate.

The old way ( Drupal 5 views 1 ) of inserting a view into a tpl or into a php enabled content area was as follows:

<?php
$view_name = 'text_listing'; //name of view
$view_args = array($oldstring) ;
$view = views_get_view($view_name);
print views_build_view('embed', $view, $view_args, $view->use_pager, $view->nodes_per_page);
?>

This has now changed to the following:

<?php
  $view_args = array();
  $display_id = 'page_1';
  $view = views_get_view('logo_slideshow');
       if (!empty($view)) {
        print $view->execute_display($display_id , $view_args);
  }
?>

Once you’ve created a page for your site you are probably going to want to add a link to that page at some point. If you had a Drupal developer like myself build your site then you probably already have a couple of menus in place already, but what happens if you want to add a new one?

Well, you can call me and have me do it, but in my opinion that would an expensive option especially since Drupal 6 makes it extremely easy to do yourself.

One of the first questions people ask me after I show them how to create a page in Drupal is “So where is the page now?”. It’s a simple question but the real answer is a little bit difficult for laymen to grasp at first. You see Drupal doesn’t create new files when it creates a new page, so the page doesn’t exist in a folder on the server where you could go download it as is true with some other content management systems. Drupal stores the information to create the page that you see by storing the necessary information in several places in the database.