How to link to another module on a page?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/14/2011 5:22:34 AM
Gravatar
Total Posts 17

How to link to another module on a page?

I think it's a simple question. I haven't found an instant answer so decided to ask here to avoid workarounds.

I need to create a link in one html module to another on the same page. How to accomplish this in the proper way (could probably create an anchor in the target module html, but how to link to its title?)?

Greetings,

Maciek

6/14/2011 5:39:28 AM
Gravatar
Total Posts 108
Community Expert

Re: How to link to another module on a page?

I don't understand what you are asking, the html module only show html content you don't have any access to the specific module other than the edit or config links.

Please explain better your use case.

 

 

6/14/2011 6:21:03 AM
Gravatar
Total Posts 17

Re: How to link to another module on a page?

1. I'm adding an Html module named "Module 1" to a page.

2. I'm adding an Html module named "Module 2" to the same page., let's say below.

3. I'd like to include a link in "Module 1", which, when clicked navigates to the "Module 2". I expect to implement this using an anchor, but the "Module 2" title should be the anchor. I suspect I could alternatively create an anchor in the content of "Module 2", but I'd prefer to navigate to a module, not a specific anchor inside it.

Hope it's clearer now.

Greetings,

Maciek

6/14/2011 2:23:21 PM
Gravatar
Total Posts 18439

Re: How to link to another module on a page?

Hi Maciek,

If you view the source of the page you should see that the ModuleTitle already renders an anchor in the title like this:

<a id='module38' class='moduleanchor'></a>

​where the numeric part is the module id, so by seeing the id of the anchor you should be able to link to it.

Hope that helps,

Joe

6/16/2011 1:29:19 AM
Gravatar
Total Posts 17

Re: How to link to another module on a page?

Thanks, it works.

BTW: This can be a new small feature request:

Maybe it would be reasonable to add an "anchor" property to a module to avoid digging into raw HTML, instead beeing able to configure it during module editing. 

It can be a quite common to create links like that. 

 

Thanks,

Maciek

You must sign in to post in the forums. This thread is closed to new posts.