View

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
aJob's picture

En ol li lista med "gruperingar"!

Jag vill göra en ol li lista med "gruperingar".
Det verkar som det är omöjligt med Drupal! Kanske är vanligt uttryck hos nybörjare...

Jag håller på att göra en navigerings meny som jag vill ska se ut:
Frukt
1. Banan
2. Päron
Kött:
3. Julskinka
4. fläskfilé
5. revbenspjäll
6. Wallenbergare
Mejeri
7. Mu-mjölk
8. Turkisk yoghurt
osv....

hur får jag till detta?
Har kollat på lösningar med hjälp av bok, taxonomi och meny men inte fått det att fungera tillfredsställande.
Tror jag har en idé hur jag skall lösa det.
På "page" sidan så kan man välja en taxonomi tex "Frukt".

9 comments · Read more
laken's picture

How to to set a panel page's title to the title of an embedded view?

Using latest Panels 5.x-2.x-dev

I have a panel page where the main content area is an embedded View. This view takes arguments which become part of its title, so the title changes dynamically (it's a year/month archive drill-down view). (See screenshot attached)

I want to set the title of the overall panel page to the embedded view's title. Anyone know how to do this? If it can't be done through the UI (which I suspect), please suggest code approaches.

This forum seems pretty quiet, hoping some of the experts are still out there!

5 comments · 1 attachment
sadotter's picture

Using views to display posts in all groups that any user belongs to

Hi all, I'm having a bit of a quandry because I think I'm trying to do something that might not possible using the Views module: I'm trying to display recent posts from all the Organic Groups that a user belongs to. For example, say I have a user whose has a drupal username of "ben" and belongs to three groups. There is a page for each user on the site, in the format "users/[username]", so in this case we have the page "users/ben". On this page I'd like to list recent posts made in all three groups that ben belongs to.

1 comment · Read more
jeff00seattle's picture

View Handler methods "query()" and "pre_render()"

Hi

What is the purpose of the View handler method query()?

Using a skeleton class that traces the calling of the View handler methods, I see that method query() is called before method pre_render(). Is there an expected work flow relation between these two methods?

Thanks

Jeff in Seattle

3 comments
sukoom2001's picture

Proposal-Custom Parametric Search Module

Overview: This project aims to provide an easy mean for site developers to create custom parametric search forms and result pages for different content types, much like those of e-commerce sites. The current idea is to create a module for creating search UI depending on CKK and Views. This module will provide flexibility for combining search parameters (operations, priorities, dependences, etc.) and customizability in the look of both search forms and result pages.

Description:

4 comments · Read more

Views beronde på uri innehåll!

Hej,
Kan någon snäll förklara hur man genom en View och ett block kan hämta data för det aktuella nod id:et.

Så här långt har jag kommit:
Jag har skapat en view som hämtar den datan jag vill ha.
Placerar ut den rätt genom ett block.
Sen vill jag att den hämtar rätt data som tillhör just den noden.

Svårt att förklara men är de någon som förstår?

/Martin

6 comments
Syndicate content