Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
back to top question
nico
the client wants a "back to top" link in between <items> to appear if the page generated is too long (lots of scrolling). Is there some sort of solution or quasi solution for this? I know it's dependant on lots of things like browser, font size, charmax, etc. But was wondering if anyone has run into this sort of thing before.
Thanks,
Nico
Find more posts tagged with
Comments
Migrateduser
I believe that is a simple HTML issue. Just add <a href="top">Back to Top</a> in the tpl whereever you want it to appear (can be added within <iterate> and/or in between <iw_value name... /> tags) and <a name="top"></a> at the top of the page. If your question is to insert this 'only if the page reaches x length', then you would have a tougher issue.
nico
yeah it's the tougher issue
Migrateduser
It's not that tough. You know what sort of things you have on your page, so you could determine what is an acceptable threshold for all of your template supplied things, and use an iw_perl block to add the lengths of those things and compare it to the threshold.
Mind you, you don't know how the user is going to have their resolution set, what size their browser window is, etc. so you can only make a reasonable guess at what point you need to add the link.