New kind of articles, same format

More
6 years 8 months ago #72570 by hervemlam
Looks good, I'll give it a try. Thanks!

And so, you don't recommend sub-categories at all?

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
6 years 8 months ago #72581 by micker
do what you want lol

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
6 years 8 months ago #72663 by hervemlam
Hello,

I quickly tried sub-categories, and falied.

I tried what you suggested, and suceeded!
Like you said I added a new radio field to distinguish between usual kind and new kind of articles.
In the Flexi template (category view) I put it in renderonly position, then set the class with the PHP code.
Added this new class in the CSS file (indeed in the LESS file).

But... my new class was below other classes and :

1) I had to comment out "background: none;" in #flexicontent ul.introblock > li
OK I can do that because it is in my own Flexi template category view.

2) I had to comment out classes fcodd and fceven in components\com_flexicontent\assets\css\flexicontent.css
I don't feel OK with this one because this is native Flexi, and will come back again with each Flexi upgrade.
Is there a better way to do? How could I have my new class higher?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
6 years 8 months ago #72665 by ggppdk
Hello

1. You can create a copy of 'blog' template (which contains of course a category layout)

and call the new template

myblog
or
somename
or
anyname

2. assign it to a category and (thus to its child categories too)

3. Remove / Custom --ALL-- or --any-- part of CSS inside category.less

you do not need to keep any CSS that exists inside the *.less files files of the layouts !


-- 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
6 years 8 months ago #72669 by hervemlam
Dear George,

At this stage I've already got my template, based on a copy of 'blog'. You can see it in my website homepage , just below the carrousel.
I only want to highlight some specific items in the list with a special background colour.

My issue is the CSS hierarchy:
1. #flexicontent ul.introblock > li { background: none [from my template category.less]
2. fcodd and fceven { background-color: something [from components\com_flexicontent\assets\css\flexicontent.css]
3. #flexicontent .Interview { background-color: specific [from my template category.less]

Could I modify this hierarchy?


And another question:
Is it possible, in the "opening text" of a field, to test the value of another field?
I tried this below, but it seems php code isn't taken into account:
Code:
<span id="<?php echo if ($item->fields['specific']->value=='1') echo 'itw_'; ?>my_field" class="flexi label field_my_field"><script type="text/javascript">document.write(Joomla.JText._('<?php if ($item->fields['specific']->value=='1') echo 'ITW_'; ?>MY_LABEL'));</script></span><br />

Regards,
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
6 years 8 months ago #72678 by micker
yes only in template not in field option

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.383 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