Hiding xi:fallback contents in Author mode

Oxygen general issues.
kim
Posts: 17
Joined: Fri Sep 09, 2016 9:38 pm

Hiding xi:fallback contents in Author mode

Post by kim »

Hi,

While in Author mode, I'm trying to come up with a way to hide the contents of xi:fallback if the xi:include link resolves. I'm thinking I might be able to do this with CSS, but have been unsuccessful. Any thoughts?

Thanks!
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Hiding xi:fallback contents in Author mode

Post by alex_jitianu »

Hi,

Yes, fortunately you can do it from the CSS using a rule like this:

Code: Select all

*:-oxy-referenced-content ~ fallback {
display : none !important;
}
Best regards,
Alex
kim
Posts: 17
Joined: Fri Sep 09, 2016 9:38 pm

Re: Hiding xi:fallback contents in Author mode

Post by kim »

That seems so very obvious now :)

Thanks, Alex, it works great!
Post Reply