Are diazo theme files stored on the filesystem? - plone

Are diazo theme files stored on the filesystem?
If so where?
Is it possible to make changes to a theme file using an editing program (not the mapper screen)?

You're using the theme editor in Plone 4.3, right? Some themes are stored on the filesystem, some are stored in the ZODB.
For example, when you activate Diazo editing on a fresh Plone 4.3 instance you get a 'Twitter Bootstrap Example' theme under the Theming control panel. That theme is stored on the filesystem as part of the plone.app.theming package. You can inspect the theme through the UI but you can't edit it - Plone isn't about to overwrite files in one of its own packages.
If you press the 'Copy' button you get a copy of that theme, stored in the ZODB. This one is editable, but only through the theme editor mechanisms*. Those mechanisms are pretty good though - you have the ACE editor (through plone.resourceeditor) at your disposal.
(*if you're brave you could try editing a ZODB-stored theme via webdav)
If you press the 'Download' button you get a zip file that you can extract and edit using traditional text editing tools. You'll need to re-zip and upload to test your changes though.
My preferred way to setup a Diazo theme is on the filesystem as part of a Python package (again, see plone.app.theming). I can use the rules inspector to figure out rules, but all the editing happens on the filesystem, in my favourite text editor. Once the site is in production, the theme editor gives me the power to quickly copy the Diazo theme and tweak it in-place without touching the filesystem. Later I can download the zip and use it to update my canonical filesystem version.
Details of the options and how the mechanisms work is well covered by the plone.app.theming and plone.resource documentation.

Related

Use LESS file in WordPress that compiles on the fly

I am developing a WordPress Plugin. Which have the dynamic colors options from WordPress Backend.
Now, in a plugin, I am using the LESS file with variables to give the dynamic output to the users whenever they change the colors from Backend Admin Settings.
If anyone can help me with the tool that compiles the LESS file on the fly and make the CSS file.
OR
Can I use the LESS file directly in my WordPress enqueue_script?
Please suggest the best.

Turning my current website configuration into a wordpress theme

My searches for this keep turning up "How to make a wp theme from scratch" which is not what I want. I made a website using the theme Scrawl, but I made a bunch of modifications. I would like to turn this into a theme so I can use it to make other sites without having to do much of the work again. Is it possible?
The theme is simply the skin of the website. The configuration of the site, in broad sense of the word, is stored in the database and config files. If you want to transfer that, you can export the configuration settings from one site and import it in the other.
If you've only made modifications within the theme folder, you can simply .zip that folder and import the theme somewhere else.

Buddypress reverting code back to original plugin, I lost my all modification to plugin. I am running wp-4.4 and buddypress-2.2.4

I have buddypress 2.2.4 installed with wordpress 4.4.
Now issue I am facing is, I did some modification to buddypress plugin in plugin files it self. And its reverting back. Its changing my modified files to its original versions. even I try this in my local and same result.
I ask server guy but he told its buddypress issue.
When you modify a BP file, do you see changes in the browser? Or do the files revert to the original state instantly after closing them in a code editor? What are the file permission settings for the BP plugin files?
What files do you modify and with what changes?
Are you hitting update for the plugin? Plugin updates always overwrite local changes as new files are written over the old ones (unless you juggle with write-permissions for the files).
It is not a BuddyPress issue by itself (tried it myself and I could hack the plugin files just fine). It could be the server giving you the illusion of write-allowed files whilst keeping the files unchanged ("reverting"). Or then the plugins are updated constantly, undoing your changes.
The proper way to make modifications is to either use hooks in a plugin or a theme, or copy over the BuddyPress templates to your theme and make modifications there.
I didnt find any solution to that. but I keep my changes by adding a override files to child theme. because I tried everything and its not stopping reset plugin.
So finally making override of plugin in child theme solve this issue.

Drupal Theme editing

Hey I accepted a drupal project, I am experience with PHP, HTML, but not so much Drupal. I am editing the look of the page. So not to much php is needed. However I was provided the ftp and site drupal admin. How do I go about editing css, as of now the ftp file are read-only, and I cannot edit them. Thank you.
Drupal works from themes.
ftp into your site
find the "themes" folder where you installed Drupal
each theme will be in it's own folder ie: garland, bluemarine etc.
open appropriate theme
depending on the theme you should see a style.css file
drag the file down, edit and put back online!
done!
Edit: also I should note, that if you are wanting to edit the CSS from the Drupal Admin it's really only supported on a per theme basis. So if that theme has this built in. I know some themes do, Fusion and Zen.
You should have an FTP write access. At least for sites/all/themes folder, where You should put Your custom theme.

drupal based menu

I built a website with a menu using drupal.
My question is how do I change slightly the design?
Do I have access to the css files? where?
Can I change the design using drupal?
If you used the default Drupal menu, you'd need access to the file system, specifically your site's theme files, to update the design. If you used a core theme, the theme would be in a subdirectory of your site's /theme directory. If you used a contributed theme, your theme should probably be located in a subdirectory of /sites/all/themes.
If you're unable to access the files but can somehow install modules, the following modules may help somewhat:
Sweaver
Live Themer

Resources