PDA

View Full Version : Content on Front Page Only; Revisited


smugwimp
03-19-2006, 10:14 AM
Hiya!

I've scoured through the forum for a way for links to appear *only* on the front page, and I have found it through the use of:

{if $category.ID eq 0}

or

{if $category.ID == 0}

and that works fine for most things BUT....

If I use the search, on the "returns" page the Front page links still remain. I don't know if I should look into smarty or something else but basically the command I'm looking for is

{if category.ID =0 and only 0 and absolutely nothing else no way no how}

I'll keep looking, but if someone pops up with an answer before I do, I'd appreciate it!

Any ideas?

cheers!

Smug

ing
03-19-2006, 10:23 AM
Hi,

Try this...

Content visible to registered users only.

:)

smugwimp
03-19-2006, 10:28 AM
I guess I didn't scour enough, lol!

I found an additional (and very functional) answer in this post:

{topic moved or deleted}

I decided not to delete my question, in case someone else does a search. perhaps one or the other answer will pop up...

cheers!

Smug

smugwimp
03-19-2006, 10:30 AM
Sorry ing! you must have been posting while I replying to myself!

Thanks for the fast response, and yes, you nailed it!

Imagine my surprise when, thinking I was the only one up here, not only did I get a response sooooooo fast, it was a good one!

cheers!

Smug

ing
03-19-2006, 10:34 AM
No worries. Glad you got it sorted out.

:)