Display box with text from additional page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Tecsol
New Member
New Member
Posts: 2
Joined: Fri Dec 20, 2013 8:14 am

Display box with text from additional page

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Display box with text from additional page

Post 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...)
Tecsol
New Member
New Member
Posts: 2
Joined: Fri Dec 20, 2013 8:14 am

Re: Display box with text from additional page

Post 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!
Post Reply

Return to “CMSMS Core”