#8 Link Target Options

1.x.x
open-accepted
Greg Meiste
RFE (8)
5
2009-03-25
2009-03-23
Englesos
No

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

Discussion

  • Greg Meiste
    Greg Meiste
    2009-03-25

    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.

     
  • Greg Meiste
    Greg Meiste
    2009-03-25

    • status: open --> pending-accepted
     
  • 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.

     
  • Englesos
    Englesos
    2009-03-25

    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

     
  • Greg Meiste
    Greg Meiste
    2009-03-25

    Moved to the feature request category.

     
  • Greg Meiste
    Greg Meiste
    2009-03-25

    • status: pending-accepted --> open-accepted
     
  • Greg Meiste
    Greg Meiste
    2009-03-25

    • labels: 868051 --> RFE