Just grab "content" from DB and Put Into <div>

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
marlowmusic
New Member
New Member
Posts: 6
Joined: Mon Jul 28, 2008 10:34 pm

Just grab "content" from DB and Put Into <div>

Post by marlowmusic »

I just installed CMS Made Simple 1.3.1. I've designed my own site and it's built already. I'm not using any of the templates. I have a div that I just want to populate with the content inputted from the CMS Made Simple admin.

When I view the DB, in the "cms_content_props table," there is a field called "content" that stores the HTML. Is it possible to just use this "content" from associated with a page and populate the ?

I'm sure there is a way to mix some of the script from the index.php file that comes with CMS Made Simple and put it into my site. Meaning I'd use all of the connecting to the db scripts and creation of variables from that index.php. Then also implement the script that accesses the "content" for each page.

Can someone please help me locate which parts of the scripts to incorporate into my site?

I sure hope this was somewhat clear!

I'll certainly clarify if someone is kind enough to respond.

Thanks!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Just grab "content" from DB and Put Into <div>

Post by jmcgin51 »

If I understand you correctly, you have a site that was created without CMSMS.  You now have installed CMSMS and want to use it as the backend content manager for your existing site, pulling content as needed from the CMSMS database.  Is this close to right?  If this is what you're trying to do, I have NO idea if it can be done.

But why not just import your existing site into CMSMS?  It's very easy using the templating and stylesheet system.  Then you can really take full advantage of CMSMS.
marlowmusic
New Member
New Member
Posts: 6
Joined: Mon Jul 28, 2008 10:34 pm

Re: Just grab "content" from DB and Put Into <div>

Post by marlowmusic »

Wait a tic.

I can import the site into CMSMS and then use it as the template?

Go on! This just got very exciting.
Pierre M.

Re: Just grab "content" from DB and Put Into <div>

Post by Pierre M. »

Post Reply

Return to “CMSMS Core”