- Posts: 40
COMMUNITY FORUM
Item in modal window
- John-Eilif Eliassen
-
Topic Author
- Offline
- Senior Member
<style>#THESTYLE {awesome-stuff:9999px;}</style>
in the article source code, but that style was not included. I appreciate any answers that might help me find the solution.
<a class="modal hasTooltip" href="index.php?tmpl=component&option=com_k2&view=item&id=57" rel="{handler:'iframe',size:{x:1200,y:900}}" data-original-title="Tooltip text............">Les rutinen for bestilling</a>
Am i doing anything wrong?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This part of the URL is the culprit. - tmpl=component. It is enforcing the component template file instead of the normal (index.php) template file.
Please Log in or Create an account to join the conversation.
- John-Eilif Eliassen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Krikor wrote: Hello,
This part of the URL is the culprit. - tmpl=component. It is enforcing the component template file instead of the normal (index.php) template file.
If i remove the tmpl=component it shows the whole site, with menu and everything inside the modal. I only want the article div. Where can manually add my stylesheet to the <head> that is produced by the component-iframe ?
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
- Posts: 169
By adding the tmpl=component parameter on your url you are using the templates/[YOUR_TEMPLATE]/component.php template file. You can add your stylesheet to this file.
Please Log in or Create an account to join the conversation.
- John-Eilif Eliassen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Teo wrote: Hi,
By adding the tmpl=component parameter on your url you are using the templates/[YOUR_TEMPLATE]/component.php template file. You can add your stylesheet to this file.
I understand! I thought it was the components core file, which i couldnt figure out how to edit! I will try this. I did not have a component.php in my template-folder, will it them go to system folder and fetch the component.php? I copied it from there to my folder and will try now.
Thanks a lot for the tip!
Please Log in or Create an account to join the conversation.
- John-Eilif Eliassen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- John-Eilif Eliassen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Krikor wrote: You 're welcome John :)
May I ask one other question, what else uses the "component" file?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.