CMS MADE SIMPLE FORGE

AdvancedContent

 

[#8071] version for 1.11?

avatar
Created By: Kenneth Griffith (kendo451)
Date Submitted: Sun Jun 24 12:38:17 -0400 2012

Assigned To: Georg Busch (nan)
Version: AdvancedContent 0.9.3
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Closed
Summary:
version for 1.11?
Detailed Description:
Hello NaN,

I find that even with the bug fix, AC 0.9.3 throws a 500 error for CMSMS 1.11
beta.

Do you have a 1.11 compatible version in subversion or git?


History

Comments
avatar
Date: 2012-06-27 16:51
Posted By: Georg Busch (nan)

Just check out the latest SVN revision 501.
AC 0.9.4 should work with CMSms 1.8 up to CMSms 1.11.
So upgrade should be easy.

But notice: 
- I changed lot of code. This is still untested, so use with caution.
- I changed the name of the contenttype class. So all pages will have an error
message when editing the page, that the contenttype you are using is deprecated.
But is should work anyway. You just need to change the contenttype from
"AdvancedContent (deprecated)" to "AdvancedContent".

Unfortunately i had to remove the bulk action in the module admin panel to
change the contenttype of multiple pages at once due to the forge rules. There
won't be any way to do this in a clean way from the module. Maybe there will be
a core function to change the contenttype of multiple pages. Just ask the devs.

Anyway... here is a UDT that will change all your pages to the new contenttype:

<?php

$old_type = 'content2';
$new_type = 'advanced_content';
$db       = &cmsms()->GetDb();
$query    = "UPDATE ".cms_db_prefix()."content SET type = ? WHERE type = ?";
$dbresult = $db->Execute($query, array($new_type, $old_type));

?>

After you changed the type you can disable the old contenttype in the module
admin panel.
      
avatar
Date: 2012-06-29 09:04
Posted By: Nik (NikNak)

Hi Georg

Silly question - but where can I find the svn version to download? 

I have found this, but cant see any way of downloading from it.
http://viewsvn.cmsmadesimple.org/listing.php?repname=content2&rev=HEAD

Trying to beta test 1.11 but Im getting stuck with the svn...  sorry to bother
you like this.

Regards
Nik
      
avatar
Date: 2012-06-29 09:15
Posted By: Nik (NikNak)

Typical - spent 2 hours trying to work it out... then as soon as I ask someone,
I find the answer!

Sorry to have bothered you.
      
avatar
Date: 2012-08-27 20:43
Posted By: Matt Henchen (mhenchen)

I have 9 new sites for a school district that I just upgraded to 1.11.  I need
to change all of their pages from the old Content2 to the new AdvancedContent. 
I see you posted a UDT to do that, but could you please let me know how to go
about doing that?  Sorry.  I'm a bit of a newb when it comes to PHP and UDT's. 
Thanks in advance.  And thank you for such an invaluable module!!!
      
avatar
Date: 2013-02-04 14:54
Posted By: Georg Busch (nan)

Version 0.9.4.3 is out.
      
Updates

Updated: 2013-02-04 14:54
state: Open => Closed

Updated: 2012-06-27 16:51
resolution_id: => 7