Thank you McDavid, but the client is will be adding new templates and content to the exisiting site. We don't trust them enough to use Smary logic.
What I want to do is make my own module that they can use which just keeps a list of template pairs, one for desktop and one for mobile.
Thanks,
Paul.
Search found 21 matches
- Mon Apr 09, 2012 8:30 pm
- Forum: Developers Discussion
- Topic: Dynamically Change a Page's Template Association
- Replies: 9
- Views: 4664
- Mon Apr 09, 2012 4:48 pm
- Forum: Developers Discussion
- Topic: Dynamically Change a Page's Template Association
- Replies: 9
- Views: 4664
Re: Dynamically Change a Page's Template Association
Thank you uniqu3. I actually already have a script I wrote that returns a global variable $Platform, which is either "Mobile", "Facebook" or "Desktop". What I need to figure out is how to change the template (template_id) of the page object before the rendering is done....
- Thu Apr 05, 2012 10:53 pm
- Forum: Developers Discussion
- Topic: Dynamically Change a Page's Template Association
- Replies: 9
- Views: 4664
Re: Dynamically Change a Page's Template Association
Thankyou for your reply.
But using media queries will not solve the problem. We need to change the template that "surrounds" the content.
But using media queries will not solve the problem. We need to change the template that "surrounds" the content.
- Thu Apr 05, 2012 9:48 pm
- Forum: Developers Discussion
- Topic: Dynamically Change a Page's Template Association
- Replies: 9
- Views: 4664
Re: Dynamically Change a Page's Template Association
What I really need is the variable name that holds the reference to the page's current template.
Then I will be able to change the value myself with some custom PHP code.
Thanks,
Paul.
Then I will be able to change the value myself with some custom PHP code.
Thanks,
Paul.
- Thu Apr 05, 2012 9:41 pm
- Forum: Developers Discussion
- Topic: Dynamically Change a Page's Template Association
- Replies: 9
- Views: 4664
Dynamically Change a Page's Template Association
I want to be able to change the template associated with a page, based on certain parameters. For example. I have a global PHP variable that hold either "Desktop" or "Mobile". I want to display a page of content using the template "HomeDesktop" (by default) and "Ho...
- Mon Feb 20, 2012 7:27 pm
- Forum: Modules/Add-Ons
- Topic: MultiDomains - how to get it to work
- Replies: 3
- Views: 1256
Re: MultiDomains - how to get it to work
Dr.CSS, thank you for your reply.
Do you mean this: $config['root_url'] = '';
I tried that and now the CMS works, thanks.
However, I am still not getting the correct content for each specific domain.
Thanks,
Paul.
Do you mean this: $config['root_url'] = '';
I tried that and now the CMS works, thanks.
However, I am still not getting the correct content for each specific domain.
Thanks,
Paul.
- Mon Feb 20, 2012 7:01 pm
- Forum: Modules/Add-Ons
- Topic: MultiDomains - how to get it to work
- Replies: 3
- Views: 1256
MultiDomains - how to get it to work
Hello, I am trying to get MultiDomains 2.0.1 to work. I have Apache/2.2.3 (CentOS), with PHP 5.2.17., CMS Made Simple 1.10.3 "Hyacinthe". I followed the instructions in the MultiDomains "Help" in setting up my .htaccess file, config.php file and my domains and their content. Addi...
- Tue Aug 02, 2011 10:19 pm
- Forum: CMSMS Core
- Topic: Printer Module producing empty HTML
- Replies: 8
- Views: 2293
Re: Printer Module producing empty HTML
I noticed (by accident) that if I turn off the gzip compression in the config.php file then it starts to work. When I turn on gzip compression then it stops. This seems to onlt affect the print module. So I did a little investigation with Charles (HTTP proxy) and the HTTP response for a non-working ...
- Tue Aug 02, 2011 4:21 pm
- Forum: CMSMS Core
- Topic: Printer Module producing empty HTML
- Replies: 8
- Views: 2293
Re: Printer Module producing empty HTML
Hello,
Have I done something wrong in how I asked this question? I tried to follow the instructions, posted my server information, wrote a detailed description, etc.
Thanks,
Paul.
Have I done something wrong in how I asked this question? I tried to follow the instructions, posted my server information, wrote a detailed description, etc.
Thanks,
Paul.
- Wed Jul 27, 2011 5:27 pm
- Forum: CMSMS Core
- Topic: Printer Module producing empty HTML
- Replies: 8
- Views: 2293
Printer Module producing empty HTML
Hi, I'm running CMS Made Simple 1.9.4.2. I'm using PHP 5.2.17, and MySQL 5.1.52. This is all working with Apache 2.2.3 running on Red Hat Linux We are having trouble with the Printer Module (Version 1.1.2). When we press the print icon all we get is a blank page. It appears that the {content} tag is...
- Fri Mar 11, 2011 5:40 pm
- Forum: [locked] Installation, Setup and Upgrade
- Topic: 1.9.2 Upgrade Breaks the Print Module
- Replies: 4
- Views: 1695
Re: 1.9.2 Upgrade Breaks the Print Module
Hello,
Can you explain what "Did you try pressing the default-template button ?" means.
Where is this button located?
Thanks,
Paul.
Can you explain what "Did you try pressing the default-template button ?" means.
Where is this button located?
Thanks,
Paul.
- Fri Mar 11, 2011 5:38 pm
- Forum: [locked] Installation, Setup and Upgrade
- Topic: 1.9.2 Upgrade Breaks the Print Module
- Replies: 4
- Views: 1695
Re: 1.9.2 Upgrade Breaks the Print Module
Hello,
I am still not able to get the print working... and it's been a year.
Any help will be appreciated.
Thanks,
Paul.
I am still not able to get the print working... and it's been a year.
Any help will be appreciated.
Thanks,
Paul.
- Tue Jan 18, 2011 9:30 pm
- Forum: [locked] Installation, Setup and Upgrade
- Topic: 1.9.2 Upgrade Breaks the Print Module
- Replies: 4
- Views: 1695
Re: 1.9.2 Upgrade Breaks the Print Module
I am not sure what the version was, something like 1.6.
Sorry I don't know what "Did you try pressing the default-template button ?" means.
I am not the person who normally deals with CMS Made Simple, I am the .NET person and this stuff is quite alien to me.
Thanks,
Paul.
Sorry I don't know what "Did you try pressing the default-template button ?" means.
I am not the person who normally deals with CMS Made Simple, I am the .NET person and this stuff is quite alien to me.
Thanks,
Paul.
- Tue Jan 18, 2011 8:27 pm
- Forum: [locked] Installation, Setup and Upgrade
- Topic: 1.9.2 Upgrade Breaks the Print Module
- Replies: 4
- Views: 1695
1.9.2 Upgrade Breaks the Print Module
I upgraded the version 1.9.2 and now the print module does not work. The print is 1.1.1. When I press the little printer icon I get a "404" error in IE (due to IE's "friendly" error messages misinterpreting the problem) and in Firefox an encoding error. Has anyone seen this probl...
- Wed May 05, 2010 9:34 pm
- Forum: Developers Discussion
- Topic: cms_module_CreateInputText function documentation needed
- Replies: 4
- Views: 1792
Re: cms_module_CreateInputText function documentation needed
I see...
I clicked on "cms_module_CreateInputText" under "Functions" first, which didn't work. This could be confusing to beginners at CMSMS like myself; perhaps it could be fixed?
Thanks,
Paul.
I clicked on "cms_module_CreateInputText" under "Functions" first, which didn't work. This could be confusing to beginners at CMSMS like myself; perhaps it could be fixed?
Thanks,
Paul.