Re: [Radiant] Is the RedCloth extensions known not to work with 0.8.1?
Nate, that extension isn't needed after 0.6.9. Install the RedCloth gem and Radiant will use it. Sent from my iPhone On Oct 18, 2009, at 10:18 AM, Nate wrote: > On Oct 16, 2009, at 3:33 AM, Andrew Neil > wrote: > >> Nate, >> >> Sorry I can't answer your question directly, but as an alternative >> you might >> consider applying the alternating classes to list elements using >> javascript. >> Some of the appeal in offering Textile or markdown for content >> editors is >> that they have a simple syntax to learn, e.g. asterisks create >> bullet lists. >> As soon as you say to your editors "You have to add a class name in >> brackets >> after the asterisk (but make sure there is no space between the >> asterisk and >> the opening bracket!)", you've lost the simplicity of textile. It >> would be >> preferable to keep the textile code simple, and apply the classes >> unobtrusively with javascript. >> >> The following snippet of jQuery would do the trick: >> >> $(document).ready(function() { >> $("#content ul li:nth-child(3n+1)").addClass("one"); >> $("#content ul li:nth-child(3n+2)").addClass("two"); >> $("#content ul li:nth-child(3n)").addClass("three"); >> }); > > > Thanks for that. But what I am trying to do works in the "try > redcloth" area of the redcloth site. So it is within the capabilities > of redcloth even though it isn't working in radiant. That's really the > focus of my previous post. Well it was intended to be. > > The unordered list is part of a footer snippet that won't be changed > very often so the simplicity of textile doesn't really matter here. > Honestly I gave up on textile and just styled it by hand. > > ~Nate > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Is the RedCloth extensions known not to work with 0.8.1?
On Oct 16, 2009, at 3:33 AM, Andrew Neil wrote: > Nate, > > Sorry I can't answer your question directly, but as an alternative > you might > consider applying the alternating classes to list elements using > javascript. > Some of the appeal in offering Textile or markdown for content > editors is > that they have a simple syntax to learn, e.g. asterisks create > bullet lists. > As soon as you say to your editors "You have to add a class name in > brackets > after the asterisk (but make sure there is no space between the > asterisk and > the opening bracket!)", you've lost the simplicity of textile. It > would be > preferable to keep the textile code simple, and apply the classes > unobtrusively with javascript. > > The following snippet of jQuery would do the trick: > > $(document).ready(function() { > $("#content ul li:nth-child(3n+1)").addClass("one"); > $("#content ul li:nth-child(3n+2)").addClass("two"); > $("#content ul li:nth-child(3n)").addClass("three"); > }); Thanks for that. But what I am trying to do works in the "try redcloth" area of the redcloth site. So it is within the capabilities of redcloth even though it isn't working in radiant. That's really the focus of my previous post. Well it was intended to be. The unordered list is part of a footer snippet that won't be changed very often so the simplicity of textile doesn't really matter here. Honestly I gave up on textile and just styled it by hand. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Is the RedCloth extensions known not to work with 0.8.1?
Nate, Sorry I can't answer your question directly, but as an alternative you might consider applying the alternating classes to list elements using javascript. Some of the appeal in offering Textile or markdown for content editors is that they have a simple syntax to learn, e.g. asterisks create bullet lists. As soon as you say to your editors "You have to add a class name in brackets after the asterisk (but make sure there is no space between the asterisk and the opening bracket!)", you've lost the simplicity of textile. It would be preferable to keep the textile code simple, and apply the classes unobtrusively with javascript. The following snippet of jQuery would do the trick: $(document).ready(function() { $("#content ul li:nth-child(3n+1)").addClass("one"); $("#content ul li:nth-child(3n+2)").addClass("two"); $("#content ul li:nth-child(3n)").addClass("three"); }); This assumes that the user-editable content is inside a block, so you may have to tweak it to fit your needs. I used this technique to apply alternate bullet point styles to the on this site: http://westportbookfestival.org/media [See the list at the bottom of the page] Hope this helps! Cheers, Drew On Thu, Oct 15, 2009 at 10:53 PM, Nate Turnage wrote: > I am trying to style a list item in a footer snippet and it is not working, > so I decided to try loading the redcloth extension. And now I am getting an > error about an unitialized constant in the redcloth_extension. Is the > redcloth extension still useful for 0.8.1? > > This is what I am trying to do: > > *(class1) List Item One > *(class2) List Item Two > *(class3) List Item Three > > But instead of rendering this: > > > List Item One > List Item Two > List Item Three > > > It renders this: > > > *(class1) List Item One > *(class2) List Item Two > *(class3) List Item Three > > > Styling list items this way works on the Redcloth website: > http://redcloth.org/try-redcloth/ > > Should I report this as a bug somewhere? > > > > ~Nate > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Is the RedCloth extensions known not to work with 0.8.1?
IsnĀ“t there a dot missing? *(class1). List Item One jerry On 15.10.2009, at 23:53, Nate Turnage wrote: *(class1) List Item One ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Is the RedCloth extensions known not to work with 0.8.1?
I am trying to style a list item in a footer snippet and it is not working, so I decided to try loading the redcloth extension. And now I am getting an error about an unitialized constant in the redcloth_extension. Is the redcloth extension still useful for 0.8.1? This is what I am trying to do: *(class1) List Item One *(class2) List Item Two *(class3) List Item Three But instead of rendering this: List Item One List Item Two List Item Three It renders this: *(class1) List Item One *(class2) List Item Two *(class3) List Item Three Styling list items this way works on the Redcloth website: http://redcloth.org/try-redcloth/ Should I report this as a bug somewhere? ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant