how to use getThemePath with images
Permalink
Hello,
I'm new to concrete5 and really love it so far. Can someone please help me with converting an HTML line to concrete5? Specifically, I need to covert the line below that references an image to something concrete5 can use. Should I change the "index.html" to my "default.php" file? How should the rest of the line look - do I insert a getThemePath somewhere in there? Thanks!
I'm new to concrete5 and really love it so far. Can someone please help me with converting an HTML line to concrete5? Specifically, I need to covert the line below that references an image to something concrete5 can use. Should I change the "index.html" to my "default.php" file? How should the rest of the line look - do I insert a getThemePath somewhere in there? Thanks!
<div id="logo"><a href="index.html"><img src="images/logo.jpg" alt="" /></a></div>
All images, styles, javascript, css, etc are referenced by:
<?=$this->getThemePath()?>/
Don't forget the forward slash
All areas are referenced by:
<? $a = new Area('Your name');$a->display($c);?>
No forward slash
Hope that helps
You could watching Andrews video?
http://www.concrete5.org/documentation/how-tos/designers/make-a-the...
Steev