Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-01-27 16:32:47

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Option to disable 'Styles' site wide

Similar to comments, which you can disable site wide and then it removes comment-related UI and panels throughout the admin-side. It would be nice if you could do the same for Styles for those users with no use for it. Another place that Styles are mentioned is within section edit and section list.

I never ever store CSS in the database so anything related to that is just cruft.

Offline

#2 2017-01-27 17:38:50

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,092
Website Mastodon

Re: Option to disable 'Styles' site wide

philwareham wrote #303702:

Similar to comments, which you can disable site wide and then it removes comment-related UI and panels throughout the admin-side. It would be nice if you could do the same for Styles for those users with no use for it. Another place that Styles are mentioned is within section edit and section list.

I never ever store CSS in the database so anything related to that is just cruft.

A1 to that.


…. texted postive

Offline

#3 2017-01-28 01:31:01

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: Option to disable 'Styles' site wide

Certainly not opposed to this! Stylesheets don’t belong in the DB.

Although I recently used the Styles panel to create a (small) custom stylesheet for a set of 2 articles, and that stylesheet would be edited by another person (without SFTP access).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#4 2017-01-28 02:00:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,454
Website GitHub

Re: Option to disable 'Styles' site wide

Au contraire! As phiw13 says, designers who do not have SFTP/SSH access to the server can’t make site alterations without it. Not everyone is an administrator, nor trusted to upload stuff to the server / use version control.

Without the Styles panel, you cannot set a default Stylesheet for a Section, which makes importing and exporting Themes way more difficult as there’s lots of extra conditional code to consider.

While you can certainly have only one Stylesheet defined, and can empty its contents, and then use manual <link> tags to include your disk-based stylesheets, you cannot delete the last sheet since Sections MUST have at least one stylesheet associated with them. It’s the only way Txp knows how to set up the defaults for the <txp:css> tag, and is baked into publish.php.

Hiding the panel might be possible via a pref option if we also:

  • Remove the column itself from the Sections panel.
  • Remove the ability to search by stylesheet in the Sections panel.
  • Remove the ability to toggle the column in the Sections panel.
  • Figure out what to do if Stylesheet happens to be the selected search option, or sort order column/direction when the pref is turned off.

But it’s a lot of work for very little gain.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2017-01-28 06:47:24

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Option to disable 'Styles' site wide

Ok then, I’ll live with it as-is. Thanks anyway.

Offline

#6 2017-01-28 07:10:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Option to disable 'Styles' site wide

Related but not directly. I would love to have rvm_css as part of the core.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2017-01-31 12:27:21

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: Option to disable 'Styles' site wide

BTW, there really need a relationship of section <—> style? If I need something, then I find it easier to use: if_section

Perhaps in the future we will be able to come to a modular system Textpattern. Per click in admin interface, create/drop related sql tables and related tags.

  • on/off Styles
  • on/off Files
  • on/off Images
  • on/off Links
  • on/off Comments
  • on/off Log
  • on/off RSS/Atom feeds

But this is not the first importance, yet let it hang ballast.

Last edited by makss (2017-01-31 12:30:20)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

Board footer

Powered by FluxBB