- Posts: 82
- Thank you received: 0
Want to add a link to my RSS Link in Blog content
-
miq
Inactive member - Topic Author
- Member
Less
More
9 years 4 months ago #45726
by miq
Want to add a link to my RSS Link in Blog content was created by miq
Dear Sir,
I want to add a link to my RSS feed ( claimseo.com/index.php?option=com_conten...format=feed&type=rss ) to the dropdown link appearing on right just before the blog content, on my blog. I want an icon similar to email or print for RSS and also the link open in a window as it is opening for Email or Print article on the top right just before the content. For more clarification, please see the screenshot.
I got this
<?php if (!$this->print) : ?>
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
<?php endif; ?>
<?php else : ?>
<?php if ($useDefList) : ?>
<div id="pop-print" class="btn hidden-print">
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
</div>
<?php endif; ?>
<?php endif; ?>
in the file /components/com_content/views/article/tmpl/default.php
how to use php code to add RSS link with icon here?
I want to add a link to my RSS feed ( claimseo.com/index.php?option=com_conten...format=feed&type=rss ) to the dropdown link appearing on right just before the blog content, on my blog. I want an icon similar to email or print for RSS and also the link open in a window as it is opening for Email or Print article on the top right just before the content. For more clarification, please see the screenshot.
I got this
<?php if (!$this->print) : ?>
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
<?php endif; ?>
<?php else : ?>
<?php if ($useDefList) : ?>
<div id="pop-print" class="btn hidden-print">
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
</div>
<?php endif; ?>
<?php endif; ?>
in the file /components/com_content/views/article/tmpl/default.php
how to use php code to add RSS link with icon here?
Please Log in to join the conversation.
-
nikola.mihajlovic
Support Staff - Moderator
Less
More
- Posts: 91
- Thank you received: 10
9 years 4 months ago #45727
by nikola.mihajlovic
Replied by nikola.mihajlovic on topic Want to add a link to my RSS Link in Blog content
Hello,
you need to output some <li> for rss feed you want to make. So for example, email <li> looks like this:
<li class="email-icon"> <a href="/component/mailto/?tmpl=component&template=hot_sparks&link=7a0455e7b32be11a87c105b60f46b6c257862557" title="Email" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" rel="nofollow"><span class="icon-envelope"></span>Email</a> </li>
and you should figure out how to make it for rss, put links make onclick event etc.
Best regards,
Nikola Mihajlovic,
HotThemes
you need to output some <li> for rss feed you want to make. So for example, email <li> looks like this:
<li class="email-icon"> <a href="/component/mailto/?tmpl=component&template=hot_sparks&link=7a0455e7b32be11a87c105b60f46b6c257862557" title="Email" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" rel="nofollow"><span class="icon-envelope"></span>Email</a> </li>
and you should figure out how to make it for rss, put links make onclick event etc.
Best regards,
Nikola Mihajlovic,
HotThemes
Please Log in to join the conversation.
Time to create page: 0.195 seconds