[SOLVED]Get this Through Your Validator and Smoke it?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
wibblywobbly
New Member
New Member
Posts: 5
Joined: Thu Mar 05, 2009 11:43 am

[SOLVED]Get this Through Your Validator and Smoke it?

Post by wibblywobbly »

Hello All!

I'm wanting to get every page of my website through the W3C Validator

I've got an error on this page and I can't get rid of it:

http://www.amieburnswalker.com/index.php?page=photos

Any advice?

My template for the Album Module:

Code: Select all

{if $pictureid !=0}
{* Big Picture *}
<div style="text-align:center">
<p class="bigpicturecaption"><br />
<span class="bigpicturenav">
{if $link.picture.previous}<a href="{$link.picture.previous}" title="Previous picture">< Previous</a>{/if}
 <span class= "albumpicturecount">( Picture {$picturenumber}/{$picturecount} )</span> 
{if $link.picture.next}<a href="{$link.picture.next}" title="Next picture">Next ></a></span>{/if}
</p>
<a href="" onMouseOver="SMR_setLink(this);" target="_blank"><img src="{$picture->picture}" alt="{$picture->name|escape:'html'} - {$picture->comment|escape:'html'}" onload="SMR_resize(this, {$max_image_size});" title="{$picture->name|escape:'html'}  - {$picture->comment|escape:'html'}" /></a>
</div>
{/if}

{* Album List *}
{if !$album}
<ul class="albumlist">
	{foreach from=$albums item=album}
	<li class="thumb">
 	<a href="{$album->link}">
<img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" title="{$album->name|escape:'html'} - {$album->comment|escape:'html'}"{$album->autothumbnailsize} /></a>
<p class="albumname">{$album->name}<br />
<span class="albumpicturecount">({$album->picturecount} images)</span><br />
<span class="albumcomment">{$album->comment}</span></p>
</li>
	{/foreach}
</ul>
{else}
{* Photo List *}
	{if $pagecount>1}
	<p class="albumnav">
		<a href="{$link.page.first}" title="first page"><< </a>
		{if $link.page.previous}<a href="{$link.page.previous}" title="previous page">< </a>{/if}
		page {$pagenumber}/{$pagecount}
		{if $link.page.next}<a href="{$link.page.next}" title="next page"> ></a>{/if}
		<a href="{$link.page.last}" title="last page"> >></a>
</p>
	{/if}
<ul class="picturelist">
	{foreach from=$pictures item=picturesrow}
	    {foreach from=$picturesrow item=onepicture}
	    <li class="thumb"><a href="{$onepicture->picture}" rel="lytebox[{$album->name|escape:'html'}]" title="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}- {$onepicture->comment|escape:'html'}{/if}"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" title="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" /></a>
   	   </li>
      {if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
	    {/foreach}
	{/foreach}
</ul>
{if $picturecount==0}No image{/if}
{/if}
{if $picture->id>0}
{/if}

Any advice would be greatly appreciated!

Many Thanks!
Last edited by wibblywobbly on Sun Mar 15, 2009 1:53 am, edited 1 time in total.
Webmist

Re: Get this Through Your Validator and Smoke it?

Post by Webmist »

Are you getting a invalid check on your album list. Looks like you need to encase your in a parameter such as or or .
wibblywobbly
New Member
New Member
Posts: 5
Joined: Thu Mar 05, 2009 11:43 am

Re: Get this Through Your Validator and Smoke it?

Post by wibblywobbly »

I figured it out...

I'd inserted the album module inside the content of a page and so the editor automatically put it inside tags. The validator didn't like this.

To solve it I placed the module code "{cms_module module='album' categories='1,' albums='1'}" inside the template of the page,rather than in the content.

Thanks for your help on this!

-- Wibbly
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: [SOLVED]Get this Through Your Validator and Smoke it?

Post by Dr.CSS »

You could have just unticked the wysiwyg under the edit box and removed the ...
Post Reply

Return to “Layout and Design (CSS & HTML)”