Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
same content on multiple pages
#1
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
Reply
#2
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
My Github Repos: Github
Website: DigiMute
Reply
#3
Nice forum spamming.

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

best wishes
Reply




Users browsing this thread: 1 Guest(s)