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?
Display box with text from additional page
Re: Display box with text from additional page
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...)
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
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!
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!