Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Pop new window

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-28-2014, 12:22 AM
 
goodshop2u goodshop2u is offline
 

Member
  
Join Date: Jun 2011
Posts: 20
 

Default Pop new window

In XC 5.

Content > Footer Menu. I created one http link to my blog. Wen click it will open the same page.

When click open new window, how to do it ?
__________________
X-Cart v5 Business
Reply With Quote
  #2  
Old 05-07-2014, 03:47 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Pop new window

Hi!

If you want to make all footer links open in a new tab, you can apply the following simple change:

1) Enabled Custom Skin module
2) Create the skins/custom_skin/default/en/footer_menu.tpl file with the following content:

Code:
<ul id="secondary-menu" class="clearfix"> {foreach:getItems(),i,item} <li {displayItemClass(i):h}><a href="{item.url}" target="_blank" {if:item.active}class="active"{end:}>{item.label}</a></li> {end:} </ul>

3) Reload the page and check the results.

If you need to make only particular link open in a new window, please let me know. It will require a bit more complicated mod, but I will explain you what to do.

Tony,
Reply With Quote
  #3  
Old 05-27-2014, 11:59 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: Pop new window

Hi Tony,

I need to make only a particular link open in a new window - I have one in both my top main menu and one in my footer menu. Can you explain what to do? I have enabled the custom skin module.

Thank you!
Belinda
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote
  #4  
Old 05-28-2014, 04:26 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Pop new window

Hi Belinda!

Could you please let me know what is your condition for opening the certain footer item in a new window? Once I understand what items must be opened in window, I will be able to suggest about the mod.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #5  
Old 05-28-2014, 06:17 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: Pop new window

Hello Tony,

I would like to open the "news" link on my top menu (link in the 7th position) in a new window. I would also like to open "blog" in the 3rd position on my footer menu in a new window.

http://www.blueribbondesigns.com/xcart/var/theme/images/Image for Tony.jpg

Any help would be greatly appreciated!

Belinda

Quote:
Originally Posted by tony_sologubov
Hi Belinda!

Could you please let me know what is your condition for opening the certain footer item in a new window? Once I understand what items must be opened in window, I will be able to suggest about the mod.

Tony.
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote
  #6  
Old 05-28-2014, 10:57 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Pop new window

Thank you Belinda for explanation!
I will give you the code sample next week. Sorry, I cannot explain earlier due to amount of other work.

Tony.

Quote:
Originally Posted by BRDgirl
Hello Tony,

I would like to open the "news" link on my top menu (link in the 7th position) in a new window. I would also like to open "blog" in the 3rd position on my footer menu in a new window.

http://www.blueribbondesigns.com/xcart/var/theme/images/Image for Tony.jpg

Any help would be greatly appreciated!

Belinda
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
BRDgirl (05-28-2014)
  #7  
Old 05-28-2014, 11:05 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: Pop new window

No problem Tony - thanks so much - I will look forward to hearing from you when you have a little more time.

Belinda

Quote:
Originally Posted by tony_sologubov
Thank you Belinda for explanation!
I will give you the code sample next week. Sorry, I cannot explain earlier due to amount of other work.

Tony.
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote
  #8  
Old 06-04-2014, 01:32 PM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: Pop new window

Tony - have you had a chance to put together code samples for my menu links opening in a new window? Please don't forget about me...I REALLY appreciate your help! Thank you.

Belinda

Quote:
Originally Posted by tony_sologubov
Thank you Belinda for explanation!
I will give you the code sample next week. Sorry, I cannot explain earlier due to amount of other work.

Tony.
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote

The following user thanks BRDgirl for this useful post:
totaltec (06-05-2014)
  #9  
Old 06-05-2014, 11:41 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Pop new window

Quote:
Originally Posted by BRDgirl
Tony - have you had a chance to put together code samples for my menu links opening in a new window? Please don't forget about me...I REALLY appreciate your help! Thank you.

Belinda
And this is a perfect example of how to treat others on a free help forum like this. Thanks for playing nice. Hopefully Tony has an answer for you soon, though he is preparing to leave and come to Chicago for IRCE next week.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
BRDgirl (06-05-2014)
  #10  
Old 06-25-2014, 01:46 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Pop new window

Hi Belinda!

Sorry for being silent on this task for a while. I did not forget about this task and I will come to it in two weeks. I will keep you posted.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
BRDgirl (06-26-2014)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:45 AM.

   

 
X-Cart forums © 2001-2020