node

menu, breadcrumbs, links, page and node template... how?

また、クダラナイ質問かも知れません。オックスファムのサイト、Drupal 5.x で運営してるみたいですが、 http://oxfam.org のメニューと残パンの作り方に感心しています。例えば、"About Us" をクリックするとそのメニューにバックグランドのイメージを変える事によりそれを焦点とし、残パンもそれに従っている。その "About Us" の中の真中のリンクにクリックしても、メニューの焦点は、変わらず、また残パンも一致している。これは、node template を使って、それとも page template で出来る事でしょうか?
また、6.x で残パンが思うようにならないので、検索し下記のコードを template.php に入れてみましたが、思った通りには出来ません。やはりノードか、ページで振り分けるのでしょうか?

宜しくお願い致します。

2 comments · Read more

Flera noder i en view

Hejsan!

Nu har jag letat efter ett svar på detta i tre dagar utan att hitta något. Det är säkert enkelt att lösa om man vet hur som vanligt.

Det jag försöker åstadkomma är en nyhetsfunktion som visar tre nyheter för olika länder. Den ska visa deras egna nyheter och om de endast har en nyhet så ska den visa två nyheter från de globala nyheterna för att fylla ut utrymmet.

Har fått till det med views, taxonomy och block så att olika nyheter visas på olika sidor. Men hur lägger jag till en nod till i min view? Använder mig av storys när jag gör nyheter...kanske är det där det blir fel?

3 comments · Read more
barylov's picture

replacing pages by panels

Hi!

i have some big problem with panels!

I would like to replace profile page by panels. To do this i created panel page and i set the path to "user/%". After submiting I get the error "The path is already in use" and the URL path box turns red. The same with node/%.

Do you know how to override this? Or how can I replace every user profile page by panels?

Thank you very much, and sory for my english ;)

2 comments

Tablesorting on taxonomy terms within a node view

I have a view which displays nodes. There are a bunch of terms attached to those nodes, all single-select vocabularies. I display the terms by using the "Taxonomy: All Terms" field in three separate columns and limiting each field to its particular vocabulary.

The display plugin is a table, and I want the user to be able to tablesort these taxonomy term fields.

As far as I know, there are two ways to display terms associated with a node within a node view - "Taxonomy: All Terms" and "Taxonomy: Term".

Login to post comments · Read more

create event from calendar clicking on date

I`m trying to make a calendar block with clickable dates. this is for a guest house to make reservations.Clicking on date would take to /node/add/my_event/2009-06-05 or /node/add/my_event/?date=05-05-2009 or similar. I want to pass the date as argument to "create content" form. any guest has access to create this type of node, but the default state is "unpublished" so that only administrator can approve (publish) the node. after that the created event would appear in calendar block and have CSS "has-event" definition (e.g. red color).

5 comments · Read more

Using Views to embed an Image gallery in another node

I want to create an image gallery using the "Image Gallery" module, but instead of having the gallery displayed on it's own page, I'd like to embed & display the gallery in another node.

8 comments · Read more

Theming a node several ways

Theming a node in the node.tpl.php only gives you to options, full page view or teaser! What do you do, if you want to theme the same node in several different ways depending on what region the node is shown in?

The thing I'm trying to do is, to have a node (an article) be a top story in the "Top story" region one day, and another story in another region the other. That is, I want to be able to theme a node differently depending on region.

I would like to do it in node.tpl.php, but as I see it, there are no variables available in a node that can tell you what region the node is in.

2 comments · Read more

Module-idea: Password for creating and editing Node

Okay, for an upcoming site, i need a special feature:

A ('n anonymous) user can submit his e-mail-address. By the next cron, an email is sent to the emailaddy with a code(like a hash or something) or an url. With this he can create just ONE node and edit it later, if he wants.

I haven't found such a module yet and therefore i'm planning to write this.
What i'm asking for: Did i miss such a module? What do you think about this idea? Somebody whant to join?

best regards,
dunkelfuerst

2 comments
Pocketpain's picture

Problem för Drupal att komma ihåg innehåll i fields/decimal?

Hej,
min första fråga här lyder:

Har en problem med en nod som är skapad, där man har valt 1 val (B) i en lista mellan 2 val (A och B).

Problemet är att inte Drupal kommer ihåg vilket som är valt tidigare vid uppdatering.
Då står det alltid på default value som i detta fall är första valet. (A)

Under "default value" finns möjlighet för PHP, men jag är ingen mästare där direkt.

Så hur gör man alltså för att Drupal ska komma ihåg vilket val man har gjort tidigare, när man ska uppdatera?

MVH Per

1 comment
emptyvoid's picture

Drupal Security Module Packages

Finally after several weeks of preparation the Drupal Security Module Packages are available.

About the Security Package:

Login to post comments · Read more
Syndicate content