# How to not show Extended in Page

**URL:** <https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855>\
**Category:** Radiant CMS\
**Created:** [March 6, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855 "2007-03-06T13:21:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/1 "2007-03-06T13:21:01Z")

</div>

hi

I have set up a Radiant site about Swedish shorthand  
(www.stenografi.se).

On some pages I would like the Extended part to show up as a Read  
more… link, (which I know how to do), but somehow they show up on the  
page.

Is there a way to shut the extended page of, so that the link is used in  
stead?

On my site, click on “Grunderna” to see what I mean.

Per-Olof H.

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/2 "2007-03-06T14:58:03Z")

</div>

Per-olof Hermansson wrote:

> stead?

There must be something wrong with the layout. I believe in the  
original “Styled Blog” layout there were “Read more…” links only on  
the home page and the Articles page because they are generated by the  
children:each iterator.

> On my site, click on “Grunderna” to see what I mean.

Could you send us a pastie of what’s in the page and the layout? It’s  
hard to tell what’s wrong without seeing the code.

> Per-Olof H.

Sean

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/3 "2007-03-06T15:11:32Z")

</div>

Sean C. wrote:

> There must be something wrong with the layout. I believe in the  
> original “Styled Blog” layout there were “Read more…” links only on  
> the home page and the Articles page because they are generated by the  
> children:each iterator.  
> Sean

I included \<r:if\_content part=“extended”\>\<r:link anchor=“extended”\>LÃ¤s  
mer…\</r:link\>\</r:if\_content\> just to see if this would bring up a  
link, which it does. I have not done any programming, just implemted  
Radiant “as is”.

The page is a regular page, a child of Home Page, with a link to i in  
the sidebar of Home Page.

## If I take this away: my body content looks like this:

"Klicka pÃ¥ lÃ¤nken nedan fÃ¶r att se bokstÃ¤verna och nÃ¥gra exempel enkla  
ord.

This is the end of body"

My extended content looks like this:  
“Extended content:  
Vissa bokstÃ¤ver, t.ex C, Q, Z anvÃ¤nds vÃ¤ldigt sÃ¤llan, och jag har dÃ¤rfÃ¶r  
bara visat C, som kan vara bra nÃ¤r man skriver namn som Cecilia.”

When I click on the page it is shown like this:

* * *

"Klicka pÃ¥ lÃ¤nken nedan fÃ¶r att se bokstÃ¤verna och nÃ¥gra exempel enkla  
ord.

This is the end of body

Extended content: Vissa bokstÃ¤ver, t.ex C, Q, Z anvÃ¤nds vÃ¤ldigt sÃ¤llan,  
och jag har dÃ¤rfÃ¶r bara visat C, som kan vara bra nÃ¤r man skriver namn  
som Cecilia.

Layout is normal, behaviour none, "

What I would like is that only the body is shown as it is inte the blog,  
and archive section.

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/4 "2007-03-06T15:39:15Z")

</div>

The problem could be that you have not removed the Extended page  
part, just left its content empty. If there is a part called  
extended, even if it is empty, \<r:if\_content part=“extended”\> will  
evaluate to true.

/Martin O.  
[http://smpl.se](http://smpl.se)

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/5 "2007-03-06T15:49:18Z")

</div>

Martin O. wrote:

> The problem could be that you have not removed the Extended page  
> part, just left its content empty. If there is a part called  
> extended, even if it is empty, \<r:if\_content part=“extended”\> will  
> evaluate to true.

This expression:

\<r:if\_content part=“extended”\>

Evaluates true when the part exists. It has nothing to do with whether  
it is empty or not.

–  
John L.  
[http://wisheartdesign.com](http://wisheartdesign.com)

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/6 "2007-03-06T15:40:17Z")

</div>

Hmm. I think I misunderstood your question so ignore my previous  
answer. Sorry for the noise.

Martin  
[http://smpl.se/](http://smpl.se/)

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/7 "2007-03-06T18:19:59Z")

</div>

On Mar 6, 2007, at 6:21 AM, Per-olof Hermansson wrote:

> Is there a way to shut the extended page of, so that the link is  
> used in  
> stead?

In the stock radiant that you are using, the template is designed to  
show the entire body and extended parts of the page when you are  
viewing that page. The body part is used on other pages for  
\<r:children:each\> blocks. I think you are asking to have that  
functionality on the page itself. I’m not sure of how you would  
recall the page again to show the extended portion. Is there a way  
to pass a value to the url to have it show the extended part? like /  
slug?extended=true

You could always make the “extended” content a child of the page and  
then link to that child, but I like the idea of keeping the content  
in the different parts and just showing those as needed.

You could also do it with javascript and hidden divs in your layout.

Hopefully someone else can have a better answer.

dm

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/8 "2007-03-06T16:31:11Z")

</div>

John W. Long wrote:

> Martin O. wrote:
> 
> > The problem could be that you have not removed the Extended page  
> > part, just left its content empty. If there is a part called  
> > extended, even if it is empty, \<r:if\_content part=“extended”\> will  
> > evaluate to true.
> 
> This expression:
> 
> \<r:if\_content part=“extended”\>
> 
> Evaluates true when the part exists. It has nothing to do with whether  
> it is empty or not.
> 
> –  
> John L.  
> [http://wisheartdesign.com](http://wisheartdesign.com)

Does anyone have a solution for the question I asked at the top of the  
thread?

Thanks!

Per-Olof

---

<div class="post-metadata">

**Author:** ![perherman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@perherman](https://www.ruby-forum.com/u/perherman)\
**Post date:** [March 6, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/how-to-not-show-extended-in-page/87855/9 "2007-03-06T18:38:36Z")

</div>

David Minor wrote:

> On Mar 6, 2007, at 6:21 AM, Per-olof Hermansson wrote:
> 
> > You could always make the “extended” content a child of the page and  
> > then link to that child, but I like the idea of keeping the content  
> > in the different parts and just showing those as needed.
> 
> dm

This is how I have solved it for now, But it would be nice to not having  
to create an additional child and linking explictly to that child.

Thanks for your input.

Per-Olof
