Keyword

Item in modal window

  • John-Eilif Eliassen
  • John-Eilif Eliassen's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 3 months ago - 8 years 3 months ago #155120 by John-Eilif Eliassen
Item in modal window was created by John-Eilif Eliassen
Hi, when i open a spesific article in a modal window, the stylesheet is not included... can someone please explain what im doing wrong? I even tried to add
<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?
Last edit: 8 years 3 months ago by John-Eilif Eliassen.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155129 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item in modal window
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • John-Eilif Eliassen
  • John-Eilif Eliassen's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 3 months ago #155131 by John-Eilif Eliassen
Replied by John-Eilif Eliassen on topic Item in modal window

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
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 3 months ago #155134 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Item in modal window
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • John-Eilif Eliassen
  • John-Eilif Eliassen's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 3 months ago #155135 by John-Eilif Eliassen
Replied by John-Eilif Eliassen on topic Item in modal window

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
  • John-Eilif Eliassen's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 3 months ago #155137 by John-Eilif Eliassen
Replied by John-Eilif Eliassen on topic Item in modal window
Placing and editing the component.php in my template folder worked perfectly. Thank you for your wizdom guys!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155147 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item in modal window
You 're welcome John :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • John-Eilif Eliassen
  • John-Eilif Eliassen's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 3 months ago #155173 by John-Eilif Eliassen
Replied by John-Eilif Eliassen on topic Item in modal window

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155179 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item in modal window
The mailto component, the item's form on the frontend and possibly other views specific to your template.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum