AW: YAML template
"Dr. Frank Hoffmann" <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <E88ED1661CEF43F891AFD3EE20FE526E@hal1> |
Hello,
[1] CSS YAML
you will the ZMS "default css" as ZMS system method:
\dtml\object\f_css_defaults.dtml
The call of this template is placed in a Zope DTML method (->screenhot)
/common/css/basic.css
You can delete the call or (easier) overwrite the problematic style
definitions.
HINT:
please mind the Creative Commons Licence conditions (backlink required) of
the YAML framework
http://www.yaml.de/en/license/license-conditions.html
http://www.yaml.de/de/lizenz.html
[2] SpecObj Infobox
to modify the behaviour of ZMSFile, please take a look into the presentation
template of the specObj "bodyContentZMSCustom_infobox"; there you will find
a DTML code like this:
.............
<dtml-elif "oItem.meta_type=='ZMSFile' and isVisible(REQUEST)">
<dtml-let f="getFile(REQUEST)"
relref="getParentNode().id + '/' + id + '/' +
_.string.split(f.getHref(REQUEST), '/')[-1]">
<ul class="ZMSFile">
<li><a href="<dtml-var "f.getHref(REQUEST)">" target="_blank"
<dtml-comment> href="<dtml-var relref>" </dtml-comment>
><dtml-var "getTitle(REQUEST)"> (<dtml-var
"_.string.upper(_.string.split(f.getContentType(),'/')[-1])">: <dtml-var
"f.getDataSizeStr()">)</a>
<dtml-if "getObjProperty('attr_dc_description',REQUEST)"><br />
<dtml-var "getObjProperty('attr_dc_description',REQUEST)">
</dtml-if>
</li>
</ul>
</dtml-let>
..............
Usually the target attribute is set to "_blank".
I hope these hints will help, best regards,
fh
moderator
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von fraggle_rock_grecce
Gesendet: Montag, 18. Februar 2008 10:50
An: [email protected]
Betreff: [zms-developers] YAML template
Dear developers,
we are working at a new project with ZMS & a updated YAML-template nr. 31.
There we want to change the grey background (f8f8f8) to (ffffff) in
"Abbildung" - but we don´t find therefor any options in
"instance/css/style.css"
As well we are working with the "infobox" to open some pdf-documents
in a new window. Therefore is in the script of the infobox in
"spezielle Objekte":
<dtml-if "src.meta_type=='ZMSLinkElement' and
src.getObjProperty('attr_type',REQUEST)=='new'">
target="_blank"
But unfortunately it just open the thing in the same window.
Any suggestions?
Thanks a lot in advance,
regards
Jürgen Fragner
our system at edis.at:
ZMS: ZMS 2.10.5-13 (Build #129f)
ZOPE: (Zope 2.9.5-final, python 2.4.4, linux2)
PYTHON: 2.4.4c0 (#2, Jul 30 2006, 15:43:58) [GCC 4.1.2 20060715
(prerelease) (Debian 4.1.1-9)]
System Platform: linux2
yamlBasic.png
(image/png, 162.1 KB) - not displayed