The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Feb 05, 2011 5:40 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 27, 2011 6:51 pm
Posts: 10
Hey guys,

For my site I'm using an AJAX effect on my links to dynamically replace the content pane of my site with whatever the user has selected - eventually going to do this with some slideDown animations - but in order to get it to work properly I needed to output the article "naked" without my modules wrapping it - via

Code:
&amp;tmpl=component


This works great if I am using normal links, but with SEF turned on it doesn't seem to - generating an error. I am thinking this is because the link is being generated as:

friendlylink.html&tmpl=component

Which is causing trouble. I took this code exactly from the switch statement for popping up articles - so I highly doubt the code is wrong... maybe I am just missing something? If anyone can reproduce it would be much appreciated.


Last edited by spent85 on Sat Feb 05, 2011 7:57 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Sat Feb 05, 2011 7:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 27, 2011 6:51 pm
Posts: 10
ISSUE SOLVED:

Silly me - when the code is in SEF there are no variables in the url - as such tmpl=component would be the first. Using a question mark instead of the ampersand fixed all.

friendlylink.html?tmpl=component


Cheers

-zach


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 12:32 pm 
Joomla! Intern
Joomla! Intern

Joined: Tue Jun 29, 2010 3:30 am
Posts: 68
Thanks for posting your problem and solution spent85!
I am having an issue with &tmpl=component as well.
When I choose a url on my site and add that on the end, it should just show the raw/untemplated component as you stated but it gives me a 404 error.
Here is the URL http://www.duckjunkies.com/migration-iframe.html&tmpl=component
When added to my JomSocial community, it doesn't strip it to the raw component but it does work when added to Gary's Cookbook.
I have sho404sef activated for the cookbook and the map but not the community so I am not sure it the SEF is relevant to my problem or not....

I have Joomla 1.5

_________________
New to Joomla! but trying really hard to figure things out on my own! If I am asking here, I am likely frustrated, embarrassed or otherwise not happy. Please be easy on me and I will try to get back to it on my own without being a pest. ;)


Top
 Profile  
 
PostPosted: Thu Jan 26, 2012 1:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 26, 2012 12:53 am
Posts: 5
Thanks for the fix!

I tested the tmpl=component fix with SEF and it works. The thing is, the forum for which I need to apply the fix is embedded with the website.

What it looks like right now (without AJAX working)
http://www.cyclisme.umontreal.ca/index.php/forum

When I try the fix, only the component shows (but AJAX works)
http://www.cyclisme.umontreal.ca/index.php/forum/?tmpl=component

Here is where I need your help!

Does anyone know how to proceed to make AJAX work while keeping the website as it is right now? i.e. Applying the component's template only to the forum and make it work on every page of it.

Thank you so much!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group