In the Tag Result List , how adding column Category [SOLVED]

More
12 years 6 months ago - 12 years 5 months ago #20033 by the_Phoenix
Hallo,
ich hoffe ich bin im richtigem Forumbereich...

Mein Problem :
Wie kann ich in der Ergebnisliste wenn ich auf einen 'TAG' klicke die Kategorie hinzufügen ?
Angezeigt werden ja :
Bild, Titel und Beschreibung
ich benötige aber
Bild, Titel, Beschreibung und Kategorie

Ich habe schon in der default.php (views/tags)
in Zeile 66
<th id="fc_category"><?php echo JText::_( 'FLEXI_CATEGORIES' ); ?></th>

hinzugefügt und habe jetzt auch die neue Spalte 'Kategorien'.

Aber wie bekomme ich die Inhalte dort hinein?

gr hardy

Hello,
I hope I'm in the proper forum area ...

My problem:
How can I in the results when I click on the 'TAG' category to add?
Appears to be yes:
Image, title and description
I need but
Image, title, description and category

I've been in the default.php (views / day)
in line 66
<th id="fc_category">:; </ th> <php echo JText: _ ('FLEXI_CATEGORIES')?>

added and now the new column 'categories' have.

But how do I get the contents in there?

gr hardy
Last edit: 12 years 5 months ago by the_Phoenix.

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #20034 by ggppdk
mmm, avoid changing core files, when you can.

In this case you can create a joomla template override, by copying file:

components/com_flexicontent/views/tags/default.php
to
templates/myjoomlatemplate/com_flexicontent/tags/default.php
(update above i forgot html subfolder, correct path is:
templates/myjoomlatemplate/html/com_flexicontent/tags/default.php)


To add main category (for all item's categories you need one more step: to make a SQL query to get them), do these:

1. after:
<th id="fc_desc"><?php echo JText::_( 'FLEXI_DESCRIPTION' ); ?></th>
add
Code:
<th id="fc_cats"><?php echo JText::_( 'CATEGORY' ); ?></th>
2. before:
foreach ($this->items as $item) :
add
Code:
global $globalcats;
3. before:
</tr>
<?php endforeach; ?>

add
Code:
<td headers="fc_cats"> <?php echo $globalcats[$item->catid]->title; ?> </td>

To list all categories and/or make them links you need extra steps.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #20043 by micker
it maybe possible to do this with overwide option of joomla not ?
for compatibility update ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #20052 by ggppdk
If you do with joomla template override , as i described in my previous post, then it will continue to work after we upgrade to newer FLEXIcontent version.

Also i put an new enhancement issue for v1.5.7 and v2.1:
Allow user to choose items extra fields in the menu item of frontent tags view:
code.google.com/p/flexicontent/i ... %20Summary


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #20202 by the_Phoenix
Hello,
sorry I reply so late :oops: and
many many thanks, it works perfectly :D

also the template override template
(I have only changed your path from:
templates/myjoomlatemplate/com_flexicontent/tags/
to
templates/myjoomlatemplate/html/com_flexicontent/tags/)


Can you help me again, even that is also linked to the categorie?
I've tried it, but with a negative result..

gr hardy

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #20205 by ggppdk
Instead of
<?php echo $globalcats[$item->catid]->title; ?>
use:
Code:
<?php $cat_url=JRoute::_( FlexicontentHelperRoute::getCategoryRoute($item->catid) ); echo "<a href='$cat_url'>". $globalcats[$item->catid]->title .''; ?>

If you want you can read more here:
www.flexicontent.org/forum/index ... pic#p20187

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.277 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline