Page 1 of 1

Display box with text from additional page

Posted: Fri Dec 20, 2013 8:29 am
by Tecsol
Hi, I'm a CMSMS newie, but pretty good at readion documentation and manuals - I'm stuck on what is probably a very simple issue but can't find the answer, so asking for advice please:

I have a page which displays the default {content} in the main area. I want to display the text from a second story in a side box.

I've been working on the style sheet, and have been able to insert a {news} article at the desired location, and also a {self link}.

What I can't work out is how to simply display the text from another story directly in the same spot!

What am I missing?

Re: Display box with text from additional page

Posted: Fri Dec 20, 2013 2:16 pm
by velden
It's not clear to what you want exactly ('another story').

But you can:

- add {content block='foo'} to your page TEMPLATE to let editors add text per page
- use a Global Content Block (GCB) and include that in your page TEMPLATE
- there are some advanced ways to get content from other pages
- use other modules to get the text (News, CGBlog, LI2...)

Re: Display box with text from additional page

Posted: Sat Dec 21, 2013 3:29 am
by Tecsol
Thanks for your reply. I think my problem was that I created a new page, and was then trying to get the text from that page to display in a section of a previously created page. (I'm curious to know how this can be done...)

I ended up inserting this into the template, thanks to on-line examples:
<div class="ConfSponsors">
{content block="ConfSponsorExhibitor" assign=ExhibText}
<!-- Only show content block when it has some content -->
{if $ExhibText}
<!-- display text in designated area -->
{$ExhibText}
{/if}
</div>

Then I copied my text into the new section that SMSMS had created in the target page edit area. All good!