Tag Template Override - Access to Data

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Laurenca
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Wed Jun 21, 2006 6:16 pm

Tag Template Override - Access to Data

Post by Laurenca » Mon Jun 18, 2018 3:15 pm

on the override for com_tags > tag > default.php

I'm trying to add the [note] data

It would seem that this > $this->item->note should work. But it doesn't

Here's a short result of the

Code: Select all

<?php print_r($this->item); ?>

Code: Select all

[0] => Joomla\CMS\Object\CMSObject Object
        (
            [_errors:protected] => Array
                (
                )

            [parent_id] => 102
            [level] => 2
            [lft] => 136
            [rgt] => 137
            [alias] => school-education
            [id] => 107
            [path] => subjects/school-education
            [title] => School + Education
            [note] => School Note
Pulling my hair out. Any insights appreciated.

mrgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jun 19, 2018 9:53 pm

Re: Tag Template Override - Access to Data

Post by mrgreg » Wed Jun 20, 2018 7:03 pm

Forgive my vague reply, it has been years and I can't recall the exact syntax.
But did you try something like or similar to this:

$this->item->[0]note


Locked

Return to “Templates for Joomla! 3.x”