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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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