承接 9thwonder/craft-rss 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

9thwonder/craft-rss

最新稳定版本:2.0.1

Composer 安装命令:

composer require 9thwonder/craft-rss

包简介

Use RSS Feeds in your templates with ease

README 文档

README

Craft RSS is a simple helper plugin that lets you pull down an RSS feed and use it in your Twig templates.

Fork update to run with Ctaft 4.0

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
cd /path/to/project
  1. Then tell Composer to load the plugin:

Craft 3.x

composer require guilty/craft-rss

Craft 4.x

composer require 9thwonder/craft-rss
  1. In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft RSS.

Configuring Craft RSS

No configuration needed.

Using Craft RSS

{% set blogFeed = craft.rss.loadRss("https://helgesverre.com/blog/feed/") %}

{% if blogFeed %}

    <h1>{{ blogFeed.title }}</h1>
    <a href="{{ blogFeed.link }}">{{ blogFeed.link }}</a>

    <ul>
        {% for post in blogFeed.item %}
            <li>
                <a href="{{ post.link }}">
                    {{ post.title }} - {{ post.pubDate }}
                </a>
            </li>
        {% endfor %}
    </ul>
{% endif %}

Brought to you by Guilty AS

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-30