I have a table that looks something like this:

Course title A
Class date
Class date
Class Date

Course title b
Class date
Class Date

Course title C
Class date
Class Date

I want to put named anchor tags around each course title so that I can link to only certain sections of the schedule page if I want. I tried making arguments and I tried re-writing the field link but nothing worked. Is this something that is possible to do?

Becky

Comments

merlinofchaos’s picture

The easiest way to do this would probably be to theme the Course title field to create a named anchor. I'd have to play with this to see if it can be done with rewriting, as I'm not sure. In theory it should.

beckyjohnson’s picture

Hmmm...Ok. I'll play around with this and see what happens.

[update]: I re-wrote the field like this:

<a name="%1"></a>
[field_node_parent_nid]

and this kind of worked... I did get the a tag in there but I was hoping that that %1 would change dynamically from title to title based on the argument I made.... that didn't happen though...
Becky

aren cambre’s picture

Title: Is there a way to insert named anchor tags around the field I am using to group things in a table style? » Insert named anchor tags around grouping field
Version: 6.x-2.7 » 7.x-3.x-dev
Component: table style » Code
Category: support » feature

#2 is a good idea, but seems like this is good structural information to include by default?

Changing component because I imagine it would apply to any display that supports grouping.

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev

New features should be implemented in 6.x-3.x.

aren cambre’s picture

I thought things go into the latest credible version first?

dawehner’s picture

The Drupal7 version is just a port of the drupal6--3 version. So every patch get written fro 3.x and then get ported to 7.x

anyr’s picture

thanks Becky, just what I was looking for

luksak’s picture

thats good, but how can i achieve something like this:

Course title A, Course title b, Course title b
Class date
Class date
Class Date

Course title A, Course title b, Course title b
Class date
Class Date

Course title A, Course title b, Course title b
Class date
Class Date

with each title linking to the right anchor?

thanks

lukas

beckyjohnson’s picture

Did this ever get implemented in 6.x-3.xdev? Or Alpha 3? Just want to check.

dawehner’s picture

People, if this issue would have been implemented it would have been marked as fixed :)

At least you opened the issue so it's okay to ask

Letharion’s picture

Assigned: Unassigned » merlinofchaos
merlinofchaos’s picture

Assigned: merlinofchaos » Unassigned
Status: Active » Fixed

I'm confused why this is an issue.

%1 won't change from title to title, because it pulls from arguments. Arguments are the same every record. If you want something that changes dynamically from title to title, you need to use a field token of some flavor.

beckyjohnson’s picture

Status: Fixed » Active

How do you get a token into a view?

iamjon’s picture

Status: Active » Closed (works as designed)

beckyjohnson,
a token is a reference to another field that has been pulled before.

closing this based on comment #12