reset plone to access theming control panel - plone

I am new to theming in plone 4.3. I was experimenting and set up a rules.xml file to read an existing index.html theme that I had - it of course did not theme correctly and worst - I cannot find a way to log back into the theming control panel. The index.html contents appear on the plone page (without the css somewhow), but I want to go back and remove the rules. I tried to delete the rules.xml file, but that did not help - any suggestions?

As the message at the top of that page says, the theming control panel is never themed. You can get to it directly by URL, e.g. http://localhost:8080/Plone/##theming-controlpanel. Then disable your theme on the 'Advanced settings' tab.
Alternatively you can disable Diazo for a page by appending diazo.off=1 in the query string, e.g. http://localhost:8080/Plone/front-page?diazo.off=1

Related

Drupal 8 Custom CSS not updateing

I have a drupal 8 installation with adaptive theme installed.
I have used this to generate my own theme (peterstheme)
This allows for custom css.
I have an issue in that I can now not update my custom css.
When in Drupal I go to
Home -> Administration -> Appearance -> Appearance settings
to the custom CSS tab I can see the contents of the custom-css.css file
Here it says
Styles entered here are saved to themes/exceed/styles/css/generated/custom-css.css.
When I save any changes it does not save them and definitely not to that file.
When I go to the drupal/themes/exceed/styles/css/generated/custom-css.css
and edit it directly the changes do not reflect in the drupal custom css.
I have flushed all the caches in drupal, cleared browser caches etc.
I have Configuration -> Performance. Set page cache to no-caching.
I have made sure that the permissions on the custom-css.css have (User ,Group,World read and write) or (666)
I cannot find any other custom-css.css file.
I must be missing something.
I do not want to rebuild a whole new theme how can I update this?
Thanks in advance.
Peter
You need to add the css file path in ThemeName.libraries.yml file under css section.

Ignore or overwrite templating in Drupal 7?

I'm new to Drupal. I have a page template that has a nav, header and footer. This works correctly for how I want most of my site, except for the login page that I would like to completely customize.
Is there a way to overwrite or ignore the overall site templating (perhaps by placing my login page template into a folder within the /templates directory?) in order to style that one page differently?
Thanks.
If you are looking out for customizing only the login page without its effect on anywhere in the site, you can use page--user--login.tpl.php to override it.
Basically you should find system template you want to override. It may be part of standard drupal installation but also part of some module. Copy it to your theme's templates directory and change the way you like. Clear the cache and drupal will re-scan your theme and start using templates you added instead of original one.

Add Link to CSS StyleSheet

where can i add a link to a custom css file in Joomla?
I have tried adding file in index.php but it is valid only for that template and if i load another template i lose the link.
I'm using Joomla 2.5.
The right place for a site-wide css should be the template index.php file. But since you plan to use several templates, the only other meaningful option is to add it in a system plugin event, instead of spelling out the code you will need to use
$document->addStyleSheet($cssurl)
However it will be more effective if you just insert it into all your templates. Also please note that system page cache may not run the events on cache hits.

Fishpig Magento Extension: Homepage and sidebar widgets not working

When I add widgets to my "First Front Page Widget Area" nothing appears on my homepage.
I am using WordPress template Twenty Twelve. I created a "home" page and assigned it to be a "Front Page Template". I also customized the template to show the static page "home". I assigned the recent posts to show on homepage as a tests and nothing shows, just the page title (Home).
I tried changing my file Fishpig_Wordpress.xml (under app/etc/modules/) to Fishpig_Wordpress.xml.old, but this made WordPress inaccessible (404 error), so I changed the name back to Fishpig_Wordpress.xml.
Lastly, I tried updating the the extension to the latest version 3.0.3.8 (stable) and still the widgets are not showing.
Anybody knows what else I can do or what might be preventing my widgets from working?
Thank you!
Firstly, the app/etc/modules/Fishpig_Wordpress.xml file is the bootstrap file for this extension. This file instructs Magento where the code lives for this file. Deleting - or renaming - this file will not fix any issues but will disable the module (you may need a cache refresh for this change to be acted on).
With the latest version of the extension, widgets should work in the left or right columns of your Magento template. To ensure this, happens, enable the Twenty Twelve theme (which you have done) and ensure you are using the latest version of wordpress.xml. Check your custom theme's layout folder for wordpress.xml and rename it wordpress.xml.old, as this will force Magento to use the latest version of the file in base/default. After doing this, you will need to refresh your layout XML cache.
Next, ensure that you actually have some widgets enabled. To test this, enable a default widget like the Search widget or the Recent Posts.
The above is generic advice for people who can't get widgets to display. Your situation is slightly different as it sounds like widgets work for you, just not on your custom homepage. If this is correct, check that your custom WP page is using a template that has a sidebar column. You can do this by checking the HTML source. Alternatively, reply to this answer with your URL and I'll take a look.

How to use a css file for a specific page in drupal 7?

i would like to use a css file in drupal 7 for a specific page and i would like to cancel the default theme for this page.
I use the method called drupal_add_css it's working but this method doesn't permit to cancel the defautl theme
Help
You can use the Themekey module to configure which theme is displayed for which page. If you set the theme for the page you want to cancel the default theme for to Stark (the no-frills no-style theme included as part of core in D7), you will be able to use just your css via drupal_add_css().

Resources