CodeIgniter Forums
Slight bug in Real simple Syndication - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Regional User Groups (https://forum.codeigniter.com/forumdisplay.php?fid=25)
+--- Thread: Slight bug in Real simple Syndication (/showthread.php?tid=85954)



Slight bug in Real simple Syndication - luckmoshy - 12-24-2022

Hi, I hade made my awesome RSS in my blog and decided to set it somewhere on SEO matter. good!but they have reminded me there is something missing on my RSS link which is
PHP Code:
<?= link_tag('feed''alternate''application/rss+xml'esc($title));
// <link href="http://site.com/feed" rel="alternate"  title="tore blog" /> 

mean it can't generate (type="application/rss+xml") in a link


RE: Slight bug in Real simple Syndication - datamweb - 12-25-2022

Hi,

PHP Code:
        
helper
('html');

        $link = [
            'href'  => 'any',
            'rel'  => 'any',
            'type'  => 'application/rss+xml',
            'media' => 'any',
        ];

        ddlink_tag($link)); 

more info see https://codeigniter4.github.io/CodeIgniter4/helpers/html_helper.html?highlight=link_tag#link_tag


RE: Slight bug in Real simple Syndication - kenjis - 12-25-2022

(12-24-2022, 10:10 PM)luckmoshy Wrote: mean it can't generate (type="application/rss+xml") in a link

Thank you.

I send a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/7022


RE: Slight bug in Real simple Syndication - luckmoshy - 12-25-2022

(12-25-2022, 12:40 AM)kenjis Wrote:
(12-24-2022, 10:10 PM)luckmoshy Wrote: mean it can't generate (type="application/rss+xml") in a link

Thank you.

I send a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/7022

Thak you@kenji

(12-25-2022, 12:34 AM)datamweb Wrote: Hi,

PHP Code:
        
helper
('html');

        $link = [
            'href'  => 'any',
            'rel'  => 'any',
            'type'  => 'application/rss+xml',
            'media' => 'any',
        ];

        ddlink_tag($link)); 

For more info see https://codeigniter4.github.io/CodeIgniter4/helpers/html_helper.html?highlight=link_tag#link_tag

Thank you @datamweb it works by this way but i wanted to be fixed any way