Hi,
Is it possible to set-up an internal anchor links on a page to tabbed content on another page using csm_selflink? (or at all for that matter?)
I was told this is not possible, but thought I would ask for a second opinion.
Thank you!
Anchor links in tabbed content with cms_selflink
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: Anchor links in tabbed content with cms_selflink
Do you mean some automated way or just manual?
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: Anchor links in tabbed content with cms_selflink
Manually is fine with me. I don't have that many instances of this.
If there is an automated way it would be interesting to know that out of curiosity.
If there is an automated way it would be interesting to know that out of curiosity.
Re: Anchor links in tabbed content with cms_selflink
Maybe I'm thinking too simple:
(CMSMS 1.12.1)
(CMSMS 1.12.1)
Code: Select all
{cms_selflink page="shadowmenu-tab-2-columns" dir=anchor anchorlink="anchor-test"}-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: Anchor links in tabbed content with cms_selflink
Thank you. I do have them set up that way currently. The anchorlink will go to the correct page, but doesn't go to the location on the correct tab.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Anchor links in tabbed content with cms_selflink
You will need javascript to set that up. There is no 'standard' way of doing that.
On load you will need to test if there is a hash in the document.location
if there is:
- find that link
- find the parent tab of the link
- make the tab visible
- hide the other tabs
- scroll to the link
On load you will need to test if there is a hash in the document.location
if there is:
- find that link
- find the parent tab of the link
- make the tab visible
- hide the other tabs
- scroll to the link
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am

