Skip to main content
15 events
when toggle format what by license comment
Jul 30, 2018 at 14:51 history edited leymannx CC BY-SA 4.0
added 72 characters in body
Nov 28, 2015 at 17:33 history edited avpaderno
edited tags
Feb 3, 2015 at 12:16 comment added Alfred Armstrong If the current page URL matches that of an A tag on your page, and if that tag was generated using the l() function (which it will if it was generated using Views), it should have the active class. If it doesn't, that is a different issue to the one you have raised here.
Feb 3, 2015 at 12:06 comment added leymannx @AlfredArmstrong - Well, I didn't got the class...
Feb 3, 2015 at 11:38 comment added Alfred Armstrong Please explain why you are using PHP to achieve this. If you use the built-in Views link to content, you should get the active class automatically.
Feb 3, 2015 at 11:29 comment added leymannx @AlfredArmstrong - You got the part with the CSS class, did you? If path == linked path, add class xyz to linked field. If you found another way, please let me know :)
Feb 3, 2015 at 11:21 comment added Alfred Armstrong I was suggesting that you need to explain more about what your PHP code is trying to do. Generally, if you want to generate a link to content, it's easy to get Views to do that so I was wondering why you had resorted to PHP.
Feb 3, 2015 at 11:19 comment added leymannx @AlfredArmstrong - Are you just having a feeling or do you try to suggest a profound answer?
Feb 3, 2015 at 11:02 comment added Alfred Armstrong Why are you using PHP rather than Views' own handling? This sounds like something Views will do out-of-the-box, though your question doesn't really explain the motivation.
Sep 7, 2014 at 16:20 vote accept leymannx
Sep 7, 2014 at 16:20
Aug 16, 2013 at 10:26 comment added leymannx Well... It doesn't.
Aug 16, 2013 at 10:18 answer added leymannx timeline score: 2
Aug 16, 2013 at 10:06 comment added Jack-PL if these titles are linked, then there is nothing to do. The active link should already have active class.
Aug 15, 2013 at 21:04 history tweeted twitter.com/#!/StackDrupal/status/368115923477360640
Aug 15, 2013 at 18:02 history asked leymannx CC BY-SA 3.0