Home arrow Forum content.html.php - inserting introtext
  Welcome, Guest. Please login or register.
Did you miss your activation email?
September 07, 2008, 04:30:53 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Core Discussion
| |-+  Joomla 1.0.x
| | |-+  content.html.php - inserting introtext
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: content.html.php - inserting introtext  (Read 2491 times)
adetorre
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
content.html.php - inserting introtext
« on: November 06, 2005, 04:23:21 PM »

i'd would *really* like to add in the introtext in the category table listing

ive identified where it goes ie:

if ( $params->get( 'title' ) ) {
               if( $row->access <= $gid ){
                  $link = sefRelToAbs( 'index.php?option=com_content&amp;task=view&amp;id='. $row->id .'&amp;Itemid='. $Itemid );
                  ?>
                  <td>
                  <a href="<?php echo $link; ?>">
                  <?php echo $row->title; ?>
                  </a>
                  </td>
               <td><!--this is where the introtext should go --></td>
                  <?php
               } else {
                  ?>


but trying to use the right syntax is proving a nightmare

ive tried everything i can think of but everytime i do i get an undefined property ie

ive tried:
<?php echo $row->introtext; ?>
<?php $row->text = $row->introtext; ?>

ive tried simply swapping title in the original code for introtext etc etc

i tried using a module off a menu itme but that only gives me more problems since i need the output in the main body and the navigation collapses and i need a static page & seperate module for each section and category

if i can hard code the original content file i'll have sorted "everything" !!!

help anyone ?
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: content.html.php - inserting introtext
« Reply #1 on: November 07, 2005, 10:15:10 AM »

I did not test this...
I think here's what you need to do:

In "content.php" search for this line
"// get the list of items for this category"

You will see the SQL query, so add "introtext" field on the query. So it will be something like this...

$query = "SELECT a.introtext, a.id, a.title,

You should be able to access the introtext now.

Let me know how it goes..
Logged
adetorre
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: content.html.php - inserting introtext
« Reply #2 on: November 07, 2005, 10:53:09 AM »

what a star !!!

sorted completely - ive been trying for 2 weeks to do this - thanks Smiley
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: content.html.php - inserting introtext
« Reply #3 on: November 07, 2005, 10:55:13 AM »

glad it works  Wink
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use