PD Styles(CSS) problem

Phoca Download - download manager
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

PD Styles(CSS) problem

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PD Styles(CSS) problem

Post by Jan »

Hi, hmmm, do you use some cache feature on your site? :idea:

Jan
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: PD Styles(CSS) problem

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PD Styles(CSS) problem

Post 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
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: PD Styles(CSS) problem

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PD Styles(CSS) problem

Post 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
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Re: PD Styles(CSS) problem

Post by plamen »

Thank you, all clear now.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PD Styles(CSS) problem

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply