17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1294 Views |
-
Questions on added ImageField and Login/Lost Password Templates

7 November 2007 at 1:57pm
Okay I have two questions to ask -
First and foremost, I followed the second tutorial, extending a basic site, and at the bottom it talks about adding a "Staff" section with an associated image for each page. I've followed this tutorial and inserted the $Photo variable into my template/theme. However, if there isn't a photo that is defined when creating that page, the $Photo variable prints:
"<img src="/build/assets/" alt="" />", which results in a broken link. I'd like to prevent this, what's the best way?
Also, my second question, if I want to change the layout for the Lost Password and Log in pages what do I do? Do i create, for example, a LostPassword.ss and a LogIn.ss in my Layout folder?
Thanks,
Conrad -
Re: Questions on added ImageField and Login/Lost Password Templates

7 November 2007 at 2:25pm
You should be able to use the "if" construct in the templates, which is mentioned in the tutorials?
-
Re: Questions on added ImageField and Login/Lost Password Templates

7 November 2007 at 2:28pm
Yes if what though? doing <% if $Photo %> translates to:
<% if <img src="/build/assets/" alt="" /> %>
Which results in an error. -
Re: Questions on added ImageField and Login/Lost Password Templates

8 November 2007 at 9:58am
You don't need the $ - it's <% if Photo %>
| 1294 Views | ||
|
Page:
1
|
Go to Top |



