[cups.general] Shared by default

Michael Sweet msweet at apple.com
Mon Dec 10 10:38:42 PST 2012


Alex,

On 2012-12-07, at 2:28 PM, Alex Korobkin <korobkin+cups at gmail.com> wrote:
> Hi all, 
> 
> I want to see the checkbox "Share This Printer" to be checked by default, when adding a new printer to CUPS 1.5.4 via web interface. 
> 
> add-printer.tmpl has this snippet:
> 
> <TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" {PRINTER_IS_SHARED=1?CHECKED:}>
> 
> However, I don't see any examples of a checked box in other tmpl files. How to modify it to have this option checked by default? 

Just replace with:

    <TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" CHECKED>

> Also, why do printers that are certainly shared (and were created as shared) have "(Idle, Accepting Jobs, Not Shared)" displayed in the header when you open them in web interface?


The value shown depends on whether printer sharing is enabled on the server (a printer might be shared but if sharing is not enabled then it will still not be sharable, if that makes sense?)

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20121210/c09fc6d5/attachment-0001.html>


More information about the cups mailing list