How to manage "Meta title" and "Meta description" for pages in Drupal 8? - meta-tags

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.

Related

Custom page template not showing up when using a pagebuilder theme (mostly Elementor)

I've installed a theme (that i bought) that's mainly made with Elementor.
Since I've been running into some issues with customizing this theme, (and still refuse to also pay money for Elementor Pro) I decided it would be easier to create a custom template myself.
I have done this before when I used a custom theme I made myself from scratch (I thought I was saving myself some time this time around...).
So my problem: I saved this template called page-home.php to my Child theme (that I made of the purchased Theme) in a folder called page templates.
It is not showing in the drop down menu when creating a new page.
I then just copied it to the main theme, activated that...and still not showing.
Is this because the Theme is using a page builder like Elementor?
Or do you think the creator of the theme somehow disabled this option?
Thanks in advance for any help.
As far as I know Elementor ignores the most of the standard theme file. It does so i.e. with the header.php for sure. The question is what do you want to put in a theme file what you couldn't do with Elementor. Have a look at the
"Hello Theme" https://github.com/elementor/elementor/issues/14283 - it's a plain theme.
If you don't want to pay for Pro, I recommand the plugin "Elementor – Header, Footer & Blocks Template" (and for better editor handling: "Flexible Elementor Panel")

What to do if the Mat Expansion Title has no drop down button?

I installed a MatExpansionPanel in my angular web page and the drop down arrow is not visible in that panel. Instead the header and the content is visible by default.
I tried copying a piece of code from "Angular Material" site and still unable to fix the problem
<mat-accordion>
<mat-expansion-panel>
<mat-expansion-panel-header>
MY POSTS
</mat-expansion-panel-header>
<p>Post</p>
</mat-expansion-panel>
I need that drop down option to be enabled
Piece of CodeThe panel
I've created an stackblitz link (where you can see in live your code).
https://stackblitz.com/edit/angular-7vqs8j
I'm not sure what is happening to you, but it seems that your code is nice.
Maybe do you forget some imports??
Here is the link with the API for the Expansion panel:
https://material.angular.io/components/expansion/api
If you have any question feel free to ask.
It seems like you hide the button with the 'MY POSTS'. You should use it in this way:
For title:
<mat-panel-title>
MY POSTS
</mat-panel-title>
For description:
<mat-panel-description>
Type your description
</mat-panel-description>
Here is the link:
Angular Material Expansion Panel

Joomla 3 don't see article alternative layout

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 :-)!

Link to inner section in Liferay Wiki portlet

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.

URL based breadcrumbs display

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 :)

Resources