# Investigating Extended Content Bug

**URL:** <https://www.ruby-forum.com/t/investigating-extended-content-bug/98438>\
**Category:** Radiant CMS\
**Created:** [July 14, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/investigating-extended-content-bug/98438 "2006-07-14T19:33:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Kalin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@Aaron\_Kalin](https://www.ruby-forum.com/u/Aaron_Kalin)\
**Post date:** [July 14, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/investigating-extended-content-bug/98438/1 "2006-07-14T19:33:59Z")

</div>

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](http://www.martinisoftware.com))

---

<div class="post-metadata">

**Author:** ![Aaron\_Kalin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@Aaron\_Kalin](https://www.ruby-forum.com/u/Aaron_Kalin)\
**Post date:** [July 14, 2006, 8:08pm UTC](https://www.ruby-forum.com/t/investigating-extended-content-bug/98438/2 "2006-07-14T20:08:24Z")

</div>

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](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Aaron\_Kalin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@Aaron\_Kalin](https://www.ruby-forum.com/u/Aaron_Kalin)\
**Post date:** [July 15, 2006, 1:36am UTC](https://www.ruby-forum.com/t/investigating-extended-content-bug/98438/3 "2006-07-15T01:36:55Z")

</div>

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](http://www.martinisoftware.com)

---

<div class="post-metadata">

**Author:** ![Aaron\_Kalin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@Aaron\_Kalin](https://www.ruby-forum.com/u/Aaron_Kalin)\
**Post date:** [July 15, 2006, 2:57am UTC](https://www.ruby-forum.com/t/investigating-extended-content-bug/98438/4 "2006-07-15T02:57:27Z")

</div>

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](http://wiseheartdesign.com)
