#FullText Field in Category Blog Layout Basic Parameters

Locked
pmu
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Feb 21, 2008 11:15 am

#FullText Field in Category Blog Layout Basic Parameters

Post by pmu » Mon Feb 25, 2008 9:42 am

WHAT
When I use the Category Blog Layout, I would like to be able to view ALL my articles in FullText, not only in IntroText.

HOW
Add a # FullText Field in the Basic Parameters of the Category Blog Layout Item Type:
Then, when using Following settings, it should give me ALL (999) my articles in a FullText Blog.
# Leading = 1
# Intro = 0
# FullText = 999
Columns = 1
# Links = 999

Thanx!

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3763
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by Hackwar » Mon Feb 25, 2008 12:24 pm

Why do you set the readmore when you don't need it?
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

pmu
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Feb 21, 2008 11:15 am

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by pmu » Tue Feb 26, 2008 6:48 am

I would like to use them both in two different menu item structures, one blog with IntroText only, the other blog with FullText.

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3763
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by Hackwar » Sun Mar 23, 2008 7:59 pm

This feature is already possible with a template override. Moving this one to "denied"
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

latristesse
Joomla! Explorer
Joomla! Explorer
Posts: 268
Joined: Mon Dec 12, 2005 9:59 pm

SOLVED: #FullText Field in Category Blog Layout

Post by latristesse » Wed Apr 16, 2008 4:47 am

Around line 108 or 109 template/your-template/html/content/com_content/category/blog_item.php, replace:

Code: Select all

<?php echo (JFilterOutput::ampReplace($this->item->text)); ?>
With something like (where sectionid, or categoryid if you prefer, represents the section or category where you want full text in blog view):

Code: Select all

<?php if ($this->item->sectionid == 5) : 
	echo JFilterOutput::ampReplace($this->item->fulltext);?>
	<?php else :
	echo JFilterOutput::ampReplace($this->item->introtext);
endif; ?>
That way you can still have blogs that function the core way.

abitmad
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jun 16, 2008 7:26 am

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by abitmad » Mon Jun 16, 2008 7:42 am

Hi,

I realise the suggestion has been denied because it can be achieved with a template override, but I'd just like to add my voice to the fact that I think it would be a good modification to a core component .. greater flexibility and should be relatively simple to implement.

Andy

kadded
Joomla! Explorer
Joomla! Explorer
Posts: 306
Joined: Sun Mar 23, 2008 9:54 pm

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by kadded » Mon Aug 11, 2008 10:50 pm

@latristesse

Where can I find that line? Using Joomla 1.5 I can't find what you're referring to.

latristesse
Joomla! Explorer
Joomla! Explorer
Posts: 268
Joined: Mon Dec 12, 2005 9:59 pm

Re: #FullText Field in Category Blog Layout Basic Parameters

Post by latristesse » Tue Aug 12, 2008 2:37 pm

Look in the beez modifications if using tableless Joomla! and copy the page to which I refer above into your template's html folder.

User avatar
weting
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 103
Joined: Sun Nov 25, 2007 9:10 am
Location: Aspudden, Stockholm

Re: SOLVED: #FullText Field in Category Blog Layout

Post by weting » Thu Jun 18, 2009 10:39 am

latristesse wrote:Around line 108 or 109 template/your-template/html/content/com_content/category/blog_item.php, replace:

Code: Select all

<?php echo (JFilterOutput::ampReplace($this->item->text)); ?>
With something like (where sectionid, or categoryid if you prefer, represents the section or category where you want full text in blog view):

Code: Select all

<?php if ($this->item->sectionid == 5) : 
	echo JFilterOutput::ampReplace($this->item->fulltext);?>
	<?php else :
	echo JFilterOutput::ampReplace($this->item->introtext);
endif; ?>
That way you can still have blogs that function the core way.
And what should I write if I want my sections to be ordinary blog layout but all my categries to show full text? I am not a php-coder so if someone can help me with very exact instructions I would be very greatful!

/I

/
Det finns en mening med allt som sker...


Locked

Return to “Not Accepted - Archived”