I have nested folder structure.
I'd like to have the splash page of a folder (site section) come from another folder (blog).
However, by default Plone does not seem to offer this functionality. Is it possible to enable default content view behavior for folders in the settings or does it require monkey-patching?
What pitfalls enabled this might include (regarding breadcrumbs, paths, etc.)
Just go to:
ZMI -> portal_properties -> site_properties
edit the property default_page_types and add a new line with "Folder".
This will allow you to select a subfolder as default view for your folder. I made a small test and I can't see any pitfall, it behaves just like any other default view.
Related
I'm using wordpress 4.9.6 version it's not showing page template option. I reinstalled wordpress and using default themes and plugins. I don't know the exact reason for this. Please help me out of this. Tell me the reason why it occurs.
Your theme must have template file. The default WordPress themes does not have that by default.
You need to create a new .php file, name it whatever and add this following code in the top:
<?php
/**
* Template Name: your template name
*
*/
One of the easiest way to create a Template, is as follows:
Creating the Template file:
Open up your preferred Text Editor. I would recommend Notepad++ for its 'best of both worlds' feel. It offers a greater range of tools than 'Notepad' whilst not being too overwhelming.
Next, you will need to enter the following code:
<?php
// Template Name: Name of Template.
?>
Then head to File > Save as ... and enter your desired file name. Then within the 'Save as type' dropdown menu, select 'PHP Hypertext Preprocessor file'. This file type will be appended with a series of file extensions, within a set of brackets.
Go ahead and select 'Save'.
Of course, don't forget to enter your relevant Template coding and save as you go along.
Upload to website:
With your Template file completed, you will now be ready to upload this to your website. One of the easiest way to do this, is as follows:
Download FileZilla. If you are unsure of which version to download, stick with 'Download FileZilla Client'.
Once downloaded and installed, open the program. Then login, with your site's credentials. If you are unsure of these, you will need to seek assistance from your hosting provider.
By now, you should see a screen like:
The above image has a lot of blank spaces. If you are logged in, these blank spaces will be populated with various folder and file names etc. Referring to the above image, take take of the contents within the red box. This text bar may be populated. Just enter '/httpdocs/wp-content/themes'. Alternatively, you can scroll through the Folders manually.
All you then need to do, is identify the relevant Theme and drag over the desired template file and drop it into the relevant theme's folder.
When it comes to WordPress themes, you may first want to familiarise yourself with Child Themes. Simply put, if you are not the Theme Author, you will need to create a Child Theme. If you modify the Parent theme, any file modifications will be lost. Whilst this wouldn't be the case, in this instance, you may wish to take this opportunity in understanding Child Themes and implementing said themes now, in preparation for future modifications.
The solution in my case was to add index.php file in theme's root folder.
It appears that adding my theme into Git repository (with Git Desktop) and selecting default .gitignore file of Wordpress incorrectly ignores the index.php file inside theme's root folder, so the file was never uploaded to the server after deploy and WordPress does not recognize the theme as valid one - hence the missing drop-down with template selection.
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.
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
How can I change the homepage for a plone site?
The closest thing I can find, is default_page under /portal_properties/site_properties in the ZMI. But it lists index.html and index.htm, which I find very confusing since there aren't any html files in a plone install.
On siteroot add a contenttype 'Link', enter a title of your choice and set the destination to '/yourSiteId/yourSubfolder', make sure it is published, set the Link as default-view of your site.
In the subfolder set the content-item as defaultview.
The "display" dropdown menu includes "select default item" which can be used to choose the object you wish to display as the default view of any folder in a Plone site, including the home folder.
You might want to check out Collage. You can define a layout and then pick content items from any sub-folder and have it rendered within your collage layout. You can then select your collage as the default view of your plone site (by selecting it as the default view).
The user interface for collage is a bit daunting but you should be able to get it after some trial and error.
I created a Page Template in the Custom folder using the ZMI.
I copied it using the ZMI into an existing Plone Folder.
I would like for this Page Template object to be visible in the Plone Contents tab. What must I do?
If the template is not a view for other content (i.e., it stands on its own), then:
1) Create a folder (in Plone) to contain the template. This folder will show in navigation.
2) Put your template into the folder (using the ZMI) and change its short name (ID) to index_html. That forces it to be the default view.
3) Don't put anything else in the folder. At least not anything for which you need Plone's editing, navigation or view machinery.
OR, if you're allowing the link type to show in navigation, just put in a link type and point it to the template. Much safer than the index_html recipe.
Create a folder in Plone.
Add /manage_propertiesForm to the url and add a new property layout with as value the id of your template (which can remain in the custom folder).
Your template is now the default view of this folder.
we have created new content type for this issue.