Search found 9 matches
- Wed Jun 05, 2013 12:15 pm
- Forum: Developers Discussion
- Topic: Pretty urls with other page behind it
- Replies: 0
- Views: 1870
Pretty urls with other page behind it
Hello everyone, In a module I created, I have a pretty url like this: /mymodule/page/<PageID> PageID is a variable that points to the content id of the page I want to show. Furthermore, I have created multiple pages. Say I have a page with page alias 'test' and content id 59. Then the code in my mod...
- Wed Apr 17, 2013 11:39 am
- Forum: Developers Discussion
- Topic: Render page under different url
- Replies: 2
- Views: 2336
Re: Render page under different url
Jo Morg, Thanks for your answer. But I don't see how to do the item-specific logic first then. Maybe you can give a short example? Maybe my question should be rephrased: how to render a ContentBase instance? The closest I can come to is $contentobj->Show(), but the returned string contains unprocess...
- Wed Apr 17, 2013 7:42 am
- Forum: Developers Discussion
- Topic: Render page under different url
- Replies: 2
- Views: 2336
Render page under different url
Hello everyone, I have a situation where I have categories and items within a category. Every item has a CMSMS page coupled to it, where different items can link to the same CMSMS page. I have created a module and registred some routes, like so: "http://cmsms.localhost/category/item/1 "htt...
- Sat Mar 03, 2012 12:05 pm
- Forum: Developers Discussion
- Topic: [Solved] GetModuleInstance deprecated - what to use instead?
- Replies: 2
- Views: 1971
Re: GetModuleInstance deprecated - what to use instead?
Thank you Uniqu3!
Actually, I don't see it in the 1.10 announcement (only a note on deprecation of the $gCms→modules array), but I'll use cms_utils::get_module() as you've suggested!
Actually, I don't see it in the 1.10 announcement (only a note on deprecation of the $gCms→modules array), but I'll use cms_utils::get_module() as you've suggested!
- Sat Mar 03, 2012 11:47 am
- Forum: Developers Discussion
- Topic: [Solved] GetModuleInstance deprecated - what to use instead?
- Replies: 2
- Views: 1971
[Solved] GetModuleInstance deprecated - what to use instead?
Hello everyone,
It seems that the function GetModuleInstance($module_name, $version) in class CmsObject is deprecated. It says so at http://www.cmsmadesimple.org/apidoc/
It doesn't say what to use instead, so... what should I use instead?
With kind regards,
Jurrie
It seems that the function GetModuleInstance($module_name, $version) in class CmsObject is deprecated. It says so at http://www.cmsmadesimple.org/apidoc/
It doesn't say what to use instead, so... what should I use instead?
With kind regards,
Jurrie
- Mon Feb 13, 2012 7:48 pm
- Forum: Developers Discussion
- Topic: Including HTML for every admin page?
- Replies: 5
- Views: 2732
Re: Including HTML for every admin page?
At one point, I was looking to do the same thing, but looking at the code, it doesn't seem possible from a module point-of-view.. The only way that I can see to do this is to modify the admin theme. Hi Wishbone, Thanks for your reply. Too bad it's not quite possible, but I already kinda thought it ...
- Mon Feb 13, 2012 12:31 pm
- Forum: Developers Discussion
- Topic: Including HTML for every admin page?
- Replies: 5
- Views: 2732
Including HTML for every admin page?
Hello everyone, I want to inlude some JavaScript in every admin page, and I'm wondering if it is possible to create a module that does that? So not just for admin pages of my own module, but for every page in the admin section. I found http://forum.cmsmadesimple.org/viewtopic.php?f=6&t=51890&...
- Sun Feb 12, 2012 9:49 am
- Forum: [locked] Installation, Setup and Upgrade
- Topic: Installing or Upgrading to 1.10.x - Problems and Solutions
- Replies: 60
- Views: 45216
Re: Installing or Upgrading to 1.10.x - Problems and Solutio
Now I don't get two things: - why does cmsms choose pear_ADOConnection per default? I would suspect mysql_driver_ADOConnection... - how do I use transactions with the PEAR ADOConnection? I found a solution myself. In CMSMS 1.9.3, lib/adodb.functions.php:76 reads: $dbinstance =& ADONewConnection...
- Fri Feb 10, 2012 7:17 pm
- Forum: [locked] Installation, Setup and Upgrade
- Topic: Installing or Upgrading to 1.10.x - Problems and Solutions
- Replies: 60
- Views: 45216
Re: Installing or Upgrading to 1.10.x - Problems and Solutio
Hello everyone, I installed 1.10.3 this evening, and then installed some modules I've created. They install ok, but don't work... The stacktrace shows Call to undefined method pear_ADOConnection::StartTrans() I'm using MySQL 5.1.58-1ubuntu1, Apache/2.2.20 (Ubuntu) and PHP 5.3.6-13ubuntu3.5 with Suho...