Any plan for Drupal 7?

CommentFileSizeAuthor
#12 exhibitd7port.patch49.05 KBdominikb1888
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

I started trying a port to Drupal 7. Right now, there seems to be some sort of problem with Feeds in Views 7.x-3.x-dev.

I kept having a problem as soon as I specified the row style with the Exhibit JSON style type. I then tried it with the RSS plugin that comes with Views and found I had the same problem.

I will report back here if I can get something working a bit.

Arto’s picture

Title: Exhibit for Drupal 7 ? » Exhibit for Drupal 7?

Lin, sounds good. I've just given you CVS access to the project, so feel free to check in a D7 branch even if it's a work-in-progress.

Anonymous’s picture

Hi Arto,

Thanks, though my work has taken a slightly different course over the weekend... I'm looking at what I can do with Views pluggable backend.

However, I really like the Exhibit framework so if I can make any progress, I'll post it.

Cheers,
Lin

dominikb1888’s picture

Hi Lin,

is there any action in porting exhibit to d7 at the moment? I saw you removed the project from github. If you can explain the ideas behind the rework using feeds I'll see what I can do.

That'll even pay off for the 2.x versions of exhibit. Exhibit 3 seems to be very much different to the current version.

Best
Dominik

Anonymous’s picture

I never got very far with the port. I posted another issue in the queue about supporting Exhibit 3. I believe that is supposed to be fully released in January if it's still on the same schedule. Depending on where I am next year (I'm finishing up my Masters in the fall :) ), I might have the opportunity to work on an Exhibit 3 version.

dominikb1888’s picture

Ok, to be more precise. I'd really like to port the 6.x module. Since you were having problems, I was wondering where in the process and why you decided to rely on feeds rather than the current exhibit solution?

Anonymous’s picture

When I said Feeds there, I mean the feeds row style, not feeds the module. Exhibit relies on a Exhibit JSON feed, but IIRC Views module had a problem outputting feeds row styles at the time (this was Views alpha1 I think). I doubt that bug is still a problem.

dominikb1888’s picture

Oh ok. Now that becomes clear. I could not make sense of that... thx for the clarification. I'll give it a shot!

dominikb1888’s picture

Component: Miscellaneous » Code

I've fiddled a bit with porting the module to 7.x and have a first working version now. You can find it on github: https://github.com/dominikb1888/exhibit

I guess there are still some issues, but the exhibit display works and also the views style plugin seems to be working (it produces output as far as i can see). I directly ported the drupal 6 version, so refrained from using lin's "exhibit_feed" submodule, which I understood was a workaround anyways.

The biggest issue with exhibit itself was the misc/jquery.js, which I had to disable on exhibit nodes. I guess there will be a better solution for this. Most issues with the views style where due to type conversion (object - array) as far as I could see. Please let me know if there's anything to be improved. I am sure there will be :-)

I've also been trying to setup the exhibit3 beta with the module, but kept getting errors with both the scripted (similar to exhibit 2) and the new backstage versions. For the latter mainly the maven/jetty engine kept throwing a 500, possibly due to my dev machines setup. However that is to be figured out... I'll keep on trying.

Anonymous’s picture

If you post a patch, I can test it out and get a D7 branch started. I'll be sure to add the --author tag to the commit so you get the credit for it.

dominikb1888’s picture

Thanks for the offer! I'll post a patch as soon as that makes sense. Unfortunately a lot of things are still in flux.

I've completely come away from relying on exhibit_views in favor of views_datasource, which is already ported to d7 and has a json plugin as well. No need to duplicate efforts... especially since most quirks exhibit_views (e.g. taxonomy) handled well in the d6 version seem to be gone in the d7 field api. I'll post the necessary patches for both views_datasource and exhibit on github together with a drush make file.

dominikb1888’s picture

FileSize
49.05 KB

So, did all chores and created the necessary patch, which is attached to this post.

To run Exhibit now you need to use views_datasource-1.x-dev with a patch to be found here: http://drupal.org/node/1276216 (direct link to patch: http://drupal.org/files/issues/views_datasource-exhibit.patch)

eiriksm’s picture

Great!
subscribing. Also started on this port some time ago, but gave up due to lack of time. will test this when i get the chance.

dominikb1888’s picture

One word of warning: This is by no means a productive module. I hacked my way around the javascript errors by removing each core-js file from exhibit nodes individually. It is almost certain that we'll face problems with other modules (think panels). I was hesitant to solving the jQuery errors which occur due to an overlap of jQuery functions between Drupal core and exhibit. If there is a simple solution to this (maybe including exhibit-api.js as a jQuery module?) I am glad to take any recommendations on that!

dominikb1888’s picture

Here's the drush makefile and the shell script I use for testing. It pulls a feature with preconfigured exhibit. You only need to add a little dummy content via devel generate (genc and gent).

Drush makefile:

; Exhibit D7 Version makefile
core = 7.x

api = 2
projects[drupal][type] = core

; contrib modules
projects[views][subdir] = "contrib"
projects[ctools][subdir] = "contrib"
projects[devel][subdir] = "contrib"
projects[features][subdir] = "contrib"

; patched modules
projects[views_datasource][subdir] = "patched"
projects[views_datasource][download][type] = "git"
projects[views_datasource][download][url] = "https://dominikb1888@github.com/dominikb1888/views_datasource.git"
projects[views_datasource][type] = "module"

; ported exhibit module from github
projects[exhibit][subdir] = "ported"
projects[exhibit][download][type] = "git"
projects[exhibit][download][url] = "https://dominikb1888@github.com/dominikb1888/exhibit.git"
projects[exhibit][type] = "module"

; Features
projects[exhibitd7][location] = http://features.wi1projects.com/fserver

; COMMENTED OUT views_datasource because patch didn't seem to work, pulling gitub version instead as a temp solution
; projects[views_datasource][subdir] = "contrib"
; projects[views_datasource][version] = "1.x-dev"
; Patches added to support exhibit
; projects[views_datasource][patch][] = "http://drupal.org/files/issues/views_datasource-exhibit.patch"

Shell Script:

$  drush en views views_ui ctools devel devel_generate exhibit exhibit_core views_json features exhibitd7
$  drush genc 50  
$  drush gent tags 100
eiriksm’s picture

Tested your port very briefly last night, and got all the basics working. nice job. although i see the trouble with jquery there, and it is one that definitely should be resolved seeing as themes could very well rely on it. Also, editing exhibit feeds does not work at the moment, as you probably already know.

Anyway, my use case has taken another course, so i won't be able to focus on helping out as much as i would if i were to use this. But will follow the issue and see what i can contribute from time to time.

dominikb1888’s picture

Thanks for testing Eirik! The jQuery Errors will demand a larger effort I guess. Once there's a D7 branch I'll put this one up as one Issue defnitely. If there's anybody which could provide input on using other frameworks using jQuery together with drupal I'd be glad to receive some guidance. I've searched back and forth drupal.org to find a good resource, but couldn't find anyting directly related.

The feed editing error is fixed and committed to github.

Thanks for following!

jcamfield’s picture

There's been an exhibit problem with the json from Views since Views 2.6 in D6: http://drupal.org/node/558184

dominikb1888’s picture

@jcamfield: the problem mentioned in #17 is not related to views output, but to jquery being used in both exhibit and drupal, which is causing a conflict. If you are referring to that? Other than that I can't make sense from your posting. Please add more info if you have found something related to exhibit and views in Drupal7, I could not infer from the posted link.

fm’s picture

Is this still being ported to Drupal 7?

rkarajgi’s picture

@dominikb1888 :
Thanks for making the effort to get this wonderful Exhibit module on D7. I am trying to use Exhibit on D7. I am using your github code for both modules : exhibit and views_datasource.

I configured views to use the Views JSON and Simile/Exhibit. The json url seems to be generating JSON on my server.

But when I use the Exhibit node, it gives "Some Error" drupal_message. I figured it is executing exhibit_module line#656. I noticed that in exhibit_get_feed_url function, some url is hardcoded "http://localhost/testexhibit".

Do I need to make some changes there to get a simple Exhibit to work?

Thanks in advance for any pointers.

dominikb1888’s picture

@fm: yes the port is still going, been quite busy the last few weeks...

@__rajeev: There is a hardcoded reference to a manually exported json file on the server. I ran into problems with equal domain restrictions. For the moment you may need to change it there.

I will get time to test things further in february.

djredhand’s picture

Greetings... Just found this post and want to add that I have been working on this for Drupal 7 / Exhibit 3 as well. There are definitely some issues with the scripts bundled with Exhibit among other things. However, I have a working version running locally, just need to optimise the Exhibit dependency calls. Is it really necessary to require 78 other js files along with the build?

My approach has been:
1) Create content type for data import
2) Import existing data using the Feeds module.
3) Tried using the Views Datasource module which will export out to Exhibit JSON, however it was prepending "node" in my returns. So now I am rendering the JSON from a call in the template.

Will report back once my project is more stable. Any luck on your end?

** Note that Firefox has trouble with this also I found a posting Here that helped and quickly realized that in order for my Exhibit install to work in Drupal 7 I had to check off the aggregation of CSS and JS in the Performace settings within the admin config. Only then did it work in Firefox (I am on version 10.0.02)

** UPDATE **
Just checking back on this post. Here is the result of my port --> http://lowernysphtc.org/resources . Nothing fancy except that it does work on IE7 too.

azin’s picture

@djredhand possible to share the code? I am tremendously interested in the progress you seem to have made, and could try it out on my side and lend a hand.