Hello

and sorry for bothering with another question:

 For a specifique, unique page on my site I
 - added a new layout (named "recherche")
 - selected a template (moscone in this case)
 - applied a path ("recherche" in this case)
 - gave it a title ("Recherche" obviously"...)
 - and finally added some blocks.
 
Works overall fine, but:
- although the page specific title shows up in the browser tab, when adding a bookmark its name only contains " | site-name" and not, as desired "Recherche | site-name".

Any idea what am I missing or doing wrong?

Thanks again and best regards

Accepted answer

Hi Z4N8r.

This requires a couple extra steps, and in fact, this could be categorized as a "bug" in the layout system (I'm not sure if there is already a report for this in the github issue queue).

1. After you have saved your layout, click on "Menu Settings" in the Layouts UI

2. Then click on "Normal menu entry" and enter a title for the page (for example "Recherche"). Click Save

This will do two things: it will add a menu entry for the layout in one of the menus, and it will include the title of the page within the <title> tag in the head of the page.

If you want to remove the menu item, you can go back to Menu Settings and select "No menu entry". The title of the page WILL persist, but it won't be shown as a menu item anymore. 

Comments

Hi Z4N8r.

This requires a couple extra steps, and in fact, this could be categorized as a "bug" in the layout system (I'm not sure if there is already a report for this in the github issue queue).

1. After you have saved your layout, click on "Menu Settings" in the Layouts UI

2. Then click on "Normal menu entry" and enter a title for the page (for example "Recherche"). Click Save

This will do two things: it will add a menu entry for the layout in one of the menus, and it will include the title of the page within the <title> tag in the head of the page.

If you want to remove the menu item, you can go back to Menu Settings and select "No menu entry". The title of the page WILL persist, but it won't be shown as a menu item anymore. 

Hello argiepiano,

thanks a lot for that hint – it works :-)

The only downside: This seems only to work on layouts that have not been saved previously or which have not been "enriched" with a page title via /admin/structure/layouts/manage/abc/edit-title/editor/title

Anyway, I'm happy

Best regards

Hello agriepiano
and everybody else who's reading this :-)

Allow me another question:
I deleted my testlayout and wanted to delete the menu entry as well. This is impossible, apparently, because the path still exists... Clicking on the path-link (from within the menu edit page) leads to a blank page (without errors in the log).

Any idea of how to get rid of both, path and menu?

Thanks a lot and best regards

Hi. I'm having a difficult time reproducing what you are describing. This is what I'm doing:

  • I created a page layout
  • I went to Menu Settings and selected "Normal menu entry", entered a title and selected Primary Navigation
  • Visited the page - the title is displayed normally and I can bookmark the page (which includes the full title)
  • I checked that the title is in the primary navigation menu 
  • I deleted the page layout
  • I checked the menu again. The title is gone from the menu, which is the expected behavior

If you could post specific steps to reproduce this, that'd be great. I can't address a problem I can't reproduce. 

Always clear caches after these changes, just in case. Also, if you don't want to try to reproduce but want to get rid of the menu entry, there is a way to edit the menu_links table to manually remove the entry (but this is always a "last resort" way).

Hi and thanks for coming back to this topic!

I did exactly the same steps you describe... but after deleteing my test layout (called "bookmark") the menu entry ("bookmark"), which was set in primary navigation, is still present there. I can only edit or reactivate it, but i cannot delete it like any other menu entry. Maybe my screenshots help to clarify (löschen = delete / zurücksetzen = reset/reactivate). When i reset "bokmark" and the click on it, it leads to a blank page (because the layout does not exist anymore).

Best regards

normal menu item: deletable

 

menu item from layout: not deletable

Hmm... I'm not sure how this happened. It may be an unusual combination of you using the Page Title block, AND the Menu Settings.  As a quick fix (though not ideal), you can disable that menu item (through the checkbox in your snapshot). The next thing you could do (carefully) is to remove the entries for this path from both database tables, menu_router and menu_links, then clear caches.

If you are able to reproduce this problem on a completely CLEAN install (without having done any Page Title setting etc before), then post here again.

Hi and thanks for the hint. I had already tried to delete it directly in the db. In the first moment, the menu entry is gone, but after editing any layout, it re-apears automatically. It's really weird...

Best regards

Hi again, I tried something else:

I added a test-menu and some links and then moved the entry "bookmark" into it.

Then I deleted the test-menu. All the links where deleted, only "bookmark" was re-assigned to "primary navigation" (like a system path).

Best regards

 

Hello
I did a fresh install and compared it to my project:

- There is a menu entry "Home", set to <front>
- The homepage layout page has the path /home. It has no "own" menu entry (in layout config).
- When I bookmark this page, the bookmark says  "Home | site-mane".

When I change the layout path from /home to /start, the new bookmark is "site-name" (and not Start | site-name)

When I add a menu entry "Start" to the layout page, this entry appears in primary menu, but the bookmark remains "site-name".

I can set back the the layout to "no menu" and then delete the menu from primary menu.

So the weird situation is:
- On the fresh install, I can removed the menu, but the page has no individual title to appear in the bookmark
- On the project page, the bookmark title is set via layout page menu setting, but the menu entry produced by this procedere can't not be removed anymore.

Do you or does anybody has (another) idea t osolve this?

Best regards