The mod works like a charm - great product.
Is there/can there be an option to stop the automatic opening of all links in a new window? Or else to optionally disable links?
I don't want to bounce people out of my site unless I have to, or alternatively I'd like the option to send them elsewhere within my site - such as to a page or microsite for a particular topic/client/product.
Many thanks :-)
Englesos
You can modify the ad view template (ad/view.tpl) and take out target="_blank". You could also take out the link completely if you desire.
The phpWebSite template engine looks for the template file in the following order:
1) It will first look in the theme (e.g. theme/mytheme/templates/ads/ad/view.tpl)
2) then it will look in the template directory (e.g. templates/ads/ad/view.tpl).
3) Finally it will look in the mod directory itself (e.g. mod/ads/templates/ad/view.tpl).
It is recommended to use option #1 or #2. That way, when you upgrade the module, you don't accidentally overwrite your template modification.
Hope that helps.
Yes, that will work.. but I would still 2nd the feature request to be able to control the target of the link on an ad by ad basis. I might want some to stay in the window and others to target new windows.
Hi All - thanks for getting back to me.
Blindman1344's solution should cover my needs short term but - unless I can use multiple templates - I think this is an issue for the feature list as Verdonv suggests.
Is such an update in the pipeline?
All the best
Englesos
Moved to the feature request category.