Add custom style to category link in field

More
11 years 8 months ago #35744 by danio_d
Hi,

I need to add a unique style to the category link in category field. I think it would be appropriate alias category. Where can I change this?

THX
dede

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

More
11 years 8 months ago #35746 by micker
maybe you can find a basic solution with REremplacer component ? Create a rule to find your link and replace it ?

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 8 months ago #35753 by ggppdk
Hello,
-- i think this can be useful, yes some time you would want to emphasize or style-up the link of particular category or particular tag.

-- i have added (for v2.0.2) specific CSS class to both category and to tag links in the file:
plugins/flexicontent_fields/core/core.php

-- Examples of new CSS classes
fc_category_451
fc_tag_551

-- To apply the change now ... change (in above file)
Code:
$display = '<a class="fc_categories link_' . $field->name . '" href="' . $cat_link . '">' . $category->title . ''; ... $display = '<a class="fc_tags link_' . $field->name . '" href="' . $tag_link . '">' . $tag->name . '';
to become
Code:
$display = '<a class="fc_categories fc_category_' .$category->id. ' link_' .$field->name. '" href="' . $cat_link . '">' . $category->title . ''; ... $display = '<a class="fc_tags fc_tag_' .$tag->id. ' link_' . $field->name . '" href="' . $tag_link . '">' . $tag->name . '';
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
11 years 8 months ago #35778 by danio_d
Works like a charm :)

THX

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

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