GetSimple Support Forum

Full Version: Using two "Pages" at once
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Guys,

i'm new with GetSimple, so my question might be a little stupid. I saw a couple of Posts about how to get diffrent components displayed together, but components don't have (at least in the basic version of GS) an rich-text-editor. That is why i thought to make to Page-files like: home and home_sidebar for displaying two diffrent textes in two columns at one site. Is there a way to achieve this? the get_page_content Tag doesn't accept any parameters...

Thanks a lot,
Nico
in version 3.1 <?php getPageContent('slug'); ?>
and how to manipulte the 'slug' in this context? Stuff like:
<?php getPageContent('slug' . '_sidebar'); ?> or <?php getPageContent('slug' + '_sidebar'); ?> doesn't work.
You can use the function/tag return_page_slug, like:
Code:
<?php getPageContent(return_page_slug().'_sidebar'); ?>

(Edit: better do it like this.)
well, a very simple solution for using more components can be the "WriteArea"-Firefox-Plugin: a right-click in any textarea and you have a working CKEDitor ...

on the other hand there is a very old plugin in the EXTEND: http://get-simple.info/extend/plugin/sim...ontent/87/

did you check that?
@nik

BTW I suggest you don't use the underscore in slugs, as for some plugins it's a language suffix separator.

Better create your sidebar pages as slug-sidebar and use this code:

Code:
<?php getPageContent(return_page_slug().'-sidebar'); ?>
Super hat geklappt. Ich hatte genau deinen Code Carlos schon probiert, das Problem war wohl wirklich, dass der Unterstrich nicht funktioniert. Mit dem Minus jetzt klappts einwandfrei!

@Connie: Das Firefox-Plugin hätte mir nicht geholfen, schließlich entwickel ich die Website für jemand anderen, und da möchte ich ihn nicht zwingen einen bestimmten Browser mit einem bestimmten Plugin nutzen zu müssen.

Auch das Plugin hätte mir so nicht geholfen, denn ich will ja auf verschiedenen Seiten je eine Sidebar haben! So ist das die perfekte Lösung - vielen Dank nochmal!

Und b.t.w.: Ich bin bisher von GetSimple echt begeistert
@nik

Me alegro de que te haya funcionado.

}:-)