Forumlar / Cotonti / General / [idea] next release

rayblo
#1 2009-10-14 02:02
Just wondering people, why not add some extra features in pages.

Now if you add a page you can select download as ; No, Yes, Only members.

Is there a way to create this for ;

Print Option ; Yes, No
PDF Option ; Yes, No

So if you would select these in the add, when the page gets visible, you would see a print and pdf icon when you selected them in the add on YES.

Loads of other CMS systems have a print or pdf function, but not usable in this way and would make cotonti special i think
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
Kilandor
#2 2009-10-14 02:11
A print option can be done in template, all it is is a little javascript. PDF option what would that do?
rayblo
#3 2009-10-14 02:12
Well PDF option would open the page in a popup as PDF file, also the option to save it as PDF!
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
Lombi
#4 2009-10-14 02:21
PDF generation? There's an old seditio/LDU plugin that does that, try to locate it and see if it's still compatible.
<a href="http://www.domenlo.com">Surreal Art</a>
rayblo
#5 2009-10-14 02:26
As i said in the main, i know all these functions are there already, not all in once, so why not create them, becuase other cms systems have these functions standard in their files
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
Kilandor
#6 2009-10-14 06:18
Because a Print option when creating a page is a silly waste of SQL, same for PDF. Also PDF generation requires a PHP extenstion, and or a library to create it (which hosts may or may not have) (or someone to sit and research how PDF's are created and make our own method to do this).

If those options are a real must, you can add them with extra fields. And a simple TPL if check for the print or PDF could show the appropriate links, and PDF generation could be done by a plugin.

This is what extra fields and plugins are for, I doubt most people have the need to have options to put print links or PDF generation links on some pages but not others. If you want a print link or PDF generation, it would seem logical you would just want it on all pages. Which either could just be placed in a TPL.
Alex300
#7 2009-10-14 14:15
It's possible to create PDF-docs from pages via TCPDF library. It's written on PHP and works on any PHP host. Its under GNU License LGPL (http://www.gnu.org/copyleft/lesser.html).


http://www.tcpdf.org
http://tcpdf.sourceforge.net
Есть миры, не здесь, там, где небеса горят, и моря засыпают, и реки дремлют; люди сделаны из дыма, а города – из песен. Где-то опасность, где-то несправедливость, даже где-то остыл чай. Идем Эйс, у нас много работы!...
...Sorry for my english...
Бесплатные расширения для Cotonti: https://lily-software.com/free-scripts/
Mynt
#8 2009-10-14 23:16
<SCRIPT LANGUAGE="JavaScript"> 
<!-- hide script and begin if 
(window.print)
 { document.write('<form><input type=button name=print value="Print" ' + 'onClick="javascript:window.print()"> 
</form>'); } 
// End hide -->
</script>

Yay... include where you want it, its javascript, must be parsed in body obviously. /score one for Mynt.
"I only sleep when I know I won't miss a thing."