Search

This is my code:

<entry id="19">
    <title>test title</title>
       <content><![CDATA[
        <p>
            This is the first article
        </p>
        <img src="{$workspace}/images/first_article.jgp" id="IMG_13" alt=''/>
]]></content>

I am wondering how can I render the img tag "{$workspace}" inside the page. It is currently rendering as plain text html.

You could just use

<img src="/workspace/images/first_article.jpg" ...

If you really want to render {$workspace} then you will have to write a template to do it using string functions.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details