How to output all pages in one long page?

General questions about CMSimple
Korvell
Posts: 88
Joined: Thu May 22, 2008 10:33 pm

Re: How to output all pages in one long page?

Postby Korvell » Fri Aug 11, 2017 8:56 am

Cool! But I can't get it to work though - nothing shows up where I put the function call in the template...
The php-code doesn't get replaced by the print command...

Side note regarding the second parameter text: In the current project I use a Font Awesome icon, but that shouldn't give a problem if I just omit the text, it ought to show just fine, right?

cmb
Posts: 11416
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: How to output all pages in one long page?

Postby cmb » Fri Aug 11, 2017 9:54 am

Korvell wrote:nothing shows up where I put the function call in the template...

Oops, my bad. Of course, the call in the template has to be:

Code: Select all

<?php echo xprint(true, 'print all pages')?>
<?php echo xprint
(false, 'print page with subpages')?>


Korvell wrote:Side note regarding the second parameter text: In the current project I use a Font Awesome icon, but that shouldn't give a problem if I just omit the text, it ought to show just fine, right?

Well, I think that you should use the HTML markup for the Font Awesome icon as text, e.g.

Code: Select all

<?php echo xprint(true, '<i class="fa fa-print"></i>')?>
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Korvell
Posts: 88
Joined: Thu May 22, 2008 10:33 pm

Re: How to output all pages in one long page?

Postby Korvell » Fri Aug 11, 2017 1:09 pm

Awesome! :) - It works beautifully!
Thank You so much - again :)
This feature will be usefull on other sites of mine as well.


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest