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.

General Questions /

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

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

Displaying template images in Dreamweaver


Reply


3 Posts   2320 Views

Avatar
Moose

Community Member, 26 Posts

2 February 2009 at 1:00am

Hi

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!

Thanks

Avatar
dio5

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 :)

Avatar
Moose

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...