Re: URLs zu Dateien in Zope Resource Package enthalten nicht die verwendete _vh_ Deklaration der VHM Konfiguration

Thomas Graf <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo Sascha,

hier ein Beispiel, in vs.org gesehen.

<img src="vbb_icon" tal:attributes="src 
string:${context/@@plone_context_state/object_url}/++resource++vs.org.images/vbb_icon.gif;"
                             title="label_vbb"
                             alt="label_vbb"
                             i18n:attributes="title" />

Der Teil:

${context/@@plone_context_state/object_url}

sollte dein Problem lösen.

Gruss Thomas

-- 
Thomas Graf, B.Sc.
Information Technology
Fraunhofer-Institut für Solare Energiesysteme ISE
Heidenhofstrasse 2, 79110 Freiburg, Germany
Phone: +49(0)761/4588-5123  Fax: +49(0)761/4588-9123
[email protected]
http://www.ise.fraunhofer.de


Am 25.08.11 17:44, schrieb Gottfried Sascha:
> Entsprechend folgender Dokumentation
> (https://plone.org/documentation/kb/plone-apache/vhm) wollte ich die
> _vh_ Deklaration des VirtualHostMonsters (VHM) nutzen, um meine URL zu
> bauen.
>
> Auszug aus Apache/Zope VHM Rule
>
> <VirtualHost *:443 >
>
>    ServerName businessdivision.company.com
>
> ## vhm rule
>
>    RewriteRule ^/onlineportal(.*)
> http://localhost:8081/VirtualHostBase/https/%{SERVER_NAME}:%{SERVER_PORT}/sites/portals/production/VirtualHostRoot/_vh_onlineportal$1
> <http://localhost:8081/VirtualHostBase/https/%25%7bSERVER_NAME%7d:%25%7bSERVER_PORT%7d/sites/portals/production/VirtualHostRoot/_vh_onlineportal$1>
> [L,P]
>
> </VirtualHost>
>
> Die obige VHM Rule führt zu folgender URL. Alles ok. Die URLs der
> Navigation und innerhalb der Seiten enthalten alle den in der _vh_
> Deklaration verwendeten Namen 'onlineportal'.
>
> https://businessdivision.company.com/onlineportal/startseite
>
> Leider trifft das nicht auf die per ZMCL integrierten Zope Resource
> Packages zu.
>
> configure.xml
>
> <browser:resourceDirectory
>
>        name="static"
>
> directory="plugins/www"
>
>        />
>
> Die resultierendes URL enthält NICHT den in der _vh_ Deklaration
> verwendeten Namen 'onlineportal'
>
> IST:
> https://businessdivision.company.com/++resource++static/jquery/jquery-1.5.1.min.js
>
> SOLL:
> https://businessdivision.company.com/onlineportal/++resource++static/jquery/jquery-1.5.1.min.js
>
> Wie geht das, was muss ich berücksichtigen bzw. welche Workarounds
> schlagt ihr vor? Danke.
>
> Mit freundlichen Grüßen
>
> Dipl.-Ing. (FH) Sascha Gottfried
> Produktentwicklung IAS-Gruppe
> IAS Institut für Arbeits- und Sozialhygiene Stiftung
> Askanischer Platz 1
> D- 10963 Berlin
>
> Tel: 030/820015-553 (neue Telefonnummer)
> Fax: 03221/1085-904
>
> E-Mail: [email protected]
> <mailto:[email protected]>
> Web: http://www.ias-gruppe.de <http://www.ias-gruppe.de/>
>
>
>
> P*Bitte prüfen Sie vorher, ob ein Ausdruck dieser E-Mail wirklich nötig
> ist.*
>
> IAS Institut für Arbeits- und Sozialhygiene Stiftung
> Steinhäuserstraße 19, D-76135 Karlsruhe
>
> Sprecher des Vorstands: Arndt Kempen, Vorstand: Dr. Peter Wrogemann
> Vorsitzender des Kuratoriums: Prof. Dr. Dr. Norbert Gross
>
> Sitz der Stiftung: Karlsruhe, USt-IdNr.: DE 143609069
> Eingetragen ins Stiftungsverzeichnis des Regierungspräsidiums Karlsruhe
>
> Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte
> Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> die unbefugte Weitergabe dieser Mail sind nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
>
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.