First, thanks for all of your suggestions. I have been trying to implement all of them. But I am still stuck.
I made the adjustments suggested to the extension files, but I still get the errors.
So I tried Mark’s checkboxes extension. Those seemed to work. I could set up multiple choices and they all showed up, with no gibberish code.
But then I tried to use the query module to create a link back to the related blog that I am calling with the checkboxes. From looking at other code samples and playing around with it, I figured I needed to call exp_weblog_titles and grab {title} and {url_title} to create the link. Using joins, it looks like I need to add in the entry_id from the weblog_data table and child id from the relationships table. All of this works fine. But I am looking for a unique ID to call for this specific item(s). It looks like the rel_ID in the relationships table could work, and I have seen some sample code in these forums that matches the relationships rel_id to a specific field in the weblog_data table.
One problem. My rel_id is a number. The corresponding field in the weblog_data table is a name. So they aren’t comparable in this state.
Is there a way to convert one or the other? Or is there something here that I am missing?
Here’s a good example of some code I picked up and was trying to adjust:
SELECT url_title as brand_url FROM exp_weblog_titles
LEFT JOIN exp_relationships ON exp_weblog_titles.entry_id = exp_relationships.rel_child_id
All of the above works fine. But I need that unique ID for this particular entry. I want to make a WHERE clause like this one:
WHERE exp_relationships.rel_id = ‘x’ //where x is the field. But the corresponding rel_id in the field I am looking to match is a number: 62.
Or I could write something without a join like (forgive me if this isn’t exact since I am trying to recreate it here from my head since I wiped my earlier tries out):
SELECT exp_weblog_titles.url_title, exp_weblog_data.entry_id, exp_relationships.rel_id, exp_relationships_childid FROM exp_weblog_titles, exp_weblog_data, exp_relationships WHERE exp_weblog_titles.entry_id = weblog_relationships.childid AND exp.relationships.rel_id = exp_weblog_data.field1).
But once again I run into the problem here that I have one number and one field name. Could someone tell me what I am missing here?
Basically, I am trying to create relationships, with cross-referencing. The main blog is named Products. The sub-blogs are Brands and Stores. I want someone on the products page to be able to click on either specific related Brands or Stores to see all the existing relationships on every page. Then on the Brands page or the Stores page, they should be able to click to see all related products, etc. etc.
Thanks in advance. Previously, I would have done this with ASP and Access. But I think EE will be much easier, once I get this theory down.
--Scott