I need to use alternative layout for articles from 1 category.
I added layout file to
site.root\templates\mytemplate\html\com_content\article\alt_layout.php
But I don't see it in article options: there are only "Use Global" and "Default from component".
No problem with override but I need additional layout.
Here is the solution for this Problem:
delete the underscore ('_') from your layout name like
site.root\templates\mytemplate\html\com_content\article\altlayout.php
Reload Article and voila :-)!
Related
In Liferay Wiki Portlet (version 6.2), using "creole" syntax, I can add a link to page simply typing its name inside square brackets like in Wikipedia.
[[New Page]]
How to add a link to a specific section of "New Page"?
In Wikipedia it's simply [[New Page#Section Title]], but in Liferay wiki I tried with same syntax but it re-directs me always a new page.
I see that in "New Page" aside "Section Title" heading is present a # that is a perma-link with the following pattern
mydomain.com/-/wiki/Main/New+Page/maximized#section-New+Page-Section+Title
I tried in many ways but... How to create a link to an inner section?
As far as I know Liferay's Creole does not implement linking to a section. The creole help links to this more complete documentation which also does not mention this as part of their markup.
You might have to extend the syntax on your own or use the full link.
Just wanted to confirm that is there any stable version is released for "Meta title and Description" of a node in Drupal 8?
If yes then please recommend. I have a simple website of basic pages and few blogs for the same and for homepage I want to add "Meta title" and "Meta description".
So please suggest any appropriate option for DRUPAL 8.
Thanks in advance.
I use the "Metatag" module: https://www.drupal.org/project/metatag
It works great and I have no problems with it at all.
EDIT:
Just download and enable the module. Then add a new "Meta tags" field to your desired node type and now you should see the field when you edit the node.
Also important: under /admin/config/search/metatag you should be able to configure default meta values. So for example if your Title and Description follow always the same pattern like "{Node Title} | {Site Name}" for example, you can define it there. This way you don't have to set all the meta data yourself for every node.
Also settings for Homepage/Frontpage/Category Page etc. can be adjusted there.
Hope this helps.
If you use metatag module and create pages with page manager, here is a patch you can apply and enable a new module metatag_page_manager. You can now configure meta tags for panel pages under /admin/config/search/metatag.
I'm trying to add layout for all blog posts. I have added part Layout for BlogPost content type. Now I can add layout for blog post one by one. So, how I can add existing layout for all blog posts in blog?
You should create a Layout from /Admin/Contents/Create/Layout, save it and then in your blogposts, use the option "Use existing layout: " in order to get your layout.
You can do it by adding new layer with ContentType rule, like this:
ContentType("BlogPost")
Then you can add your blog post special widgets to this layer including a Layout Widget, as you want.
Is it possible to show breadcrumbs based on the URL. For example if the user hits example.com it means home->test1->test and if user hits example1.com it means home->test2->test. Is it possible to control the breadcrumbs visibility. Any one guide me how to do this.
A very nice implementation of A very customizable breadcrumb can be found in the Zen theme. If you already use a sub-theme of Zen then you're in luck. You;ll only probably have to configure it and you're good to go.
Options for the breadcrumb: each theme has it's own settings. So you'll need to add the options you'll want for youre breadcrumb (On/Off, separator, home link On/Off etc.) in a themes/your_theme_name/theme-settings.php file. Here you'll find a starting point. For inspiration check out the theme-settings.php (for defining the options) and zen.info file (for providing the default values for the options).
Theme the breadcrumb: then you'll have to implement your_theme_name_breadcrumb function in template.php. Again look in the file with the same name in the Zen theme for an example.
Showing the breadcrumb: last step is to make sure that your breadcrumb is visible and you do this by printing the $breadcrumb variable. Look in the page.tpl.php file template for the default implementation and customize it as you like.
Some other points of interests:
Custom breadcrumbs haven't tried it personally but sounds promising if you're looking for customizable breadcrumb trails for node types.
An article on the above mentioned Drupal module
for those who like to get their hands dirty here you can find some nice info: http://drupal.org/node/64067
And don't forget to clear the theme cache at the end :)
from the question above, I thought it would be relatively easy but i can not find any documentation on on how to add styles to the 'styles' drop down menu. can anyone push me in the right direction?
The styles dropdown is automatically populated based on classes found in your theme's typography.css file. To add classes, just ensure that they are defined there. Alternatively, if you want to give the classes friendlier names or to remove some classes from the list, you can explicitly define the styles that you want listed by putting this in your _config.php file.
HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles',
'Name 1=class1;Name 2=class2');
It's a feature provided by TinyMCE, the WYSIWYG editor component, and this line is just setting the theme_advanced_styles setting of TinyMCE when used by the CMS. This thread on the TinyMCE site also discusses it.
Also note Markus' answer below: editor.css needs to be in the theme css folder and include the typography.css.
The answer of #Sam Minnée only works, if the editor.css is also in the theme css folder and includes the typography.css.
Here is a more detailed description of how these two play together.
If you have troubles getting the new styles appear in the editor, try the following:
yoursite.com/admin/?flush=1
Check the file permissions on your mythemes/css/editor.css file. It should be readable by the webserver user.