Investigating Extended Content Bug

Greetings,

I have been using Radiant since RailsConf and I’m noticing a peculiar
problem with the extended content page parts. It seems that if you
create a
page and click on the tab for extended content, it creates a blank entry
for
extended content. When I go to look at the page entry, the extended
content
link shows up when there is really nothing there. After checking
through
the trunk, it looks like the page parts model does not check for any
content
on the page part. Is this a feature or a bug? Let me know and I’ll
submit
a patch if required.

-martinisoft (http://www.martinisoftware.com)

Aaron Kalin wrote:

on the page part. Is this a feature or a bug? Let me know and I’ll submit
a patch if required.

You might call it a feature. The <r:if_content /> tags which control if
the link is shown only check to see if the part is on the page. They
aren’t concerned with whether it’s empty or not. If you don’t want the
link to show up you will need to delete the “extended” part.

I almost wonder if the <r:if_content> tags should have a show_empty
attribute or something of that nature which controls this behavior. I
agree it’s not what you might expect, but it is desirable at times.


John L.
http://wiseheartdesign.com

Well it was not expected when I did not put any data in the field. It
doesn’t add the link if I don’t look at the extended tab, but the
moment I
click, I know there will be that link until I remove the tab in the
admin.

Aaron Kalin
http://www.martinisoftware.com

Aaron Kalin wrote:

Well it was not expected when I did not put any data in the field. It
doesn’t add the link if I don’t look at the extended tab, but the
moment I
click, I know there will be that link until I remove the tab in the admin.

No, there should always be a link there if there is an “extended” part.


John L.
http://wiseheartdesign.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs