Posts: 4
Threads: 1
Joined: Mar 2012
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
Posts: 1,906
Threads: 85
Joined: Apr 2010
2012-03-31, 03:38:53
(This post was last modified: 2012-03-31, 03:39:38 by jhondavis.)
in version 3.1 <?php getPageContent('slug'); ?>
Posts: 4
Threads: 1
Joined: Mar 2012
and how to manipulte the 'slug' in this context? Stuff like:
<?php getPageContent('slug' . '_sidebar'); ?> or <?php getPageContent('slug' + '_sidebar'); ?> doesn't work.
Posts: 3,491
Threads: 106
Joined: Mar 2010
2012-03-31, 07:40:40
(This post was last modified: 2012-03-31, 21:00:38 by fotothink.)
You can use the function/tag
return_page_slug, like:
Code:
<?php getPageContent(return_page_slug().'_sidebar'); ?>
(Edit: better
do it like this.)
Posts: 2,906
Threads: 193
Joined: Feb 2011
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?
Posts: 3,491
Threads: 106
Joined: Mar 2010
@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'); ?>
Posts: 4
Threads: 1
Joined: Mar 2012
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
Posts: 3,491
Threads: 106
Joined: Mar 2010
@nik
Me alegro de que te haya funcionado.
}:-)