Hi
Last question for today :
Is there a way of adding automaticalyy <span></span> to a the h1 h2 h3 etc. styles when using the editor
I can't have my client write them in html
Thank you
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi
Last question for today :
Is there a way of adding automaticalyy <span></span> to a the h1 h2 h3 etc. styles when using the editor
I can't have my client write them in html
Thank you
Not that I know of. Can you elaborate why you would want to do <span><h1>Header</h1></span>, that doesn't make sense to me.
If you want <h1>Header <span>(other info)</span></h1>, then you should make a class for the Style drop-down menu.
Can you give us an example of the HTML output that you want?
As the previous poster said it doesn't really make sense.
Hi
I'm trying to be clearer :
Yes it is more like this :
<h1>Header <span>(other info)</span></h1>
I need to Place a CSS background image horizontally right on an h2, for this image to be right after the h2 I need span.
here is a tutorial showing this technique :http://veerle.duoh.com/blog/comments/placing_a_css_background_image_horizontally_right_on_an_h2_using_a_span_ele/
I'm very intereted in the way you can make a class for the Style drop-down menu.
Thanks a lot
T
Since this is a styling issue and not a content issue I'd just call on the power of jQuery. http://jquery.com
Its a great javascript library that can handle all sorts of style-y bells and whistles. Barring that, you could alway add a check box or drop down field to your page type and a function that checks if its clicked/selected then the template will render the span. But like I said since this seems to be style and not a content issue I'd go the jQuery route