Add link to Full Site/Standard Version in template code?

pablofrijole
13 years, 8 months ago
Help! I installed the Mobile Joomla component and was able to configure it enough to get it displaying the mobile template that I have in my Joomla system.

See link here: www.nikkeicu.org/

When I bring it up on my iPhone, though, I have a link that's hard-coded into the template to go to the Full Site/Standard Version of the site, but I'm not sure how to configure the component to get it to work.

Any help would be greatly appreciated!!!

PS I have to disable the plugin for now, but here's a link to the mobile pages: www.nikkeicu.org/index.php?option=com_content&view=article&id=125&Itemid=119
pablofrijole
13 years, 8 months ago
Thanks for your reply! Actually, I moved the mobile site to a staging server to test. Here are the new link.

mobile home: secure1206.hostgator.com/~pfrijole/paulbean.com/index.php?option=com_content&view=article&id=125&Itemid=114

default home page: secure1206.hostgator.com/~pfrijole/paulbean.com/index.php

I have been able to create the mobile redirection, but I'm still stuck. A friend helped me put a bit of code in the index.php file with a link to a template:

<a href="/<?php echo JURI::root() ?>index.php?template=nikkeicreditunion" >Go to Full Site</a>

This only takes the user to a test page that I'm not even sure where it came from. Please help! The redirection back to the desktop site/standard version is still not working. If I unpublish the SelectMarkup module, that doesn't change anything. Can you please help???

Thanks again,
Paul
dryabov
13 years, 8 months ago
pablofrijole wrote:
<a href="/<?php echo JURI::root() ?>index.php?template=nikkeicreditunion" >Go to Full Site</a>

Incorrect solution. The only correct way is to use SelectMarkup module.
pablofrijole
13 years, 8 months ago
Ok. I have placed a footer position in my mobile template and I am testing the SelectMarkup module now. If I add the Auto Detect and the Standard Mode link, the redirection back to the standard site works, but now the initial redirection is not working.
pablofrijole
13 years, 8 months ago
Thank you for your help so far! You have been very helpful. I got the redirection from the mobile back to the desktop/standard version working well. The issues that I reported in my last post I did figure out as well.

When I type in 'nikkeicu.org' in my iPhone, it goes to the standard version. When I type in 'www.nikkeicu.org' it gets redirected to my mobile template, which is the desired behavior. How do I get the non-www and the www URLs to redirect to the mobile template? Am I setting it up incorrectly on the backend?

Here is the link to the live mobile template: www.nikkeicu.org/index.php?option=com_content&view=article&id=125&Itemid=119
pablofrijole
13 years, 8 months ago
Hello again,

So sorry to keep bothering you, but do you offer paid support? I am really quite desperate to get this solution to work!

Paul
dryabov
13 years, 8 months ago
pablofrijole, why use cannot use SelectMarkup module for this purpose?
dryabov
13 years, 8 months ago
pablofrijole wrote:
When I type in 'nikkeicu.org' in my iPhone, it goes to the standard version. When I type in 'www.nikkeicu.org' it gets redirected to my mobile template, which is the desired behavior.

Seems strange to me, iphone should go to mobile version in both cases. Try to clear cache&cookies and redo test.
boonchunt
13 years, 8 months ago
Hi,

You mobile site looks great, do you think you can share the index.php code with use? Thank you.
1

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.