Using Article Manager with CMSB

12 posts by 4 authors in: Forums > CMS Builder
Last Post: December 27, 2008   (RSS)

By cvanb - December 9, 2008

Is there a simple way to use CMSB to pull recent data from multiple Article Manager DBs to compose a main page that's more than just a composite listing of articles?

Re: [cvanb] Using Article Manager with CMSB

By mr-eco - December 11, 2008

Yes, I am wondering the same thing. Is it possible to combine elements between CMS and Article Manager. I have not seen any documentation about this. Many thanks!

Re: [cvanb] Using Article Manager with CMSB

By ross - December 11, 2008

Hi

You can defintiely have Article Manager and CMS Builder working on the same page. There are a bunch of different ways to get that going though so I don't quite know which one would work best.

Do you already have both programs setup? How about your template? Do you have the homepage setup and ready to start putting data into?

Let me know and we'll go from there :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Using Article Manager with CMSB

By cvanb - December 15, 2008 - edited: December 15, 2008

We do already have both setup.
We've setup a single page template already for manual entry of the data from Article Manager. Does that complicate matters?

Also, we want to make another page that pulls lists from 2 different CMS Multi-Record sections. How can we accomplish this?

Thanks,
Chris

Re: [Dave] Using Article Manager with CMSB

By cvanb - December 17, 2008

Actually, we were able to figure that part out. I'm still unsure, however, of how to pull Article Manager info into a CMSB page.

Re: [cvanb] Using Article Manager with CMSB

By ross - December 17, 2008

Hi

Glad to hear you got that first part going!

With including Article Manager content and having it display on your cmsb pages, what I would do is setup your Article Manager templates so they only display a simple list. No real template.

That way, you can just use an include on your cmsb pages to pull in the specific published content.

Let me know if that makes sense :)
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [cvanb] Using Article Manager with CMSB

By Dave - December 17, 2008

Hi Chris,

Hmm, that might take some experimenting. I think the simplest way would be to have Article Manager publish multiple "lists" with the content you want and include those in your PHP page with:
<?php include "/path/to/include/file.html"; ?>

Would that work for you?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Using Article Manager with CMSB

By cvanb - December 23, 2008 - edited: December 23, 2008


<?php include "/path/to/include/file.html"; ?>



I tried this tag (using[/#000000] <?php include "/cgi-bin/articles/templates/articlePages/tenMostRecentAll.html"; ?>[/#ff0000]) and got the following error:

Warning: include(): open_basedir restriction in effect. File(/cgi-bin/articles/templates/articlePages/tenMostRecentAll.html) is not within the allowed path(s): (/var/www/vhosts/eco-wisdom.com/httpdocs:/tmp) in /var/www/vhosts/eco-wisdom.com/httpdocs/index2.php on line 153 Warning: include(/cgi-bin/articles/templates/articlePages/tenMostRecentAll.html): failed to open stream: Operation not permitted in /var/www/vhosts/eco-wisdom.com/httpdocs/index2.php on line 153 Warning: include(): Failed opening '/cgi-bin/articles/templates/articlePages/tenMostRecentAll.html' for inclusion (include_path='/var/www/vhosts/eco-wisdom.com/httpdocs/cmsAdmin:.:') in /var/www/vhosts/eco-wisdom.com/httpdocs/index2.php on line 153[/#008040]

The include tag in Article Manager is this: <!--#include virtual="$published.tenMostRecentAll.webpath$" -->[/#ff0000]

I checked through ftp and the path I used in the php include is correct. Any thoughts?

Re: [cvanb] Using Article Manager with CMSB

By Dave - December 23, 2008

Hi cvanb,

Instead of this:
<!--#include virtual="$published.tenMostRecentAll.webpath$" -->

Try this:
<!--#include virtual="$published.tenMostRecentAll.filepath$" -->

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com