Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using two "Pages" at once
#1
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
Reply
#2
in version 3.1 <?php getPageContent('slug'); ?>
Reply
#3
and how to manipulte the 'slug' in this context? Stuff like:
<?php getPageContent('slug' . '_sidebar'); ?> or <?php getPageContent('slug' + '_sidebar'); ?> doesn't work.
Reply
#4
You can use the function/tag return_page_slug, like:
Code:
<?php getPageContent(return_page_slug().'_sidebar'); ?>

(Edit: better do it like this.)
Reply
#5
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?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
@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'); ?>
Reply
#7
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
Reply
#8
@nik

Me alegro de que te haya funcionado.

}:-)
Reply




Users browsing this thread: 1 Guest(s)