Jump to content

Acces to PW from parent dir


Frank Vèssia
 Share

Recommended Posts

I have an old website running with drupal. I want install PW in a subdir for a new blog section. In home page of main site it could be nice to show a block like "latest from the blog" and show some links to pages of PW. Is there a way to access to some functions of PW maybe calling some files in my home page or i have to do it manually?

Link to comment
Share on other sites

Let me know if that solution doesn't work... I haven't tried including ProcessWire from Drupal. Because many ProcessWire's class names are fairly generic, like "Page" and "User" and "Session", etc., there is a possibility for class name conflicts. This will be a non-issue once we standardize on PHP 5.3 which has built-in namespace support. But it is a possible issue right now when including ProcessWire from other apps.

Another approach is to setup a template in ProcessWire to act as a web service, outputting an RSS feed, HTML snippet or JSON feed, and have your other CMS (or just javascript) pull in the data that way. This is the approach I have used in the past, though admittedly to pull data from WordPress into ProcessWire.

Link to comment
Share on other sites

  • 2 weeks later...

What is the context of where that error occurred? Are you trying to load ProcessWire from Drupal? If so, it sounds to me like Drupal probably has it's own "User" class that is conflicting with ProcessWire's. You may be better off using ProcessWire as a web service in this case. That RSS feed module I posted yesterday would be a great way to pull the data into Drupal.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...