定制 netgen/xrowmetadata 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netgen/xrowmetadata

最新稳定版本:3.0.2

Composer 安装命令:

composer require netgen/xrowmetadata

包简介

This extension adds a data type which allows setting custom meta data in page head, per content object.

README 文档

README

Installation:

After this the extension has been installed. You should be able to generate the sitemap 
using the runcronjobs.php script. See "xrowsitemap.ini" for more configuration options.

    # php runcronjobs.php sitemap
    Running cronjob part 'sitemap'
	Running extension/xrowmetadata/cronjobs/sitemap.php at: 14.10.2011 12:31
	Generating Regular Sitemaps...
	
	Generating Sitemap for Siteaccess XYZ 
	
	Adding 578 nodes to the sitemap.
	578 / 578 [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++>] 100,00%
	
	Sitemap var/storage/sitemap/XYZ/urlset_standard_XYZ.xml for siteaccess XYZ has been generated.
	
	Completing extension/xrowmetadata/cronjobs/sitemap.php at: 14.10.2011 12:31
	Elapsed time: 00:00:08

This will create a file for every siteaccess within your eZ Publish root directory. These files are usually named "sitemap_access.xml", but you can change that in the INI file.

Please ensure that your Apache rewrite rules permit access to the XML File. This can be done by adding the following line to your .htaccess or Apache configuration file:

    RewriteRule ^sitemap[^/]*\.xml - [L]

Finally you need to attached the Metadatatype to some of your content classes and add the following code to you head of your HTML document.

{def $meta = metadata( $module_result.node_id ) }
{if $meta}
    {if $meta.title}
        <title>{$meta.title|wash}</title>
    {/if}
    {if $meta.keywords}
    	<meta name="keywords" content="{$meta.keywords|implode(',')|wash}" />
    {/if}
    {if $meta.description}
        <meta name="description" content="{$meta.description|wash}" />
    {/if}
{else} 
    <title>{$site_title}</title>
    {foreach $site.meta as $key => $item }
    <meta name="{$key|wash}" content="{$item|wash}" />
    {/foreach}
{/if}

Register sitemap in robots.txt:

Option 1.)
    Add this to the end of the "robots.txt" file
  
    ----------------
    Sitemap: http://www.example.com/sitemaps/index
    ----------------
Option 2.)
    Add this to the end of the ".htaccess" file
    ----------------
    RewriteRule ^robots\.txt$ - [C]
    RewriteRule .* http://%{HTTP_HOST}/sitemaps/robots [P]
    
    RewriteRule ^sitemap\.xml$ - [C]
    RewriteRule .* http://%{HTTP_HOST}/sitemaps/index [P]
    ----------------

Troubleshooting & support
=========================
Send email to service [at] xrow [dot] de


netgen/xrowmetadata 适用场景与选型建议

netgen/xrowmetadata 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.3k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 08 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 netgen/xrowmetadata 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 netgen/xrowmetadata 我们能提供哪些服务?
定制开发 / 二次开发

基于 netgen/xrowmetadata 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 18.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 17
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2018-08-16