PDA

View Full Version : I need an "if" statement....


vkaryl
08-23-2005, 01:20 AM
I have a problem with validating the code in my directory on the Links page (uh - this is OUTSIDE the problem of number IDs, btw).

This section of code causes an empty <ul> tagset only on the Links page, due to the fact that on that page there are no cats or subcats. Relevant code:

Content visible to registered users only.

So I need an "if" statement to tell this section of code that when there aren't any cats or subcats (in other words, the Links page only), it shouldn't parse.... and I hope that makes sense to someone like you, Casey - or yktan! [[Needless to say, I hope, is that I have moved things around within this container-system everywhere possible to no effect other than borking the display and still not validating, and this seems to me to be the only option to obtain validation.]]

vkaryl
08-23-2005, 09:30 PM
Update:

I've done a sort of kludgy workaround that fixes everything validation-wise EXCEPT the numeric link IDs.

I moved this to linkpage.tpl from main.tpl and enclosed it in {strip} tags:

Content visible to registered users only.

I moved this from further down in the code on main.tpl to ABOVE the "{* Display categories heading if not on homepage *}" line:

Content visible to registered users only.
(Note the include call for linkpage.tpl, and the movement of the Featured Links section here.)

And I enclosed the js for the link clicks count in tags (validator required it, otherwise it borked there, but it makes no difference in display on my setup).

Voilá! Validating except for the numeric IDs.