[solved] FC 1.5.x (r889) mod_flexi load css [EXPLAINED]

More
12 years 7 months ago #18881 by Rehne
hi ggppdk,

of course i've seen it
but something goes wrong
I use the same settings/params for FC 1.5.5 r607 and FC 1.5.6 r890
but in version 1.5.6 r890 no css file will be loaded as previously described, as I have described earlier ... look at the pictures

I just do not understand something or overlooked something :ugeek: ???????
Attachments:

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

More
12 years 7 months ago #18889 by ggppdk
I can not duplicate the behavior you described,
please tell me joomla version and PHP version.

Replace code in mod_flexicontent.php with this and test (also remove code from tmpl/news.php):
Code:
if ($add_ccs && !$caching && $layout) { if (file_exists(dirname(__FILE__).DS.'tmpl'.DS.$layout.DS.$layout.'.css')) { // active layout css $document->addStyleSheet(JURI::base(true).'/modules/mod_flexicontent/tmpl/'.$layout.'/'.$layout.'.css'); } } if ($add_ccs && $caching && $layout) { if (file_exists(dirname(__FILE__).DS.'tmpl'.DS.$layout.DS.$layout.'.css')) { // active layout css echo '<link rel="stylesheet" href="'.JURI::base(true).'/modules/mod_flexicontent/tmpl/'.$layout.'/'.$layout.'.css">'; } }

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 7 months ago #18899 by Rehne
first again ... thank you for your help

Joomla 1.5.23
PHP 5.2.9

i've tried your tips
but it has nothing changed

but while this i've played around a bit
and discovered the problem without understanding it

to explain
i use the Flexi module serveral times on the start page
for example, to display the latest posts from the category XXX and latest posts from the category YYY

the modules are integrated into one articel/item via modulesanywhere (nonumber extension)

in the module manager i set the module to the position 'content'
i use this position to show modules in the content area directly
in my joomla template in this position anything is assigned to it (i.e. there is no statement as <jdoc:include type="modules" name="content" style="none" />) .... that seems to be the problem
if i use this position in the template (<jdoc:include type="modules" name="content" style="none" />) the css file is loaded

in version 1.5.5 r607 this has played no role !!??

Regards

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

More
12 years 7 months ago #18904 by ggppdk
Remove code that adds the css file in file mod_flexicontent.php

and only leave the code inside th file
/modules/mod_flexicontent/tmpl/news.php
without the if stuff.

This way the file will always be inserted inside the body.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 7 months ago #18910 by Rehne
Hi ggppdk,

you say above

ggppdk wrote: 1. The proper place to insert the css file is between the HTML tag <head></head>,


so I tried to find out myself
what is the difference between FC 1.5.5 r607 to FC 1.5.6 r890 what is causing this problem

therefore first i read your description for Flexicontent v1.5.6beta1 r905
www.flexicontent.org/forum/index.php?f=20&t=3701&rb_v=viewtopic
and then it struck me :shock:

it was only a new param

+ Add : (BIG PERFORMANCE IMPOVEMENT (particularly for category view):
new option for description field (maintext) of items, not to trigger (for it) the content plugins in category view


when i allow trigger plugin on categorieview the css file will be loaded

but i do not understand it really
i think ... actually nothing would be displayed, when i disallow trigger plugin on categorieview ...?? but only the css files isn't loaded
what i understand wrong again :cry:

as I said i use modulesanywhere (nonumber extension)
to load the module(s)

Regards

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

More
12 years 7 months ago #18913 by ggppdk
Try triggering specific plugins to see which one is needed, just not to trigger them all.

But still i would say that always inserting the css file inside the body is not so bad.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.607 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline