Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Displaying template images in Dreamweaver

Go to End

3 Posts   2771 Views


Community Member, 26 Posts

2 February 2009 at 1:00am


I'm using Dreamweaver as the editor for my .ss templates and struggling to figure out how to get it to recognise the correct path to the images (given that the base tag is only written when the page is rendered. I'd appreciate any assistance!



Community Member, 501 Posts

2 February 2009 at 3:27am

Edited: 02/02/2009 3:27am

assuming you're talking about images in themes/yourtheme/images you could do something like

<img src="$ThemeDir/images/myimage.jpg" alt="" >

When they're dynamic - set through the cms - this of course is not necessary.

EDIT: just noticed this is not really an answer to your question :)


Community Member, 26 Posts

2 February 2009 at 10:19pm

Thanks anyway but you're right - it doesn't really answer my question! It's not really a huge issue - I can just do the layout as if it was an html file in the site root and then find and replace the image paths. Would just be nice to have WYSIWIG on the templates in case things go haywire while integrating the SS tags...