Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page content without template
#1
Hi everybody!

Can i get a page conent in php without the whole template?

in example:

if i create a page like:

<h1>links</h1>
page text

if i want to insert that page in the template
is there a function to load that page everytime?

something like:
<?php load_page("links"); ?>

thanks to all!
Reply
#2
Ok i've created a plugin for doing that Wink
I uploaded the plugin here is the link
http://get-simple.info/extend/plugin/sim...content/87
Reply
#3
That is a very clever Plugin and I like it very much.

So it is easy to add texts to Info-Boxes somewhere on the page without the need to edit the templates just to change the content.

Thanks for that!
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
If you use the I18N plugin this functionality is already included, e.g.:

Code:
<?php get_i18n_content('links'); ?>

And it will get the correct language if there are multiple versions of the page.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
just wanted to say: thanks for sharing this plugin, its just what i needed.
_
Silence Is The True Friend That Never Betrays
Reply
#6
Hello,

this is a great Plugin Thank you!

Is there also a possibility to output the Page Title ?

I've created a website with a Java Script Accordion for the Content.

I created a Page for each Button and get the content with <?php get_i18n_content('accordion'); ?>
Is there a possibility to get the Pagetitle for the Buttontitle like <?php get_i18n_page_title('accordion'); ?>

Normaly i just get the active Title with <?php get_i18n_page_title(); ?> but that do not work out because i have individual Pages on one site.

Would be great if somebody knows how to do this.

Thanks! P.
Reply
#7
Ok i found something in another Topic:

http://get-simple.info/forum/post/17624/#p17624

I'll try this one, hope this works for the title to!

THX P.
Reply




Users browsing this thread: 1 Guest(s)