Hi, I'm a relative newbie to Drupal, but have succeeded in controlling the display of ads on a specified page as follows: I created an "ad image" in an "ad group" and allocated this to a block. Within this block's settings the "show block only on listed pages" and the url page "newslist" added. The correct ad displays in the header of this "newslist" page.

However, the article headline links listed on this page (created and filtered with Views module) are obviously of the form mydomain.com/node/xx, whereas my article list page is of the form mydomain.com/newslist1, where newslist1 is one of the taxonomy terms allocated to a story when created.

My query, therefore, is how do I control the ads displayed when the term related full article page is presented?

I had expected the article url to be of the form newslist/node/xx in which case I would be able to control the ad with newslist/*. I think I am missing a fundamental point here, as Drupal site article nodes seem always to be in the root.

I am wondering now whether I have to use the "Show if the following PHP code reurns TRUE" option in the Block settings to filter on the term newslist1.

If so, as I am not really a coder, what would the syntax be for this.
.. or am I barking up the wrong tree?
Surely there must be a relatively simple solution.

I have spent all day searching forums etc for a possible solution but to no avail. No-one appears to have had a similar difficulty. Please can anyone help?

CommentFileSizeAuthor
#2 AdTargetingByTermView.txt2.08 KBjo1ene

Comments

jo1ene’s picture

Title: Cannot control ad display when viewing term related article page nodes » Controling ad display by taxonomy term(s)

Can views arguments (or something) be used for this purpose? I don't know views quite THAT well. Banner module has (or used to) this type of targeting. Is there such a way to do this with ad module? I think this is what this user is looking for and it sure would help me out.

jo1ene’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new2.08 KB

I managed to use a views snippet posted in the handbook to create an ad block that displays taxonomy term targeted ads. Remaining issue: I would like to target based on 2 taxonomies. Possible?

See attached for an export of my view. This is for an ad group called SideBanner.

See the handbook page:
http://drupal.org/node/65375

jeremy’s picture

Component: ad.module » ad module
Status: Postponed (maintainer needs more info) » Fixed

Thanks, updating issue status.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.