Hey everyone,
This is my first go at template overrides, and I'm just trying to
override mod_syndicate with this:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<a href="<?php echo $link ?>" title="Subscribe to this Pages RSS Feed">
<img src="<?php echo $this->baseurl ?>/templates/sequoyahlodge/images/
RSS-icon.png" alt="RSS Icon" />
</a>
But it seems like $this->baseurl doesn't work here. Am I missing
something? How can I call for a specific image within my template?
Thanks for your help,
Jason
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
I think the main difference would be the module vs component aspect of it, though I could be wrong. In a component, included from the JView::display method you have a document object, whereas in a module you don't.
Ian
On Sun, Dec 13, 2009 at 6:24 AM, Chris Davenport <chris.d...@joomla.org> wrote:
$this in an override is not the same object as $this in a template.
Use JURI::base( true ) instead.
Chris.
2009/12/13 Jason Dreyzehner <jason...@googlemail.com>
Hey everyone,
This is my first go at template overrides, and I'm just trying to
override mod_syndicate with this:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<a href="<?php echo $link ?>" title="Subscribe to this Pages RSS Feed">
<img src="<?php echo $this->baseurl ?>/templates/sequoyahlodge/images/
RSS-icon.png" alt="RSS Icon" />
</a>
But it seems like $this->baseurl doesn't work here. Am I missing
something? How can I call for a specific image within my template?
Thanks for your help,
Jason
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com <mailto:joomla-dev-general%2Bunsu...@googlegroups.com> .
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com <mailto:joomla-dev-general%2Bunsu...@googlegroups.com> .
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.