• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Album -repair call code in multiple pages at once
PostPosted: Sun Dec 03, 2017 5:37 pm 
Offline
New Member
New Member

Joined: Tue Jan 17, 2012 9:04 pm
Posts: 9
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Album -repair call code in multiple pages at once
PostPosted: Sun Dec 03, 2017 7:07 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 465
Location: Victoria, BC
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.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Album -repair call code in multiple pages at once
PostPosted: Tue Dec 05, 2017 5:08 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Sat Apr 18, 2009 10:09 pm
Posts: 1423
Location: Maidenhead, UK
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

_________________
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: fbarraza28


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting