Has anyone tackled using Drupal to manage content, making it available to a mostly static php site via include()?
I think this can be done by either stripping the theme off or stripping down a given view(s) theme, and having a view to present the data to the other site.
Ex. I have a weekly published meeting agenda. Rather than porting the entire site just to use Drupal's login and file upload/management features on this one site, I would like to allow content contributors to upload files and have my non-drupal site simply include("http://my-drupal-site.com/agenda-files"); which would call the drupal site's view "agenda-files" which has been stripped down to just the list of files.
I can only think I need to do a multi-site config both running on the same data but where the default theme for the public side completely "empty." Is there a way/benefit to do it with theming a view in one site?
Comments
I am rather new to drupal
I am rather new to drupal but my recomendation to you would be this:
to strip a theme create a blank page.tpl.php file that prints one variable $content;
or you can customize how your page.tpl.php output looks based on some variable that you pass to it. that way you can do what you want i think.
Sometimes something interesting appears on http://litwol.com
page.tpl.php has only $content
Great idea -- thanks for the direction! Preliminary testing shows that this is precisely what I was looking for.
fyi: my php is calling the drupal site for content like this:
With a little preg_replace on my php side, I can make images and things appear as well.
Another option I'm (more strongly) considering is a cron'd wget to my stripped drupal site to allow the "destination" site to just reference relatively.
--
..happiness is point and click..
--
http://drupaltees.com
80s themed Drupal T-Shirts
i'm glad that you achieved
i'm glad that you achieved your result. however i do not think it is the "right" way to do what you are trying to do.
my recommendation to you is that once you get it done and you are not under deadline anymore, take some time to learn how to program modules and create a module that will output the desired content based on some request to drupal site.
Sometimes something interesting appears on http://litwol.com
I realize that this post is
I realize that this post is pretty old but I was wondering if there were any modules to do this or if there were any new ways to handle this in Drupal 6?