[SOLVED] Anchor: Only reveal the URL

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
opawaldburger
Forum Members
Forum Members
Posts: 94
Joined: Tue Nov 04, 2008 2:10 pm

[SOLVED] Anchor: Only reveal the URL

Post by opawaldburger »

Dear Community.

I want to have an "Go to Top"-Button included into my site. Therefore the anchor-tag is just fine. The problem is, that I need to include an "id" into the code, which is not supported by the module.

So either you know a way how to include an id into the anchor-tag...

Code: Select all

{anchor anchor='top' class="my_class" id="myid" text="Go to top"}
OR you know a way of how to only reveal the URL via the anchor-tag...

Code: Select all

<a href="{anchor only-get-the-URL}">Go to top</a>
OR you have another possibility for me ;-)

Greets,
Opa
Last edited by opawaldburger on Mon May 03, 2010 12:42 pm, edited 1 time in total.
- Sir, we are sourrounded!
- Excellent, now we can attack in any direction!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Anchor: Only reveal the URL

Post by Dr.CSS »

May I ask why you need an ID?...
cyberman

Re: Anchor: Only reveal the URL

Post by cyberman »

Have yout tried to use the onlyhref param?
User avatar
opawaldburger
Forum Members
Forum Members
Posts: 94
Joined: Tue Nov 04, 2008 2:10 pm

Re: Anchor: Only reveal the URL

Post by opawaldburger »

You may ;)

I use a script to let a div appear in the right bottom corner after one scrolled down 1000 pixels, using Dojo. When the user scrolls down the attribute opacity is set from 0 to 1. Here's the code

If you know how to modify the Dojo-Script that it works with classes, it would be fine, too. But since I have no idea, I tried another way (which didn't work actually...)

Greets,
Opa
- Sir, we are sourrounded!
- Excellent, now we can attack in any direction!
User avatar
opawaldburger
Forum Members
Forum Members
Posts: 94
Joined: Tue Nov 04, 2008 2:10 pm

Re: Anchor: Only reveal the URL

Post by opawaldburger »

@cyberman: I did, but I tried it again now. I am such a stupid person. I just inserted the onlyhref param, but forgot to set it to 1!

Thanks you two for your help!

Greets,
Opa
- Sir, we are sourrounded!
- Excellent, now we can attack in any direction!
Post Reply

Return to “CMSMS Core”