Welcome, Guest
Username Password: Remember me

Add link to Full Site/Standard Version in template code?
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

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

Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3657

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
Last Edit: 13 years, 8 months ago by pablofrijole. Reason: I need to disable the plugin temporarily so anyone checking it out in a mobile device will not see it. I will re-enable it tomorrow.

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3690

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
pablofrijole wrote:
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

Hmm. We will add autohide of SelectMarkup module in next MJ versions. Now just unpublish this module.

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3713

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

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3715

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.
The following user(s) said Thank You: pablofrijole

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3717

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.

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3725

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

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3730

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

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3746

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
pablofrijole, why use cannot use SelectMarkup module for this purpose?

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3747

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Re: Add link to Full Site/Standard Version in template code? 13 years, 8 months ago #3762

  • boonchunt
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi,

You mobile site looks great, do you think you can share the index.php code with use? Thank you.
  • Page:
  • 1
  • 2
Time to create page: 0.11 seconds

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.