Drupal and the Indeed API

Events happening in the community are now at Drupal community events on www.drupal.org.
nravens's picture

Hi All,

Has anyone implemented the Indeed.com API on a Drupal site?

If so, how did you do it?

Some background:
We have a jobs board where I have users posting jobs as well as feeds from other sites populating content. I need to use the onmousedown attribute in the href of the job feeds that I'm pulling from indeed for them to track click-throughs.

So I used their xml api to generate a URL that I then used as a feed to a content type(indeed jobs) on my site. They however need the title of the content to link out to the job post on indeed.com. So I created a view of this indeed jobs content type where I rewrite the results of the title field using tokens for the indeed job URL, title and onmousedown value. This is what they require and would have worked fine if views didn't strip out the onmousedown value.

So I thought the next thing to try is a custom template for the title field. The problem I have is that I don't know php so I don't know how to use the href with my tokens in a views template file.

I want the output to include tokens I've set so that I can include the onmousedown value from the feed. Can someone with better php skills than my non-existent php skills please assist?

So this is what I need to output via my View:
<a onmousedown="[field_onmousedown]" href=[field_job_url] target="_blank"  />[title]</a>

But views seems to be stripping this out: onmousedown="[field_onmousedown]"

or is my approach totally wrong here?

Thanks.

Comments

You would have better luck

Max_Headroom's picture

You would have better luck asking on the Drupal forum or even better the Drupal Stack exchange: http://drupal.stackexchange.com/
Looks like SA developers are busy...

Quentin

Hi, Thanks. Yes I've asked on

nravens's picture

Hi,

Thanks. Yes I've asked on the Drupal forum but instead decided to get a freelancer to assist.

It's all sorted already.

South Africa

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: