GetSimple Support Forum

Full Version: same content on multiple pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello GS Coders and Users,

I am new to GetSimple and am still learning to walk here with my first project and am very happy with what I could do with GS so far. But now I dont know how to solve my problem have a look.

On a page called "my products" are several products listed. Seperated from that is a "product of the week".
I want to include the text from the product of the week on every page on a reserved part of my design and dont know how.

Edit: I know I could realize this with components but dont want to. It should be easiely editable with a WYSIWYG editor for my client. An image should also be included so I dont want him to <img src=" . . .">
This wouldnt be nice
You could either use components or setup a separate page if your require the full editor and output the content in the selected space.

To setup a separate page, create a new page, call it "product of the week"
make it private and enter your information in the page.

Then in your theme template files just output the content by using the following code wherever you need
to output the "Product of the week"

Code:
<?php getPageContent('product-of-the-week'); ?>

The advantage of doing it this way is you have the full editor.

mike.

Edit: this is for 3.1 only... there are functions to do this in previous versions but I recommend you use 3.1
Nice forum spamming.

@ n00dles101
Thanks your solution worked for me tried something similar before without success.

best wishes