How to not show Extended in Page


#1

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.


#2

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


#3

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.


#4

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.


#5

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


#6

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

Martin


#7

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


#8

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

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

Thanks!

Per-Olof


#9

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