1
jakeabiva
Adding "target=self" to links
  • 2006/3/30 1:16

  • jakeabiva

  • Just popping in

  • Posts: 20

  • Since: 2005/6/25


Hi,

Can anyone help me how to put "TARGET=SELF" on links generated by xoops.

In NEWS modules, when I add a link

sample:
This is my site

I want to add target=self so it wont open in new window.

Thanks for taking time to read this.

2
rabideau
Re: Adding "target=self" to links
  • 2006/3/30 1:26

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


You'll need to modify each of your links or the templates that generate the links so they reflect the following type or style html command:

<a href="http://yoursite.co/" target="_self">http://yoursite.com/</a>
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

3
jakeabiva
Re: Adding "target=self" to links
  • 2006/3/30 3:24

  • jakeabiva

  • Just popping in

  • Posts: 20

  • Since: 2005/6/25


Quote:

rabideau wrote:
You'll need to modify each of your links or the templates that generate the links so they reflect the following type or style html command:

<a href="http://yoursite.co/" target="_self">http://yoursite.com/</a>


I can do it manually but i have to use html. but using auto format i get this link format:

[url=http://www.sample.com]sample page[/url]


which doesn't have any "target=self" properties.

how would i edit the templates to insert "target=self"?

thanks again for the help.

4
tripmon
Re: Adding "target=self" to links
  • 2006/3/30 6:59

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


try the XOOPS FAQ section and do a search for templates...

Basically, you need to clone the default templates under Admin/Templates, then you can edit the cloned set.

The specific template you will need to edit would be the news page that you are talking about... if it's the page that displays a single article, you would need to edit the news_article.html template (or maybe news_item.html) in the cloned template set (Not the page with the same name in the news module directory)

Once you read up on it a bit you will see that the template features make it easy to customize your site without messing anything up.

By the way, you shouldn't need to add self, just remove _blank.. self is default if nothing is specified (but you can add it if you want)

Login

Who's Online

215 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits