Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Displaying template images in Dreamweaver

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

Page: 1
Go to End
Author Topic: 2256 Views
  • Moose
    Avatar
    Community Member
    26 Posts

    Displaying template images in Dreamweaver Link to this post

    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

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Displaying template images in Dreamweaver Link to this post

    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

  • Moose
    Avatar
    Community Member
    26 Posts

    Re: Displaying template images in Dreamweaver Link to this post

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

    2256 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.