CSS property for page include

  • 1
  • Idea
  • Updated 4 years ago
  • Implemented
Any chance a CSS property could be added to Page Includes?  It has a unique ID but is lacking CSS currently.

Thank you!
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Just checking here Barry.   What would you want to do generically to the page include that you could not do within the definition of the included page? 
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Hi Rob - I have a couple of use cases for this.  

1) I have a page include that would appear multiple time on a page and would like to style differently. UniqueID isn't enough for this case because Id's have to be unique within the HTML.  Having a CSS property would allow me to style each include differently.

2) I have a page include that is used on multiple pages but I'd like them to be styled differently.  I could use "UniqueID" for this but this is a little less than ideal since the "UnqiueId" would have to be very generic naming (e.g. orderList instead of poOrderList) in order to get re-use out of the CSS for #orderList across pages that I want styled like an order list.

Hope this helps.  Thanks!
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
Hi Barry,

You can already do this through the XML editor.  Just add a cssclass="myClass" attribute to your page include xml.  I'll work on getting this property added to the builder in a later release.
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Doh, I should have thought of that!  Editing XML will work for now Ben. Appreciate the guidance and for adding to the builder as time permits.  Thanks!
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
This property has been added in patch release 6.8.7, available from www.skuidify.com/skuidreleases
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Tested and confirmed, thank you!