Hello,

I am working with colorbox node, and first I love this module. However, there is an error that I am experiencing and I was wondering if there was a work around. I use URL aliases with my nodes for SEO sake, and when I create a colorbox-node link I have to use the node/##. This is not a problem when I am creating these links by hand, however I am using views to create a content type list page. When I set the content to display in colorbox it uses the URL alias, and that causes me to get an error (see attached image), is there a way using views or do I have a setting wrong with colorbox.

Any help would be appreciated.

CommentFileSizeAuthor
error.png81.33 KBamiller86

Comments

iLLin’s picture

D/L the latest version and see if you stil have these issues. Your a few versions behind.

amiller86’s picture

Downloaded the latest version. If you use URL aliases then colorbox-node will give the AJAX error i attached above.

amiller86’s picture

update....

The url alias doesnt seem to be the problem, if i create the link by hand using the alias it works. However when I turn this feature on in views it outputs the wrong URL:

/?q=node/22&width700&height=600

when its suppose to be /?q=node/22?width700&height=600

iLLin’s picture

Hmm, you have something setup wrong. The links are built with the l() function. It looks like you have mod rewrite turned off or something.

amiller86’s picture

Ok I don't really know where that is, but I could have clicked a setting I didn't mean to. Where would I find the mod rewrite option

iLLin’s picture

Its your server, but there maybe a problem when mod rewrite is turned off. Basically there is no more "q" action and your URL will look like this myserver.com/node/11 or myserver.com/content/my-title-here

I can look at turning off mod rewrite when I have time to test, but dunno why its not working with it turned off.

amiller86’s picture

But it works when I apply the colorbox-node class to a link by hand?

iLLin’s picture

Then do it by hand.

amiller86’s picture

I am trying to use views to create a list page that will open up the content in the colorbox. I will just omit the page until I can figure something else out

Thanks for the help

iLLin’s picture

Status: Active » Closed (works as designed)