|
Title: content.html.php - inserting introtext Post by: adetorre 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&task=view&id='. $row->id .'&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 ? Title: Re: content.html.php - inserting introtext Post by: Editor (cowboy) 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.. Title: Re: content.html.php - inserting introtext Post by: adetorre on November 07, 2005, 10:53:09 AM what a star !!!
sorted completely - ive been trying for 2 weeks to do this - thanks :) Title: Re: content.html.php - inserting introtext Post by: Editor (cowboy) on November 07, 2005, 10:55:13 AM glad it works ;)
Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved. Joomla Bridge by JoomlaHacks.com |