Closed (fixed)
Project:
Viewfield
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2008 at 02:48 UTC
Updated:
14 Jul 2012 at 19:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
wayland76 commentedComment #2
jdblank commentedAny work regarding a port to drupal 6?
Comment #3
Lowell commentedditto: subscribing
Comment #4
aren cambre commentedWould love to see this module updated to work with D6. In case there is already progress, the Upgrade Status module (http://drupal.org/project/upgrade_status) indicates no current D6 upgrade work.
Comment #5
jparets commentedFrom my point of view, node reference and view field, are both important contributions to dynamic web pages (WEB2 or something like this). Both allow modelling dynamic relationships and combining them the results are very interesting.
Comment #6
gyver commentedwatching this
Comment #7
jparets commentedI see the View Reference module in 6.x (but with no arguments). Is the idea to subsitute view field using View Reference?
Please a need some guide because I have to change all my design if Viewfield is not ported to 6.x.
But as I commented yet, a reference to views is one of the most powerful tools than I use in drupal. You can, for instance, adapt a view vith arguments to the user (restrict access by using arguments). Obviosuly a similar thing could be made with view_insert but is not so elegant when you are using CCK.
Thanks.
Comment #8
dogboy72 commentedhttp://drupal.org/node/246742
Until viewfield for d6, I have manually inserted views in custom tpl files.
Comment #9
dogboy72 commentedComment #10
jparets commentedThank you. I will try it.
A tried a similar solution using insert_view. The problem are arguments but can be solved using php:
An example:
This shows a view of nodes related to the $user->uid.
For me the main question is maintainability: using viewfield you have to selected a view and you can easily change the view in nodes of the same type. A simple quetion of editing the node.
Using the php solutions you have to write code for each node.
Viewfiled is elegant, and provide a good degree of maintainability and flexibility.
Thank you again
Comment #11
trofimchouk commentedPort port port port port port port!
Please please please please please!
Excuse me :)
Comment #12
davedelong commentedsubscribing.... viewreference just isn't cutting it for me
Comment #13
ar-jan commentedWould love a port to D6 as well. Would take care of my views being in the menu system so the right item stays active, and also maintain translation relationships between nodes with views in different languages.
Comment #14
mroswell commentedSubscribing.
Comment #15
hunvreus commentedWe are working on the port to Drupal 6.x, we're almost there already. It should be finished this week (maybe Thursday). So hold you breath, hopefully we'll have it running soon.
Comment #16
jparets commentedwonderful new!!!!
Comment #17
svihel commentedsubscribing
Comment #18
hunthunthunt commented@ #15 (hunvreus )
Awesome news!
Looking forward to this.
Comment #19
josoal commentedsubscribing
Comment #20
Jehf commentedsubscribing.
Comment #21
zmove commentedHi,
I'm subscribing to this issue too, I hoped to see a release this week end ;)
Comment #22
timpolino commentedditto: subscribing
it's a very import module!
Comment #23
moshe weitzman commentedI'll review and commit a worthy patch as soon as it arrives. Am looking to the community for the initial patch.
Comment #24
makara commentedHi,
This is my initial patch, based on DRUPAL-5 branch.
It works with page views now.
I have many questions/problems:
1. AFAIK each formatter has a function. Should I build formatters for different type of views, or should I make the views type as a field setting?
2. I'm not familiar with token.
3. Do we still need the custom default value settings?
4. $_viewfield_stack is not in use.
Comment #25
plachHi, this is my attempt to provide an initial patch: I started from makara's one (excuse me, I didn't mean to overtake you but I really needed this one :) and tried to port all the original features. Now we should have a pretty functional 6.x version.
Some notices:
tabledrag.jsscript does not allow nested tables at the moment, so I had to move the token replacement help outside the viewfield fieldset; moreover asystem.cssrule set anowrapon the table cells thus causing the description text to break outside the table borders; I fixed this with a tiny CSS file. I didn't know if these issues were to be considered bugs so I managed to fix them in the patch.I wait for your feedback.
Comment #26
plachI kept working on:
viewfieldnow can be shown in views using the field row styleAt the moment there is a known bug: if showing the
viewfieldthrough a view using the field row style and having configured the field to use anodereferencerelationship, the field will be empty (see #290682: Node reference views relationships should provide the referred node and not the referring one for details).Comment #27
dogboy72 commentedThanks for working on this.
Unfortunately, the patch isn't working for me:
Probably something I'm doing wrong in applying the patch.
Comment #28
plachCould you provide more information about your development environment and the way you applied the patch?
I created and tested it on Eclipse PDT 1.0.3.
Please note that the patch creates a couple of files from scratch (
viewfield.cssandviewfield.install) and modifiesviewfield.infoandviewfield.module, so you'll have to apply the patch to the wholeviewfielddirectory.One more thing: the patch has been created against the HEAD and not the latest stable release (5.x-1.5).
Comment #29
dogboy72 commentedSure. I'm running Drupal 6.3 on windows using xampp. I applied the patch using cygwin. I am not experinced with patches - have only done it a few times but this is the first time I've had a problem.
I think my problem is probably related to finding the correct version of head. From the CVS repository I found this version:
$Id: viewfield.module,v 1.3 2007/02/05 03:23:48 mfredrickson Exp $I was able to apply the patch successfully to this version, but could not find the version listed in the patch. Where can I get
$Id: viewfield.module,v 1.4 2007/02/18 00:40:26 mfredrickson Exp $Like I said before, I am not an expert in this area - I am a designer - so I'm fairly certain that the problem is something I'm doing wrong.
Thanks for you help.
Comment #30
plachYour version is simply not up to date (1.3), just updating from CVS (
cvs -q update -d -P) should do the trick.If you're not familiar with CVS and patching I strongly recommend you to use the Eclipse IDE in his PDT flavour to checkout projects and applying patches.
Here you can find some good links that explain how to set it up with Drupal:
http://drupal.org/node/37615
http://drupal.org/node/60179
http://drupal.org/node/157609
The last one is specifically about backend development but explains how to configure the Eclipse text editor to work with Drupal-specific file extensions.
Comment #31
dogboy72 commentedThank You! I'll let you know how it works.
Comment #32
momper commentedsubscribe
Comment #33
epikur79 commentedsubscribe
Comment #34
scottrigbyI look forward to testing this soon – in the meantime, has anyone had initial results so far? I haven't really heard how this is working out for anyone yet... would be good to build on any problems/solutions found, etc. Cheers! Scott
Comment #35
richardhkirkando commentedI'm not a developer either, so I have no idea if I'm doing this correctly, but here's what I did:
That should be it, right? Seems to have a problem with viewfield.module:
Any ideas?
Comment #36
epikur79 commentedFor me, the patched version works nicely.
Comment #37
zmove commentedHi, it is possible to see a zip file with the full 6.x version, or the author to create a dev version of 6.x branch ?
I don't have patching programs, and I don't know how to patch with command line (and I'm on windows, not linux).
thanks
Comment #38
richardhkirkando commentedHmm, seems that the patch utility on FreeBSD handles things differently. I tried applying the patch on a linux PC with the same steps as my previous comment, and it worked just fine.
Comment #39
plach@zmove:
I am providing a zipped version, but I will not support any future code change except through patches.
Please note that the Eclipse IDE is freely available for Windows.
Comment #40
zmove commentedThank you very much, I will try that :)
Comment #41
WorldFallz commentedInstalled the module from #39-- it installed perfectly, and seems to be working fine.
Comment #42
libeco commentedAlso tried #39 on a local installation of 6.4 and so far it works absolutely flawless. Thanks!
Comment #43
moshe weitzman commentedthanks. did a quick code review.
drupal_load('module', 'content');like other field modules now do in .install fileComment #44
moshe weitzman commentedthe first point is OK and i fixed #2. committed to HEAD, wihtout testing. lets wait a week for testers and then make a release.
please file new issues as you find them.
Comment #45
wuf31 commented@moshe
Where to get HEAD? The one @ the project page and through web CVS browsing is 18 months old..
Testing #39 version for now
Comment #46
darren ohHEAD is a development release. Development releases are updated once a day.
Comment #47
moshe weitzman commentedI republished the HEAD dev snapshot so it will become refreshed in the next 6 hours.
Comment #48
artis commentedHEAD still hasn't changed. It's still really old. I installed #39 and it worked fine except for one thing. I don't know if I should mention it here or open another issue since there isn't a release for D6 yet so here goes...
Viewfield in function viewfield_views_query_alter() adds: 'WHERE node.nid NOT IN'
This statement keeps the view from displaying the containing node within it's results and creating a loop. The problem is that my view is a 'User' view so it doesn't reference the node table in the database. So when I put it in a viewfield I get an SQL error: "Unknown column 'node.nid' in 'where clause' query".
If I comment out line 384 it works perfectly. We need to figure out a way to do this check on views that don't call the node table. I'll see what I can find but if someone knows the answer feel free to solve it.
Comment #49
moshe weitzman commentedperhaps try pre_view hook: http://views2.logrus.com/doc/html/group__views__hooks.html#g471b90caa886.... You should be able to know if node table is included and only take action then.
I don't know why the HEAD release is not refreshing. Some packaging problem I guess.
Comment #50
artis commentedSo I think it has something to do with there not being an ensure_table line before the add_where on line 384
I tried adding:
$query->ensure_table('node');with no effect.
Comment #51
plach@moshe
I downloaded the 6.x-1.x-dev release, but it seems to contain the 5.x-1.x-dev head version, moreover checking out the head from cvs provides the same "outdated" version: it seems like your commit somehow went wrong.
Comment #52
moshe weitzman commentedgosh - i committed to viewfeed project by accident. all fixed now. package will rebuild within 12 hours.
Comment #53
plachgreat!
I have filed a new issue for the #48 (#301503: Viewfield supports only node views)
Comment #54
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.