Shape 5

Joomla Free Templates => Design Control - Free => : vladimirmi December 27, 2014, 04:08:49 PM



: How to refer to specific place in article from menu
: vladimirmi December 27, 2014, 04:08:49 PM
Hello all,
it is perhaps banal problem for anyone but I really dont know how to do reference in specific place in article from Main menu in Design control template.

For example in HTML I can write

:
<a href="Example1">Example 1</a>
.
.
.
<p id="Example1">This is place for Example 1</p>

and click to get directly to this place.  But I really dont know how to set this reference in Main menu item  >:(

Can anyone help? Every help is much appreciated! Thank you in advance.

Vladimir


 


: Re: How to refer to specific place in article from menu
: mikek December 29, 2014, 08:01:56 AM
Hello,

If you want it to snap to that ID you have to make the menu item an external url and set it to #Example1

The snap to function in html only works when a # is present.


: Re: How to refer to specific place in article from menu
: vladimirmi January 26, 2015, 04:25:31 AM
Hello,

If you want it to snap to that ID you have to make the menu item an external url and set it to #Example1

The snap to function in html only works when a # is present.

Hello,
thank you for your help. I found this way in documentation but it doesnt work propably I do something wrong.
What I need:
I have big full screen intro slider on my pages and content is below this slider.
eg. here: http://www.misik.cz/index.php/vizazistika/


 If I click on menu item I would like to get directly below slider to begin of text content.
for example here: http://misik.cz/index.php/vizazistika/vizazisticke-sluzby

I put on the beginning of the content this code

:
<h2 id="vizazisticke-sluzby" class="highlight1_text">Viz??istick? slu?by</h2>

and I set external URL menu item to call this place:

url: index.php/vizazistika/vizazisticke-sluzby.html#vizazisticke-sluzby

Please look at the disclosed images.

I think I do all OK according to documentation but it doesnt work.

Can you help me some way? Help is very much appreciated.
Thanks in advance.
Vladimir



: Re: How to refer to specific place in article from menu
: fstromsv January 26, 2015, 08:21:22 AM
Hi vladimirmi.

Thought maybe I could drop in a line or two.  I used the procedure, but used full URL to point to the right place.  Since the site is still very much in development it is not available to the outside yet, so I even used the IP.  This is the URL I used for the external link in the menu:

http://192.168.1.3/joomla/index.php/about-us#Company_History

In the article I then inserted some code at the place where I wanted to jump (an extra <p> </p> to get some extra space):

<p id="Company_History"> </p>
<p> </p>
<h1>Company History</h1>

Worked fine here.

Regards
fstromsv


: Re: How to refer to specific place in article from menu
: vladimirmi January 26, 2015, 09:27:11 AM
Hi,
thank you very much for your help.

I did some changes regarding your post but unfortunately it doesnt work for me :(

Thanks once again.

Vladimir


: Re: How to refer to specific place in article from menu
: mikenicoll January 26, 2015, 11:15:39 PM
Hello,

This can either be done with a menu item linked to a specific position via an External URL or you can use the anchors option built into Joomla:

http://www.cloudaccess.net/joomla-knowledgebase/96-joomla-3-1/article-manager/500-adding-anchors-joomla-3-0.html