You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/06/13 18:29:10 UTC

svn commit: r546950 - /lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml

Author: andreas
Date: Wed Jun 13 09:29:08 2007
New Revision: 546950

URL: http://svn.apache.org/viewvc?view=rev&rev=546950
Log:
Added docs about relative URLs and CSS links

Modified:
    lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml

Modified: lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml?view=diff&rev=546950&r1=546949&r2=546950
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/1_4/reference/link-management.xml Wed Jun 13 09:29:08 2007
@@ -157,9 +157,29 @@
       </p>
       <source xml:space="preserve">&lt;a href="http://cms.mysite.com/news.html"&gt;News&lt;/a&gt;</source>
       <p>
+        If you have configured the proxy transformer to use relative URLs, the link will be converted to
+        something like this:
+      </p>
+      <source xml:space="preserve">&lt;a href="../../news.html"&gt;News&lt;/a&gt;</source>
+      <p>
         Typically, the ProxyTransformer is applied right after the UuidToUrlTransformer.
         For more information on the ProxyTransformer, consult the API documentation.
       </p>
+    </section>
+    
+    <section>
+      <title>URLs in CSS Files</title>
+      <p>
+        URLs in <acronym title="Cascading StyleSheet">CSS</acronym> files are converted
+        to valid links automatically. In your CSS, you can just write
+      </p>
+      <source xml:space="preserve">div.news { background: url('/mypub/live/images/news.png') left top no-repeat }</source>
+      <p>
+        and, according to your proxy settings or context path, this will end up as one of these:
+      </p>
+      <source xml:space="preserve">div.news { background: url('/lenya14/mypub/live/images/news.png') left top no-repeat }</source>
+      <source xml:space="preserve">div.news { background: url('http://mysite.com/images/news.png') left top no-repeat }</source>
+      <source xml:space="preserve">div.news { background: url('../images/news.png') left top no-repeat }</source>
     </section>
     
   </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org