Re: documents standard attributes
Adam Tauno Williams <[email protected]> Fri, 11 Sep 2009 06:58:12 -0400
| Newsgroups | gmane.comp.cms.opengroupware.user |
|---|---|
| Message-ID | <1252666692.5995.48.camel@linux-m3mt> |
On Fri, 2009-09-11 at 12:01 +0200, Helge Hess wrote:
> On 10.09.2009, at 11:48, Renzo Vettori wrote:
> > Is there a way to configure what (standard) attributes appears in
> > OGo documents webui (e.g., attributes for a file stored in a db
> > project) via Defaults ? Is this an extensible set?
> I don't remember for sure, but I think thats actually possible with
> 'project types', which could be configured via defaults. Someone might
> want to dig the archives. I think I've implemented that in 2005 or 2006.
Projects can be grouped by kind, and I think documents as well (see
quoted below). And there are extended attributes on projects
<http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1123> but I
don't see anything relating to documents.
<quote
source="http://svn.opengroupware.org/OpenGroupware.org/trunk/WebUI/Project/OGoProject/README">
Configurable Desktop Tabs
=========================
Desktop tabs are configurable using the 'skyp4_desktop_tabs' default,
see the
Defaults.plist. Eg to display all projects of kind 'ABC' in a new tab,
but NOT
in common, use this:
---snip---
(
{ key = ppublic; labelKey = common;
qualifier = "type='common' AND NOT kind='ABC'"; },
{ key = pprivate; labelKey = private; qualifier =
"type='private'"; },
{ key = parchived; labelKey = archived; qualifier =
"type='archived'"; },
{ key = ABC; labelKey = ABC;
qualifier = "kind='ABC'"; },
)
---snap---
DocViewer Rules
===============
The document viewer looks up the available tabs using the
NGBundleManager. From
that set of tabs you can select those which are to be displayed for a
given
file using NGRule's.
For example to show only the tab with the content for text documents,
you can
use:
Defaults write ogo-webui-1.0a OGoDocViewerRules \
'( "document.NSFileName.pathExtension = \"txt\" => tabkeys =
(contents)" )'
</quote>
--
OpenGroupware.org Users
[email protected]
http://mail.opengroupware.org/mailman/listinfo/users