Can one do an "if, else" for the [-- PrevNext --] tag

General ShopSite user discussion

Can one do an "if, else" for the [-- PrevNext --] tag

Postby Mister.44 » Sun Jan 15, 2006 4:52 pm

Well - the [-- PrevNext --] isnt alwasys pretty - and it isnt always needed.
Is it possible to have an "if,else" statement so that if there are less than
the needed number of items for pagenation, it wont display.

Something like this:

[-- IF PrevNext --]
<div>[-- PrevNext --]</div>
[-- ELSE --]
#do nothing
[-- END_IF --]

I tried it once - and it didnt work - but I thought i would ask the experts

Thanks!
------------------------------------------------------------------------------------------------
- Steve Novak, The Man in the Machine! (AKA Mister.44)
------------------------------------------------------------------------------------------------
Web design - From the FUTURE! --- www.robot44.com ---
Choose the Robot for your Web Design, Graphic Design, and Creative
Consulting challenges.
Ph: (816) 737-8378 - Email: robot44@robot44.com
Mister.44
 

Re: Can one do an "if, else" for the [-- PrevNext --] tag

Postby jim » Mon Jan 16, 2006 10:10 am

There is no "if,else" with the [-- PrevNext --] tag.

Have you tried modifying the style associated with the tag to change how
it is displayed?

Jim

Mister.44 wrote:
Well - the [-- PrevNext --] isnt alwasys pretty - and it isnt always needed.
Is it possible to have an "if,else" statement so that if there are less than
the needed number of items for pagenation, it wont display.

Something like this:

[-- IF PrevNext --]
div>[-- PrevNext --]</div
[-- ELSE --]
#do nothing
[-- END_IF --]

I tried it once - and it didnt work - but I thought i would ask the experts

Thanks!
------------------------------------------------------------------------------------------------
- Steve Novak, The Man in the Machine! (AKA Mister.44)
------------------------------------------------------------------------------------------------
Web design - From the FUTURE! --- www.robot44.com ---
Choose the Robot for your Web Design, Graphic Design, and Creative
Consulting challenges.
Ph: (816) 737-8378 - Email: robot44@robot44.com

jim
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 20 guests