jDownloadsownloads.com


Author Topic: Separation of design and content  (Read 417 times)

0 Members and 1 Guest are viewing this topic.

Offline UweS

  • Newbie
  • *
  • Posts: 29
Separation of design and content
« on: 29.08.2019 14:34:24 »
As soon as there is a new major version, it would be nice to separate the HTML output from the design completely. This requires good semantics and cleanly named selectors without inline statements.

I want my own CSS! :)

Because I had to override nearly everthing.
« Last Edit: 05.09.2019 14:29:07 by Arno »

Offline ColinM

  • Moderator
  • *
  • Posts: 4.001
Re: Separation of design and content
« Reply #1 on: 03.09.2019 16:26:14 »
Hi
Not sure I understand properly!
When you say overrides which code are you overriding?
Most users want a reasonable simple screen.  Basically the screen views are driven by the layouts which are like mini templates
Essentially the 'placeholders' {   } are like macros or very simple plugins in the layout.Generally each line in a layout has its own css class associated with it.  Many people use the custom css facility to customise.
You can make your own layouts as the screen design.  The code generation  phase in the default.php basically replaces the placeholders with relevant code.  That is the layouts control the view on the screen.
What is confusing is the the layouts are multipart with header, footers sub headers and the main part.  It is not necessarily clear which part is used when.
Do you perhaps have an example I could look at please.
Colin



Offline UweS

  • Newbie
  • *
  • Posts: 29
Re: Separation of design and content
« Reply #2 on: 04.09.2019 09:17:42 »
Hi Collin,

With overrides I meant all that CSS that can't be disabled. For example in the jdownloads_fe.css and jdownloads_buttons delivered by the plugin. Additionally there is some inline-css that are not even valid. Example: style="text-align:top;border:0px;". This is included in the placeholder "{file_pic}" I think.

The problem with custom.css is that it is again an additional style content that only overwrites the default.css. So for web projects only junk.

A checkbox "dont include any css - I do it by myself" would help. 

The layout control with header etc. is understandable but could be clearer with other identifiers.


Uwe 

Offline Arno

  • Administrator
  • ***
  • Posts: 12.514
    • jDownloads.com
Re: Separation of design and content
« Reply #3 on: 05.09.2019 13:27:52 »
Hi Uwe,
Quote
A checkbox "dont include any css - I do it by myself" would help.
Okay, in the version 3.9 is this possibility now added. See pic.
It is planned to start with the public beta in the next days.
« Last Edit: 05.09.2019 14:29:16 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline UweS

  • Newbie
  • *
  • Posts: 29
Re: Separation of design and content
« Reply #4 on: 05.09.2019 13:44:13 »
Ho ho. Was für ein Service. Danke!

Offline Arno

  • Administrator
  • ***
  • Posts: 12.514
    • jDownloads.com
Re: Separation of design and content
« Reply #5 on: 05.09.2019 13:46:06 »
Allerdings wird dann nur die jdownloads_fe.css nicht geladen, alle anderen schon. Also die für die Button und die 'Custom' wenn vorhanden. ist hoffentlich okay.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline ColinM

  • Moderator
  • *
  • Posts: 4.001
Re: Separation of design and content
« Reply #6 on: 06.09.2019 18:03:40 »
Uwe,
 You mentioned that there was some inline css
Quote
Example: style="text-align:top;border:0px;".
But I could not find in any of the file layouts could you gide me better please as I would want to remove
ColinPS are you using one of the old Table based layouts? these are disappearing!!PPS would you like to help test the new jD3.9>