I have a views block to display only the titles of some few nodes. Titles linked to the single node. I want to have a CSS class .active
added to the title's links when the linked path matches the actual called path. As mentioned in the comments below, I didn't got that class by default.
So I added a Global: PHP
field right after I added and excluded a Content: Path
field to access $row->path
in the Global: PHP
's output code field. But $row->path
seems to be empty. dpm($row)
gives me a path: NULL
. Content: Path
displayed gives me the right paths. But where's the path gone in the PHP field??? When was the moment it got nulled?
I still managed to do what I want with the nid
. Though without the beautiful alias paths I'ld like to have.
active
class.