Content after break

Post Reply
kaaleth
Master Bludit
Posts: 116
Joined: Sun Jun 14, 2015 9:55 am
Contact:

Hello,

how can I show content in the template after break? I would like to put

Code: Select all

<?php echo $page->contentBreak() ?>
in section A, and the rest of the content in section B but I cannot find a right function for it.

One more question, is there any way to show something in the template that is related only to published pages and NOT to static? If yes, how?

Greetings
User avatar
Edi
Site Admin
Posts: 2807
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 13 times
Been thanked: 27 times
Contact:

kaaleth wrote: Mon May 23, 2022 9:03 am how can I show content in the template after break?
I wasn't aware of this till now. :oops:

What does $page->contentBreak()?
One more question, is there any way to show something in the template that is related only to published pages and NOT to static?
Can you please give an example of what you like to do?
kaaleth
Master Bludit
Posts: 116
Joined: Sun Jun 14, 2015 9:55 am
Contact:

Edi wrote: What does $page->contentBreak()?
It just shows a content before your:

Code: Select all

<!-- pagebreak -->
and now I would like to render the content AFTER <!-- pagebreak --> only. I thought it was

Code: Select all

<?php echo $page->content(); ?>
but it renders whole of my content + content before break. This makes no sense, because in my template I can see some text that is doubled.

Edi wrote: Mon May 23, 2022 10:03 am Can you please give an example of what you like to do?
I think I found solution in disqus plugin, but I need to test it. I wanted to put some content only in pages that are not sticky are not static, so only to these that are "real" entries.
Post Reply