I know you can use fields to define the content in a page, for instance,
<div id="titleField">
<!--MS:<PageFieldTextField:TextField runat="server" ControlMode="Display" FieldName="6867b1e3-d270-43f0-872d-6672f7dadf91">--><!--ME:</PageFieldTextField:TextField>-->
That's great but can I do that and extend it to CSS? For instance....... what if I have a field that I would like a user to fill out that will ultimately be a background for a div?
Is that possible? Something like...........
<div id="someField" style="background: url(<!--MS:<PageFieldTextField:TextField runat="server" ControlMode="Display" FieldName="6867b1e3-d270-43f0-872d-6672f7dadf91">--><!--ME:</PageFieldTextField:TextField>-->);">Some content, etc, etc </div>
Obviously this isn't correct syntax. But what is? This would allow me to give users the ability to style certain pages, elements, etc, all being defined within the page layout.
That said, I know I could do this with javascript and jquery on the client-side (in fact I have done it) but it's nice to do as much as I can before I get to that point. It's also perhaps a little easier, down-the-road, to manage. Also, obviously I'm editing the HTML page layout and have no broken the connection with aspx page yet. Again, for future people editing, changing, etc, in a perfect world I'd like to keep the customization in the HTML page. Maybe it's not possible that way? Thanks for any help you can provide.