Search found 88 matches

by Korvell
Fri Aug 11, 2017 1:09 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Awesome! :) - It works beautifully!
Thank You so much - again :)
This feature will be usefull on other sites of mine as well.
by Korvell
Fri Aug 11, 2017 8:56 am
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

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 ...
by Korvell
Thu Aug 10, 2017 9:00 am
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Thanks. Now it works perfectly - I indeed had forgotten to remove "$content" from the line in functions.php. My wish for the function is two separate functions; one that takes current page only and one that takes all. I think it would be confusing for the visitor if the print button would ...
by Korvell
Wed Aug 09, 2017 8:31 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Update: Seems there might have been a cache problem because now the print works well - no double page 1. But - and I hate to say it - there's still an issue - hidden page titles (the H1 ones) shows up. Guess this is a wink to maybe switch to 1.7.0 eventually. Thank You all, especially Christoph. Alw...
by Korvell
Wed Aug 09, 2017 6:17 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

OK - changed the userfuncs.php and now the printout looks better - but still got an issue: the first page shows twice ;)
by Korvell
Wed Aug 09, 2017 6:03 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Actually - I would like to have both options: Print current page and print all pages ;) That was my initially thoughts when I looked for that internal CMSimple command from old ages...
by Korvell
Wed Aug 09, 2017 5:22 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Wow - that does work indeed - although your link only shows sektion 1. But if I simply put in a direkt link for "http://sk.egmont-hs.dk/index.php?print" it shows the whole site from the top level. But now I get an error 404 at the top - the rest of the site shows up nicely. So close now...
by Korvell
Wed Aug 09, 2017 4:56 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

OK - got it. Changed the line in funtions.php - added the section to userfuncs.php - added <?php echo printlink();?> to the template (below content for test) - but no difference from normal print view, just the current page shows... Notice: The print icon in the top blue line calls my own version of...
by Korvell
Wed Aug 09, 2017 4:07 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Thanks Christoph. Looking back in my files archive of the old original CMSimple from the days of Peter Harteg I found the code I thought I remembered - and it is the same, that ZIP posted :) That 'infinite' feature is quite nice - it could work well for my site I think. As for the code snippet I'm n...
by Korvell
Wed Aug 09, 2017 1:57 pm
Forum: General
Topic: How to output all pages in one long page?
Replies: 22
Views: 556

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

Thanks - looks somewhat like what I remember although not completely - I remember it a tad bit shorter. But it works - almost - it just puts out some of the extra hidden content from each page: 'Forside', 'last_edit'=>'1502268549', 'description'=>'', 'keywords'=>'', 'title'=>'', 'robots'=>'', 'headi...

Go to advanced search