hi i have a question
I have 1 template
and i want that every page loads his own image in the template using <img /> tags.
like for home it need home.jpg
for about about.jpg
etc.
can someone please tell me how ?
-
☆ A M B ☆
- 24,524 Posts
Or simply use [*alias*]. Thus,
<img src="assets/images/[*alias*].jpg">
would produce
<img src="assets/images/home.jpg>
Can I use this trick in my CSS?
background: #fff url(assets/templates/site/images/[*alias*].jpg) no-repeat;
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
I don’t think you can do that trick in the CSS, since the CSS is included and not parsed by MODx
Thanks a lot pierun and bunk...
I will give this a try tomorrow first thing....
today I have to watch the Euro Final!
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner