Posts: 112
Threads: 20
Joined: Dec 2011
2011-12-11, 22:52:56
(This post was last modified: 2011-12-18, 10:16:47 by mklemme.)
Hi all !
I want to display in the sidebar, a specific page (very short like a description).
My idea is :
1- create a new page called sidebar-description (for example)
2- in the sidebar code in template.php call a function with sidebar-description in parameter
3- the sidebar display the page sidebar-description.
I think i have to use get_page_content()) function but I'm not sure and I don't know how.
Is my idea good ?
Thanks, Regards
Posts: 2,928
Threads: 195
Joined: Feb 2011
you can use components for that, try it!
Posts: 112
Threads: 20
Joined: Dec 2011
Great !
not exactly what I want but it works well !
Thanks
ps: I wanted to go through a specific page to access the options layout of the text editor and then further facilitate the use of the sidebar. (google translate sorry, i'm tired ^^)
Posts: 6,266
Threads: 181
Joined: Sep 2011
I was trying to do this exact same thing right now.
I want a sidebar component that loads a sidebar page.
I thought you could do that with like get_content() or get_page_slug()
But i cant figure it out yet.
I don't want my actual content in the component, just a page include.
edit:
Found the answer here
http://get-simple.info/forum/topic/2720/...entpageid/
Posts: 2,094
Threads: 54
Joined: Jan 2011
shawn_a Wrote:I want a sidebar component that loads a sidebar page.
I thought you could do that with like get_content() or get_page_slug()
If you use the
I18N plugin, you can use
get_i18n_content('my-page-slug').
Posts: 112
Threads: 20
Joined: Dec 2011
2011-12-13, 23:07:29
(This post was last modified: 2011-12-13, 23:08:28 by mklemme.)
Great! thank you for this! exactly my request!
I'm beginning to understand how getsimple works, and I think I'll forget Joomla! there is not enough to plug-in, but the few that there are great!
Thanks all for the job !