mdesign - 08 May 2009 03:12 PM
If you had existing entries where this became a problem, you may need to pay special attention to the “One More Thing” section of that article to “reset” those entries. Let me know if that helps.
Thanks so much, Ryan. I’m working on my first EE site, and I’ve been using your MD Simple Relation extension. I was taking the value from my Simple Relation field and doing a query to find the original entry it was related to. I’ll just say that it’s hard to find an entry_id with a value of something like this:
<p>7</p>
If I couldn’t get the problem fixed, I was going to have to go back to trying to do embedded related_entries and reverse_related_entries with multiple embedded templates. Nasty. You can imagine my excitement when I saw the posts on this thread today.
Also, while pulling out my hair the past couple of weeks with this issue, I figured out the “One More Thing” step before seeing your link to the devot:ee article. I was doing this every time I would post a new entry in order to remove the [p][/p] tags.
Here are the steps I used to fix the existing entries each time I posted a new one:
1) While editing the custom field, change the Field Type from MD Simple Relation to something like Text Input (otherwise you’ll see “Text formatting is not available for your chosen field type.”)
2) You probably ultimately want to set the formatting to be None. In order to force the update of existing entries, set it to XHTML for now.
3) You should now see the checkbox at the bottom of the page to “Update all existing weblog entries with your new formatting choice?” Check this box.
4) Warning: When you click Update in the next step, you will lose your relationship settings. So I would recommend you note down all of the settings so you can change them back later. (You might be able to actually change the type back to MD Simple Relation before clicking Update so you don’t lose your settings. It didn’t seem to actually set it to XHTML when I did this though.)
5) Click Update to change all the entries to XHTML format.
6) Now go back to edit the field again. This time set the Text Formatting to None. Change the Field Type back to MD Simple Relation. Re-enter the relationship settings (weblog, display order, etc.)
7) Check the “Update all existing weblog entries” checkbox again to remove the tags from all your existing entries.
8) Click Update.
I’m not sure if any of that made sense… it’s kind of hard to describe. Hopefully this will be useful to someone.
Thanks!
Josh