Drupal is up and running but how do I ...?

remove pagination on main page

1. How do I remove pagination on main page when I want only 2 or 3 stories to appear ?
2. Also, I would like to remove the line where the author of the post is mentioned or at least not making a link to the user profile. Any ideas ?

Thanks

Snippet for displaying a bunch of flexinode fields together?

I am using flexinode to build user profiles. Is there a way to print out a group of flexinode fields (contact information) together into a block? And make this automatic? For example, if 100 users fill out this profile form, their user pages should show the grouped information automatically as a result of this snippet.

Thanks in advance.

Custom nodes: Flexinode, CCK or Taxonomy?

Hello all,

I've searched the forums and I've read the handbooks, I may have missed something but I could find no clear answer in a central place.

Basically, my question is about custom nodes and how to go about building them. Here are some practical examples (they're just examples, I wrote "Gym node", "CD node"... for the sake of clarity only, the idea behind is always "custom node") :

How do I assign a Country field to a Gym node?

- Solution 1: Use a Flexinode with a select (drop-down) field for the country? But then I couldn't re-use the list of countries entered for this flexinode with other flexinodes (or anywhere else in the system).

- Solution 2: Use the CCK (Content Construction Kit)? From what I understood, CCK is like an advanced Flexinode with even more flexibility. I think CCK will allow me to build custom field types (ie. not just custom node types) that I can re-use throughout node types (I may be wrong here). If that's correct, I can build a Country custom field and re-use it in whichever CCK custom node needs it.

- Solution 3: Use the Taxonomy module? Build a Vocabulary called "Countries" containing the list of countries and associate this vocabulary with my flexinode. Then I can re-use the list of countries throughout the system and filter the tagged nodes by country quite easily.

Separate search pages?

How can I get search pages limited to specific vocabularies or flexinode content types ?

What I am looking for is the ability to create a custom search page limited to certain categories (trip_search) and certain flexinode fields (flexisearch). Currently, with trip_search, you can define the categories in the settings page, but you can't define that a particular vocab list goes to a particular search page (example, opportunities).

Function to trim images

Hi,
I would like to build a function which will remove all pictures from a text.
So, I did a function in template.php

function trim_images($text)
{
  return preg_replace("'\[img[^\]]*?\].*?\[/img\]'si", "", $text);
}

And then in my node-flexinode-4.tpl.php I put the following code:
print trim_images($node->flexinode_7);

But it doesn't work, it prints all the text, even with pictures.

Anybody has an idea?

Thanks

In menu sublevel to sublevel don't stay expanded

I have created a meny like this

  • Item 1
  • Item 2
  • Item 4
    • Item 4c
      • Item 4c1
      • Item 4c2

      -------------------
      My problem now is that when I choose for exampe Item 4c2 the menu doesn't stay expanded. If I want to go to Item 4c1 here I have to click on Item 4 again, then Item 4c and so on.

      Anyone had the same problem and maybe have a solution for this?

Pages

Subscribe with RSS Subscribe to RSS - Post installation