TYPO3-添加到主屏幕图标 [英] TYPO3 - Add to homescreen icon

查看:113
本文介绍了TYPO3-添加到主屏幕图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TYPO3 9网站,并希望将起始页添加到Android 9的主屏幕上.将链接添加到我的主屏幕后,它显示为图标,显示字母"H".

I have a TYPO3 9 website and want to add the startpage to my homescreen on Android 9. After adding the link to my homescreen, it appears as an icon showing the letter "H".

将页面添加到主屏幕后,为了显示自定义图标我必须进行哪些更改?

What changes do I have to make in order to display a custom icon after adding my page to the homescreen?

我试图更改favicon(使用32x32px png),因为我认为这可能会用作主屏幕上的图标,但没有成功.

I tried to change the favicon (used a 32x32px png) as I thought that maybe this would be used as the icon on the homescreen, but it didn't work out.

推荐答案

图标在Android的主屏幕上不使用.您需要在标题中添加一个单独的标签,以添加主屏幕图标.

Favicons are not used for the home screen on Android. You will need to add a separate tag in your header to add a home screen icon.

对于Android:

<link rel="icon" href="icon.png">

对于iO:

`<link rel="apple-touch-icon" href="icon.png">`

apple-touch-icon 在某些Android版本上也可以使用,但我认为它已被弃用,并且可能已在较新的版本中删除.

apple-touch-icon might also work on some Android versions, but I think it's deprecated and might already be removed in newer versions.

您可以使用以下TypoScript将其添加到TYPO3站点:

You can add it to a TYPO3 site using the following TypoScript:

page.headerData.10 = TEXT
page.headerData.10.value = <link rel="icon" href="icon.png">
page.headerData.20 = TEXT
page.headerData.20.value = <link rel="icon" href="icon.png">

当然,您需要将其指向现有的图像文件,并且需要检查page.headerData.10和page.headerData.20是否未用于其他用途(在这种情况下,您需要使用其他数字)

Of course you need to point it to an existing image file and you need to check if page.headerData.10 and page.headerData.20 aren't used for something else (in which case you need to use different numbers).

这篇关于TYPO3-添加到主屏幕图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆