Forgot?

[SOLVED] Open internal links in Shadowbox?

Reply Topic
Link to this post 03 Jan 10

Is it possible for me to link to internal pages using the shadowbox? I have an idea for our portfolio we're working on - where you click an image and a lightbox "popup" opens of the article (no modules or surrounding template, just the article).

Can I achieve this with Ninja Shadowbox? Please excuse me if the answer is obvious - I for some reason can't figure it out!

-Zach

Link to this post 04 Jan 10

Hi Zach,

Yes this is possible.

Please compare these two pages:
Default link
Link with &tmpl=component added to it

Adding &tmpl=component (or ?tmpl=component depending on the type of link) will show just the Joomla component without any modules or template styling.

You should be able to link to any web page with something like this:


<a href="http://www.google.com" rel="shadowbox;width=600;height=600" title="My page">My page</a>

Let me know if you need more help.
Cheers,
Mark

Link to this post 04 Jan 10

Another quick question - does that work with SEO links or do I have to use the full ugly links?

Link to this post 04 Jan 10

Works with both, but with SEO links you need to use the question mark rather then the ampersand:

?tmpl=component

Link to this post 20 Jan 10

Mark,

I can't get it to work with SEO links - please see:

http://www.polarserve.com/1/work

The first link for recycle me I have set the link as follows:


<ul id="recycleMap">
<li><a href="contact?tmpl=component" rel="shadowbox;width=600;height=600" title="Recycle Me"></a></li>
</ul>

I have not coded shadowbox to the other links yet as I want to resolve this first - any advice is greatly appreciated.

Link to this post 20 Jan 10

Strange.

I'll do some testing on my own site, but in the meantime, try the following 3 URLs:


http://www.polarserve.com/1/contact?tmpl=component
http://polarserve.com/1/contact?tmpl=component
/contact?tmpl=component

Link to this post 21 Jan 10

Mark,

Using the full URL works fine - but will that effect how Google thinks of my page? I don't know much about SEO and was under the impression relative links helped rankings more.

-Zach

Link to this post 21 Jan 10

Glad to hear it's working Zach.

There is no difference between absolute and relative URL's as far as SEO is concerned.

Some people claim otherwise, but there has never been evidence produced to support their claims.

http://www.searchenginejournal.com/seo-internal-interlinking-relative-vs-absolute-urls/7000/

Google is smart enough to know that people link both ways and IMO it wouldn't make sense to penalise or reward the website based on this.

Cheers
-Mark

Home Forum Joomla Extension Support Ninja Shadowbox & Ninja ShadowPanel [SOLVED] Open internal links in Shadowbox?