find catid of item in module

More
12 years 1 month ago #23015 by micker
hello
i need to find cateid of my item displaying in module
i try this
Code:
<div id="date_module<?php echo $this->item->catid ;?>">
to creat a css rule different by catid
but when i test it blank page ...
how to load catid ?
Regards

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 1 month ago #23025 by Rehne
Replied by Rehne on topic find catid of item in module
try this
Code:
$catid = JRequest::getInt('catid');

maybe it works
because FC "use" the joomla com_content structure

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

More
12 years 1 month ago #23029 by Rehne
Replied by Rehne on topic find catid of item in module
could be enough????

$this->category->id;

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

More
12 years 1 month ago #23034 by ggppdk
Replied by ggppdk on topic find catid of item in module
for retrieving currently display item id and it's current category (item current category can vary), maybe try this:
Code:
$fcitem_id= JRequest::getInt('id',0); $fccat_id= JRequest::getInt('cid',0);

To retrieve other item data, including fields, read this:
www.flexicontent.org/documentati ... 42-faq/244

For universal flexicontent module use $item->catid inside the item outputing loop of the template

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 1 month ago #23039 by Rehne
Replied by Rehne on topic find catid of item in module
thats it ... thanks

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

More
12 years 1 month ago #23079 by micker
Replied by micker on topic find catid of item in module
strange it doesn't display id for me
Code:
<!-- BOF current item's content --> <?php if ($display_date_feat || $display_text_feat || $mod_readmore_feat || ($use_fields_feat && @$item->fields && $fields_feat)) : ?> <span class="content_featured"> <?php if ($display_date_feat && $item->date_created) : ?> <span class="fc_block"> <span class="fc_inline news_date created"> <?php $lng = JFactory::getLanguage(); $loc = $lng->getLocale() ; setlocale(LC_ALL, $loc ); $Date = $item->date_created; $event_date_array_firstexplode = explode(">", $Date); $event_date_array_secondexplode = explode(" ", $event_date_array_firstexplode[1]); ?> <div id="date_module<?php echo $item->catid; ?>"> <span class="event-day_module"><?php echo $event_date_array_secondexplode[0];?></span> <span class="event-month_module"><?php echo $event_date_array_secondexplode[1]; ?></span> <span class="event-year_module"><?php echo $event_date_array_secondexplode[2]; ?></span></div> Heure : <?php echo $event_date_array_secondexplode[4]; ?> </span> </span> <?php endif; ?>
Code:
<?php echo $item->catid; ?>
return nothing

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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.282 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