1 users online. Create an account or sign in to join them.Users
Static pages as sections: weird output and an extra doubt
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
Fixed the extra stuff problem:
<xsl:template match="data"> <xsl:copy-of select="static-pages/entry/content/*" mode="html"/> </xsl:template>
The problem was my poor knowledge of XSL :D
Now I need to put the value of {$workspace} in the content that comes from the section entry. Any advice?
thanks.
I found the solution here: http://symphony-cms.com/discuss/thread/73671/2/
Instead of putting {$workspace} in the section content, I just replace img srcs starting with /
Create an account or sign in to comment.
Hi all!
I am developing my first site in symphony. The weird thing is that I am having some difficulties with my static pages approach (the rest of pages work fine).
Here is what I did:
Install the RootPageParams extension; create a "Static pages" Section with title, content and path fields; create a "Static page" datasource, that grabs the path from the url and filters and create a "Static pages" Page which loads the previous datasource.
Actually everything works fine except for two things:
I get a value-of dump of all the page params which I don't know where it comes from just before the actual content, and there is a "events" element before the end of the body element, in a HTML comment.
I would like to know how to replace {$workspace} from the section content with its actual value.
I can post my XSL stuff if it can help, but it's pretty simple, master.xsl is a layout with apply-templates, and static.xsl is this:
Thanks a lot in advance.
PS: Sorry for the post formatting, but something is wrong with the editor and I couldn't add a [bulleted | numbered] list