Page 1 of 1

PD Styles(CSS) problem

Posted: 27 May 2017, 23:06
by plamen
Hi,
There is something broken in my PD.
I can't set "custom.css" to load at all.
It is published, I have this file, PD reports with green color that this file exists, but it looks like only "phocadownload.css" is loaded every time.
"Custom.css" is not present in the source of my page, nor any page inspector tool reports it.
When I unpublish all CSS-s in Styles(CSS), phocadownload.css is still loading. :x - Is it correct behaviour?

I have Phaca Gallery also. Styles(CSS) is working as supposed there. All css files are loaded as per their published state.

Re: PD Styles(CSS) problem

Posted: 28 May 2017, 13:21
by Jan
Hi, hmmm, do you use some cache feature on your site? :idea:

Jan

Re: PD Styles(CSS) problem

Posted: 28 May 2017, 21:14
by plamen
System cache: Off

I installed PD on one other test site, but to no avail - same situation.
Can't load other css except phocadownload.css.
Even with all css-es marked as unpublished phocadownload.css is still loading.
This site is multilingual - is there any difference? There is no option to assign language to css, for added css-es in the list under language is shown "Undefined".
Is it compulsory to set Menu ID for css file?
Installed components PD 3.1.2, PD plugin, PD Button plugin.
latest J 3.7.2

Re: PD Styles(CSS) problem

Posted: 29 May 2017, 11:04
by Jan
Hi, the loading of CSS is independent to language and menu.

Theare are two conditions to load on the site:
- the file needs to be published
- and the file needs to exist on the server


If menu link ID is selected then the CSS will be loaded only in this menu link, if the menu link is empty, then it will be loaded everywhere in the component.

Is the menu link ID empty? Is the output a component output?

Jan

Re: PD Styles(CSS) problem

Posted: 29 May 2017, 15:49
by plamen
Output is not the component output, or I think so.
I am using PD to insert links to PDF (and other formats) documents in articles.
I am using PD button plugin with JCE and PD plugin to display pdf download link in the article.
May be PD is not designed to do that in first place, but I find it convenient.
Actually I need some kind of Document Manager, but PD is OK.

EDIT: When menu item is "Phoca Download » List of Files (Category View) » List of Files (Category View)" Styles are OK! :twisted:
Styles don't work when I have PD link to file in article (using PD plugin only). :evil: But I want to style this link only.

Re: PD Styles(CSS) problem

Posted: 02 Jun 2017, 15:08
by Jan
Hi, yes, plugin output is different from component output. Plugins are set inside articles (com_content component) so the styles are not loaded from onother component (e.g. because of avoid conflicts between the component's styles, to have the unique style on the articles, etc.) So if you need to style plugin output, you need to do the changes in com_content CSS (if exists) but better just in the template CSS (e.g. in custom.css)

Jan

Re: PD Styles(CSS) problem

Posted: 04 Jun 2017, 10:07
by plamen
Thank you, all clear now.

Re: PD Styles(CSS) problem

Posted: 05 Jun 2017, 16:20
by Jan
Ok