how can I set a particular group to be _self? I have other ads set to _blank, but I want to use an "ad" as a block to reference an internal page. Seems it would be great to allow granular rather than global (individual ad vs all ads) control over this URL linking... Thanks.

For example, is there a conditional that can be written into the ad_views.inc that would tell it to _self a particular ad group?

Comments

jeremy’s picture

Category: support » feature

At this time, this is a global setting. Code does not exist to set this at a per-ad basis. It would be simple to pass this in as a parameter to ad(), but that still wouldn't be per-ad granularity, instead being per-group/block granularity. Would that be enough?

lowVocal’s picture

that would be enough. per group would be great. thanks for the very fast reply.

lowVocal’s picture

I would like to clarify my earlier post.

In this post have changed what was "ad" to [group] where appropriate for clarity. I hope this helps other understand my question.

how can I set a particular group to be _self? I have other [groups] set to _blank, but I want to use an "ad" as a block to reference an internal page. Seems it would be great to allow granular rather than global (individual [groups] vs all [groups]) control over this URL linking... Thanks.

For example, is there a conditional that can be written into the ad_views.inc that would tell it to _self a particular ad group? and _blank another ad group?

Thanks

lowVocal’s picture

Title: Internal AND External url references » a patch to set particular groups to _self and others to _blank

can you suggest, offer or write a patch to "pass a variable to ad()", so I set a particular group to be _self? and have other groups set to _blank

Thanks -- I do not have the insight or knowledge to patch your code.

jeremy’s picture

I plan to patch this when I get some time, but I maintain the ad module in my spare time, something I don't have a lot of at the moment.

jeremy’s picture

Assigned: lowVocal » jeremy

Assigning to myself, making it more likely to actually happen before the next release.

jeremy’s picture

Component: ad.module » ad module
Status: Active » Postponed

Moving to the 6.x-2.x branch where active development is happening. This isn't something I need myself, however, so moving into a postponed state until someone comes along with funding or a patch.

john franklin’s picture

Status: Postponed » Closed (won't fix)

Closing out all bugs for 5.x and older versions of Drupal. If this is still an issue, please reopen and update with 6.x details.