Page 1 of 1

Album -repair call code in multiple pages at once

Posted: Sun Dec 03, 2017 5:37 pm
by solo5
I have webpage with more than 700 Albums in CMSMS 1.9.4.3
(A lot, I know)

When upgrading CMSMS page to 1.10.3 and Album module to 1.10.3.
I discovered, that code to show Album in page

{cms_module module='album' albums='33'}

not swowing Albums any more - only blank space in page instead of showing thumbails

In this forum furm I discovered that you must replace 'album' with 'Album', because calls in 1.10 are case sensisitve.

viewtopic.php?f=8&t=58332


Fine, that solutinon works.

BUT I have to manualy change call code in over 700 pages.

Can be this made at once, to replace in all pages call code 'album' with 'Album'

Thank you very much for your help.

Re: Album -repair call code in multiple pages at once

Posted: Sun Dec 03, 2017 7:07 pm
by DIGI3
There's no find and replace in CMSMS, but you should be able to do it in the database easily enough. There's lots of tutorials online for phpmyadmin and command line options. Have a reliable backup before you start, of course.

I know it's a bit late now, but a better option would probably have been to have the module call in the template, and just a method for choosing the album number in the content editor. That way, you'd only have to change it once in the template and not 700 times in content pages.

Re: Album -repair call code in multiple pages at once

Posted: Tue Dec 05, 2017 5:08 pm
by paulbaker
Yeah I would do this in phpmyadmin, exporting the database (which will mean you're backing up at the same time) and opening in my favourite text editor and doing a search and replace. Then importing again. There is probably a quicker/smarter/more programmatic way.

Your CMSMS installation is hidously out of date, point your browser here for how to update it:
https://docs.cmsmadesimple.org/upgrading/to-cmsms-2.x