• Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

How to write CSS styling on default form template when (form is parent + child)

Hi, i try css stylling for form (record view and record edit) when list (and form) has structure parent +child.

I can css styling for "parent" part but the same code doesn't work for "child" part.
An example, i have in:
.../views/form/tmpl/default-cc-left-right-3/custom_css.php

#{$view}_$c #ccjom-cc_niezgodn_dz_kor_i_zap_plan___przyczyna_niezg,
#details_$c #ccjom-cc_niezgodn_dz_kor_i_zap_plan___przyczyna_niezg_ro,
{font-weight:bold;}

that field/element #ccjom-cc_niezgodn_dz_kor_i_zap_plan___przyczyna_niezg doesn't display css styling on form on part "child",


Is possible to modify the code as it would be display css styling on "child" part of form: "parent + child"

I have left join :
left JOIN ccjom_cc_niezgod_dz_kor_i_zap_plan ON ccjom_cc_niezgod_dz_koryg_i_zap.id = ccjom_cc_niezgod_dz_kor_i_zap_plan.opis_niezg
 

Attachments

  • Zaznaczenie_197.png
    Zaznaczenie_197.png
    58 KB · Views: 278
  • Zaznaczenie_199.png
    Zaznaczenie_199.png
    159.8 KB · Views: 291
  • Zaznaczenie_200.png
    Zaznaczenie_200.png
    132.2 KB · Views: 269
  • Zaznaczenie_198b.png
    Zaznaczenie_198b.png
    82 KB · Views: 285
friendly bump,

I try to do it myself but i can only change all column (right column) on parent+child --- but i need only choosen field:
#ccjom_cc_niezgod_dz_kor_i_zap_plan___przyczyna_niezg

Can you give me any tip how to do this?
 

Attachments

  • Zaznaczenie_221a.png
    Zaznaczenie_221a.png
    106.3 KB · Views: 263
  • Zaznaczenie_222a.png
    Zaznaczenie_222a.png
    183.2 KB · Views: 264
  • Zaznaczenie_223a.png
    Zaznaczenie_223a.png
    105.5 KB · Views: 273
Can you give me the URL to an example page.

Also ... according to your group membership, it looks like your Fabrik subscription may have expired? Unless there's an issue with our billing system

-- hugh
 
Hi
This css should do it - basically access the contining li and then get its .fabrikElement
(replace 'ccjom_cc_niezgod_dz_kor_i_zap_plan___rodz_dzialania' with your element names.
CSS:
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___rodz_dzialania .fabrikElement {
font-weight: bold;
}
I've fixed your sub - you still had an open silver one which we should have converted to a pro subscription, I've now done that
 
Oooo! Thanks

Now, font-weight: bold works but i need also : color: blue and this doesn't work

PHP:
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___przyczyna_niezg .fabrikElement {
color: blue;
font-weight: bold;
}
 
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___opis_dzialania .fabrikElement {
color: blue;
font-weight: bold;
}

Is possible to style this with "color"?
 
Try putting !important on the color, like ...

Code:
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___przyczyna_niezg .fabrikElement {
color: blue !important;
font-weight: bold;
}
 
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___opis_dzialania .fabrikElement {
color: blue !important;
font-weight: bold;
}

-- hugh
 
Ooo, thanks for this code.
This color code " color: blue !important;" works under (windows): FF, IE, Google Chrome and not works under Opera.
 
I just downloaded Opera and it works for me

CSS:
li.fabrikRepeatGroup___ccjom_cc_niezgod_dz_kor_i_zap_plan___przyczyna_niezg .fabrikElement {
color: blue !important;
}
 
Hmmm,
This code (# post12) works for me on Opera under Vista Home, but not works on Opera under XP prof, on Opera under WIN 7 i will try later,
 
Nothing we can do about that. That's standard CSS, should work on any browser / OS less than about 10 years old. It's an Opera / Windows XP problem.

-- hugh
 
Back
Top