X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Pop new window (https://forum.x-cart.com/showthread.php?t=69079)

goodshop2u 04-28-2014 12:22 AM

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 ?

tony_sologubov 05-07-2014 03:47 AM

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,

BRDgirl 05-27-2014 11:59 AM

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

tony_sologubov 05-28-2014 04:26 AM

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.

BRDgirl 05-28-2014 06:17 AM

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.


tony_sologubov 05-28-2014 10:57 AM

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


BRDgirl 05-28-2014 11:05 AM

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.


BRDgirl 06-04-2014 01:32 PM

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.


totaltec 06-05-2014 11:41 AM

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.

tony_sologubov 06-25-2014 01:46 PM

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.


All times are GMT -8. The time now is 11:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.