jgarber / radiant-chronicle-extension

Provides history, diffs, and dev-only drafts to Radiant CMS
Other
42 stars 17 forks source link

Unpublished Childs not available in tags like <r:children:each> in dev mode #32

Closed andreash closed 15 years ago

andreash commented 15 years ago

I am creating a menu using the tag (for example). I am in dev mode but the tag still would only find published childs, not the unpublished ones. It would be great to see the unpublished as well being found by the tag, to have a "complete" impression on how the page would look and feel (e.g. links in the menus). Thanks, Andreas

jgarber commented 15 years ago

From my testing, it looks like the tag does find unpublished children by default in dev mode, but doesn't retrieve the draft version of a published page. So, if you create a new page as a draft, it would show up, but a published page that you edited as a draft would show the information from the live version, not the dev version.

jgarber commented 15 years ago

Okay, I've pushed a fix for this.

jgarber commented 15 years ago

Oops. Just thought about it that parent.current should only be done if dev.

jgarber commented 15 years ago

It's been a long time, but I think I fixed it today.