Advertisement

Making Changes on my website.

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, 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.
Post Reply
kraken9
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Mar 20, 2025 6:59 pm

Making Changes on my website.

Post by kraken9 » Thu Mar 20, 2025 7:16 pm

I had a template created in Joomla 3 that had the command

<?php echo $article[0]; ?>

which variable was made using :

$table = JTable::getInstance('Content', 'JTable');
$table->load($_REQUEST['id']);
$article = array($table->introtext, $table->fulltext);

This is not working in J5! Is there any easier way to get the introtext from the database, and the full text?

I thought $this->article->introtext but it does not work.
Last edited by imanickam on Sat Mar 22, 2025 1:19 pm, edited 1 time in total.
Reason: Moved topic from Templates for Joomla! 5.x to Joomla! 5.x Coding

Advertisement
kraken9
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Mar 20, 2025 6:59 pm

How to display introtext only in template

Post by kraken9 » Sat Mar 22, 2025 12:42 pm

My previous question did not produce any replies, so I will word it in a different way.

I can show all the text in my template by using :

<jdoc:include type="component" />

I would like to show just the introtext in one section and the non-introtext in another section.

Can someone help me please?
Last edited by imanickam on Sat Mar 22, 2025 1:14 pm, edited 1 time in total.
Reason: Merged the topic 1015276 with the topic 1015249. In the future, please do not create multiple topics for the same issue as it is against the forum rules.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31743
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Making Changes on my website.

Post by Per Yngve Berg » Sat Mar 22, 2025 1:50 pm


Advertisement

Post Reply

Return to “Joomla! 5.x Coding”