Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
I'm using the relationship module on drupal 4.7.2 and 4.7.3, but the relationship navigation block doesn't seem to show up. Strangely, I get two identical instances of it that I can enable on the admin->blocks page, but neither off them work.
My understanding is that when a user is viewing a node, this block would show the relationships of that node in the sidebar (ie, "see also this page"). Is there anything else I need to enable?
The metadata seems to be added properly and shows up in the "head" of the page source.
Cheers,
s.
s.
Comment | File | Size | Author |
---|---|---|---|
#5 | rdf_datastore.inc.txt | 7.35 KB | dman |
Comments
Comment #1
dman CreditAttribution: dman commentedI don't think I even reviewed the metadata block since going to 4.7.
I'll see what the story is...
Comment #2
dman CreditAttribution: dman commentedMmm, it was all still 4.6.
I've fixed a lot of bits up now.
The side block (as expected) will list all available relationships.
There was a custom version as well you could choose which relations to display with, but that needs a little more work - forms api is spitting back arrays not values at me today. I don't really have a use in mind for that function yet anyway.
In other news, the plugin 'navigation' ontology should be much improved. It has its own custom block you can turn on instead. Some of the links went missing in the last iteration due to a switch from node ids to node paths as the unique resource identifier.
In CVS now
.dan.
Comment #3
Steven Mansour CreditAttribution: Steven Mansour commentedThat's great!
Using CVS now, though, I'm getting:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/strictma/public_html/berkman/modules/relationship/rdf_datastore.inc on line 27.
I just copied the CVS version over the old one.
s.
Comment #4
Steven Mansour CreditAttribution: Steven Mansour commentedComment #5
dman CreditAttribution: dman commentedBah!
PHP 4-5
I test in 5 and it tells me 'var' is deprecated. I change it to 'public' and 4 stops working.
Put it back to var I guess.
Comment #6
Steven Mansour CreditAttribution: Steven Mansour commentedOk,
Thanks for the quick follow-up!
Now I'm getting:
Fatal error: relationship_query(): Failed opening required 'characteristics.inc' (include_path='modules/relationship:.:/usr/lib/php:/usr/local/lib/php') in /home/strictma/public_html/berkman/modules/relationship/relationship_api.inc on line 287
I should probably know what this means, but I'm no coder... :)
Is characteristics.inc part of the module?
Comment #7
dman CreditAttribution: dman commentedLooks like I need a better test routine, sorry.
Characteristics SHOULD have been part of the bundle. Just missed getting committed (I'm useing three different CVS clients at different times)
It's here now.
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/relationship/...
Comment #8
Steven Mansour CreditAttribution: Steven Mansour commentedI'm going to keep pestering you with these... ;)
Now I get:
"Fatal error: Call to undefined function: array_combine() in /home/strictma/public_html/berkman/modules/relationship/range_selectors.inc on line 260" when trying to edit a node.
Another php4 / 5 problem maybe?
Also, I got a DB error when enabling the modules (a bunch of "table not found errors"), but after going to settings -> relationship, the install file seems to have kicked in.
Comment #9
dman CreditAttribution: dman commentedOK, I'm guilty of not doing enough regression testing. I'm firing up a PHP 4.4.1 instance to see what the story is.
The dead tables will be due to the install dying half-way most likely.
Shouldn't be too bad. I recall actually doing an array_combine stub somewhere... Probably just the includes in the wrong order. The bootstrap phase is the most tempremental :)
All the config settings are actually stored using the system itself! Asking for trouble I guess.
Comment #10
dman CreditAttribution: dman commentedLong fixed or dead. Time to clean up the queue.