c5Touch with 5.4
Permalink
I am trying to install the c5Touch iPhone/Mobile theme on a 5.4 version of Concrete5. I have noticed that the config/site.php file is not included in the structure of this version 5.4 - Does anyone else have the iPhone c5Touch Theme working with 5.4?
I have also noticed that
Events::fire('on_start', $this);
Is included in the concrete/libraries/view.php file as well.
I have attached the config/site_events.php file and my libraries/theme_switcher.php file for anyone to look over as well. Any help would be much appreciated.
I have spent hours trying to get this to work and cannot seem to figure out what I am doing wrong.
I have also noticed that
Events::fire('on_start', $this);
Is included in the concrete/libraries/view.php file as well.
I have attached the config/site_events.php file and my libraries/theme_switcher.php file for anyone to look over as well. Any help would be much appreciated.
I have spent hours trying to get this to work and cannot seem to figure out what I am doing wrong.
site.php is created upon install
I have tried installing 5.4 as two different sites with two separate databases and neither install automatic installs the site.php file. Is there a way to activate the c5Touch theme with 5.4 without having the config/site.php file?
I have installed 5.4 on a MediaTemple server twice with 2 different databases. Can anyone confirm that they have config/site.php in their version of 5.4?
I have installed 5.4 on a MediaTemple server twice with 2 different databases. Can anyone confirm that they have config/site.php in their version of 5.4?
Yes. It is required. If your site is functioning at all (e.g. not a blank white screen) you have a config/site.php. file. Are you looking in the root web folder? That's where the config/ directory that holds site.php lives. There's another config folder in the concrete/ directory which does not contain site.php
Hey, I got the theme to switch. Just for the record, I had to logout and log back in to my FTP (hosting with MediaTemple) to get the site.php file to show up after the install.
My next question is:
Is it possible to redirect to a page after switching the theme? I would like to display a news feed and less navigation and have a "/mobile" page to redirect to.
I have tried redirecting by adding javascript to the header.php file in the c5touch theme. When my iphone recognizes this, it redirects to the "/mobile" page but seems to get caught in a continuous loop and never really loads the page.
Is there a workaround for this? I would love to be able to redirect to a "Mobile" homepage for my site and various client sites.
Thanks,
Jordan
My next question is:
Is it possible to redirect to a page after switching the theme? I would like to display a news feed and less navigation and have a "/mobile" page to redirect to.
I have tried redirecting by adding javascript to the header.php file in the c5touch theme. When my iphone recognizes this, it redirects to the "/mobile" page but seems to get caught in a continuous loop and never really loads the page.
Is there a workaround for this? I would love to be able to redirect to a "Mobile" homepage for my site and various client sites.
Thanks,
Jordan