Créer un champ qui pointe vers une catégorie

More
11 years 4 months ago #31730 by micker
je dirai un champ select avec une requete pour charger les catégories ... mais pas sur ..

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
11 years 4 months ago #31732 by eytanpierre
Oui c'est exactement cela !
(L'avantage supplémentaire serai pour les recherches avancées ...)

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

More
11 years 4 months ago #31746 by ggppdk
You mean something like a "Related Categories" Field?


-- 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
11 years 4 months ago #31754 by eytanpierre
No, I mean a Select Field with sub-categories of one categories for value.

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

More
11 years 4 months ago #31767 by ggppdk
You can use a FLEXIcontent select / multiselect field in SQL mode.

1. Create a Select field

2. enable Use SQL Query

3. as Field elements enter:
Code:
SELECT id as value, CONCAT(REPEAT('-',level),' ',title) as text FROM `#__categories` WHERE level>0 AND extension='com_content' ORDER BY lft

4. enable Remove space

5. as Frontend Display
select "value" instead of "text"

6. as value prefix enter:
<a href="http:://mysite.com/index.php?option=com_flexicontent&view=category&id=

7. as value suffix
">Some text


-- 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
11 years 4 months ago #31777 by eytanpierre
Thank you for your reply ! :D

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

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