![]() |
DIFFERENT page per skin?
I am using a dedicated mobile skin (xMobile) for smartphones.
For the most part, simply editing each skin's css is sufficient to strip css formatting or solve layout issues. This has been just fine, until today. I am testing a new customer support/help desk SaaS and I think I found one I really like -- more on that later -- and this helpdesk software has a brilliant embedded form that also has integrated K-base and suggestive search results, based on what the customer is typing in the message field. Freaking brilliant. But. The embedded widget is simply not compatible with smart phones at this time. SO -- the only solution is to not use it for now for mobile only. I KNOW that I can trap for a skin on the page: Code:
{if $alt_skin_info.name eq "mobileskin-name"} HOWEVER -- I need to load an entirely DIFFERENT php page for this situation. for mobile skin: /help.php?section=contactus for everything else: static embedded page Any thoughts how to trap for this? Thanks, J |
Re: DIFFERENT page per skin?
In case I am searching for this in the future...
Should I be editing /skin/common_files/customer/home_main.tpl ? I think so... but I need to figure out the logic. I REALLY WANT to include a 301 redirect in htaccess to force all stray links for /help.php?section=contactus to 301 to /contact_us.html, EXCEPT if the customer is viewing the mobile skin (if using a smartphone), the page load needs to be /help.php?section=contactus But the htaccess 301 will trump anything we do in home_main.tpl Hmmm.... THE LOGIC needs to be: 1. IF mobile skin, the contact_us page must be default, /help.php?section=contactus 2. IF NOT mobile skin, the contact_us page is simply /contact_us.html Any suggestions now? Thanks! J |
All times are GMT -8. The time now is 11:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.