nican VIP
Total posts: 392
24 Апр 2014 13:31

Hello, a non-exactly-cobalt-related question, more joomla-related...

I want to display on another site an i-frame of a cobalt record list, I want to hide the template, but preserve the css rules (which are contained in the template custom css file) is there a trick or a particular url to do it?

what I want to display in the i-frame is highlithed below

thank you

cobalt_iframe_events

Последние изменения: 16 Июнь 2014


pepperstreet VIP
Total posts: 3,837
24 Апр 2014 16:21

You can open the main content area by adding &tmpl=component to your Cobalt list URL.

By default this will use the component.php in your template folder.

So, if this is not used for any other special display, you might edit this file directly. Most likely it is used by modal popup windows e.g. mail-to etc.

I would consider to use your own file. You can copy the component.php and rename it to your liking: mycomponent.php

Remember to change the URL parameter accordingly: YourCobaltListURL&mycomponent.php

You can edit and add code to this file like you know it from your main index.php file:

  • add/remove stylesheets
  • add/remove javascript
  • load/unload J! head

Related links and infos:


nican VIP
Total posts: 392
24 Апр 2014 18:06

yuppi! Thanks for your help pepper :-)


pepperstreet VIP
Total posts: 3,837
24 Апр 2014 20:15

You're welcome!

Variation

BTW, you might also work with (1) common component.php file. Then add an additional parameter/variable like it is done with the "print" example. Maybe use "iframe" or something like that... attach it like in the "print" example.

Examine the URL for your extra parameter...
(search for jInput in Joomla docs, because jRequest is deprecated in the near future!)

Then use that parameter/value for conditional output.


nican VIP
Total posts: 392
25 Апр 2014 10:05

When I try to visit

http://www.eos-energia-olografica-sistemica.com/index.php?option=com_cobalt& ;tmpl=component&view=records&section_id=3

or

http://www.eos-energia-olografica-sistemica.com/index.php?option=com_cobalt& ;view=records&section_id=3&tmpl=component

I am always redirected to http://www.eos-energia-olografica-sistemica.com/eventi/contenuti/3-eventi

which is the same page but in SEF url mode why is this happening in your opinion?

I do have SEF urls activated, but this should not be the issue I guess, or am I wrong?

thank you


nican VIP
Total posts: 392
25 Апр 2014 10:06

pepperstreet VIP
Total posts: 3,837
25 Апр 2014 11:42

oloccina I do have SEF urls activated, but this should not be the issue I guess, or am I wrong?

Mh, strange. I think it should be treated like a new, separate URL...

Did you try without SEF? What happens then? Maybe the Cobalt router doesn't care about the appended stuff?

Definitely a question for "Sergey". Sorry, i have no idea at the moment.


Sergey
Total posts: 13,748
25 Апр 2014 11:45

oloccina When I try to visit

http://www.eos-energia-olografica-sistemica.com/index.php?option=com_cobalt& ;tmpl=component&view=records&section_id=3

or

http://www.eos-energia-olografica-sistemica.com/index.php?option=com_cobalt& ;view=records&section_id=3&tmpl=component

I am always redirected to http://www.eos-energia-olografica-sistemica.com/eventi/contenuti/3-eventi

You do not have Itemid in the URL.


nican VIP
Total posts: 392
28 Апр 2014 09:00

Sergey You do not have Itemid in the URL.

Oh, I see

anyway http://www.eos-energia-olografica-sistemica.com/eventi/contenuti/3-eventi?& ;tmpl=component is just fine

thank you


nican VIP
Total posts: 392
16 Июнь 2014 15:48

Yes, I just used ?&tmpl=component I had no time to study other better solutions, maybe the next time...

Работает на Cobalt