Page 3 of 3

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

Posted: Fri Aug 11, 2017 8:56 am
by Korvell
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?

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

Posted: Fri Aug 11, 2017 9:54 am
by cmb
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>')?>

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

Posted: Fri Aug 11, 2017 1:09 pm
by Korvell
Awesome! :) - It works beautifully!
Thank You so much - again :)
This feature will be usefull on other sites of mine as well.