Link issue

Permalink 1 user found helpful
Hi there, I was wondering if there is a way to fix this so here it goes:

I add a content block then add an image + text to it. After that I insert a link to the said image + text. Now here comes the issue.

The link looks something like this:

http://localhost/concrete/index.php?cID=75...

But, when I update the block and exit edit mode and hover over the link, it turns into:

http://localhost/concrete/index.php/about...

They both go to the same page, that wouldn't be an issue if I didnt have the other problem with this jQuery plugin called Spritely. What it does is it animates sprites and background images.
But, when my page address looks like:

http://localhost/concrete/index.php/about...

the plugin doesn't work for some reason
but when it looks like:

http://localhost/concrete/index.php?cID=75...

it works!

That's why I need the link to go to the "cID=75" address instead of the "about" one.

Any help with this would be greatly appreciated,

thanks in advance.

EDIT:

Here is the explanation with screenshots as requested:

http://yfrog.com/0opicture1ynkp...

Here you can see the the link in the address bar, when it looks like that, the clouds slowly move to the right while the plane and the birds move in random directions.
If it were to look like:

"http://localhost/concrete/index.php/wellness/terme-olimia/"

it would still be the same page, but the clouds and the birds + plane wouldn't be animated.
..................................

http://yfrog.com/n0picture2pp

This page contains the image that links to the page from the first screenshot.

after inserting the link of the page to that image, here is what happens:

http://yfrog.com/n8picture3fp

http://yfrog.com/3rpicture4ap

http://yfrog.com/1npicture5dfp

The plugin on that page wont work if it looks like that :(

Is there a way I can stop it from doing that or perhaps another solution would be possible...

...cant seem to attach any files to this post for some reason so I posted the links to the screenshots instead

Fulbright
 
agedman replied on at Permalink Reply
agedman
Thanks for taking the time to explain this so thoroughly, but the links you posted are referencing your localhost, so they're not accessible to the community. If the site is live, could you post the public urls? -- or if not, just attach screenshots to illustrate your points?
Fulbright replied on at Permalink Reply
Fulbright
Thanks for your reply.

The links that I have posted here are just examples that I used to explain my problem, I didn't expect them to work :)

Unfortunately, the site is not live yet and I don't have time right now to post some screenshots. I'll post them first thing in the morning (1:30 am here atm).
Fulbright replied on at Permalink Reply
Fulbright
updated with screenshots
agedman replied on at Permalink Reply
agedman
I see your point now -- sorry for missing it earlier... Do you have pretty urls enabled in Dashboard > Sitewide settings? Have you tried turning it on (and pasting the code into .htaccess) -- or turning it off if it's on?

I'll try installing Spritely to see if I can understand this better.
agedman replied on at Permalink Reply
agedman
I see what you mean about the link being changed in the content block from something likehttp://localhost/concrete/index.php?cID=75... to e.g.http://localhost/concrete/index.php/about/... I don't think there's a way to override that without hacking the content block.

However, I haven't been able to reproduce the issue you're seeing with Spritely -- but I may have used a different approach to implement it. I basically hard-coded the css, javascript and html for the stage into the elements/header.php for my template. I did it that way so it would be easy to hide the absolutely positioned stage when I'm in edit mode.
agedman replied on at Permalink Best Answer Reply
agedman
Hi I got an email with your last post, but I don't see it here. Maybe you deleted it. Anyway, I think it's simply not finding your javascript. So all you should need to do is:
1. make sure all your images and javascript are in your theme path (e.g. /themes/mytheme/js/ and /themes/mytheme/images/ ) and then
2. use <?php echo $this->getThemePath()?>/ to specify the paths to ALL your Javascript files and images just like you're doing with your logo image. Specifically: in the script src attribute for the spritely library and the background image url in your CSS.

Also, you probably shouldn't include the jquery library in your header. That gets included in every page by default by C5 in the call to <?php Loader::element('header_required'); ?>
Fulbright replied on at Permalink Reply
Fulbright
Thanks a lot, you helped me so much, I appreciate it. It seems this was indeed the problem.