Updating CMS Builder Code

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 25, 2008   (RSS)

Re: [Perchpole] Updating CMS Builder Code

By Dave - June 25, 2008

Hi Perch,

You don't need to update the old code unless needed. We don't. :) That's why we leave support for the old code in there still. We'll remove support for it eventually, but probably not for a long long time.

That said, you can get it working again pretty quick too. Just replace $options['tableName'] with the name of your table like this: loadSchema('news');

And for the record name, usually you only have a foreach loop if there are multiple records. And you need it in that case because you wouldn't know which record to display otherwise. But for single record pages you should still be able to display the placeholder wherever you like. You might just need to switch the name back.

If you want to attach a file you're working with I can take a look and let you know exactly what to change. Once I help you with one it will probably make sense for the others as well.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com