Re: [Radiant] help with the docs?
Hi Allen! On 11/10/06, Allen [EMAIL PROTECTED] wrote: I offered to help with the documentation a couple of days ago on radiant-docs and didn't get a reply, maybe because no one looks at that list. Anyhow, I'd still like to help with the docs. Awesome! John asked me to take an official role for documentation a couple of weeks ago, as I've been putting stuff from the list into the wiki. I've been busy working this month, but next month is quieter and I hope to be productive then; the handbook is the first thing I want to look at. Sorry I missed the posts to the docs list, -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] help with the docs?
On 11/10/06, Allen [EMAIL PROTECTED] wrote: I offered to help with the documentation a couple of days ago on radiant-docs and didn't get a reply, maybe because no one looks at that list. Anyhow, I'd still like to help with the docs. Awesome! John asked me to take an official role for documentation a couple of weeks ago, as I've been putting stuff from the list into the wiki. I've been busy working this month, but next month is quieter and I hope to be productive then; the handbook is the first thing I want to look at. Sorry I missed the posts to the docs list, -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Presentation PDF
On 06/10/06, Alexander Horn [EMAIL PROTECTED] wrote: If there's a lot of call to see a live demo, I could probably put up the version that I currently have so that everyone could take a look at it. I second it. Me too :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How do I install RadiantCMS with Instant Rails (windows)?
On 25/09/06, John W. Long [EMAIL PROTECTED] wrote: John Woo wrote: Actually I meant how do I install RandiantCMS in Instant Rails for Windows. The easiest way is to get to a command prompt and type: Added to the wiki: http://dev.radiantcms.org/radiant/wiki/HowToInstantRailsWindows -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] check for children
On 24/09/06, Steven Noels [EMAIL PROTECTED] wrote: In my base template, I want to output a div only if some children of the current page exist. How can I check for children of a page? You need to define a new tag like r:if_children that would work like this: ul r:children:each by=title order=asc lir:link //li /r:children:each /ul /r:if_children This is explained in more details on the wiki - to which I hope you'll contribute your experiences with! :-) http://dev.radiantcms.org/radiant/wiki/HowToDefineGlobalTags -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How to add css styles to a website?
On 20/09/06, John W. Long [EMAIL PROTECTED] wrote: Giovanni Intini wrote: Create a layout with content type text/css and paste your css code there. It's probably better to create a layout with a content type of text/css and put just the tag r:content / in the layout. Then create a page, assign the layout, and paste your css in the body part. That's how I handle my site-lever CSS file. I wrote a HowTo on the wiki for the way I approached page-level CSS: http://dev.radiantcms.org/radiant/wiki/HowToMakePageLevelCSSElegant -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Outputting the content of all parts of a page
On 18/09/06, Giovanni Intini [EMAIL PROTECTED] wrote: Glad I could help :) Okay, added to the wiki as a Recipe :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Submenu
Hi, I have 2 snippets for my navigation. 1. Primary Navigation: - 8 -- diva href=/img alt=UKTUG height=50 width=85px src=/images/uktug/texlogo_50.png //a/div h2 class=structuralSite Navigation/h2 ul id=primarynavigation lia href=/Home/a/li lia href=/membershipMembership/a/li lia href=/eventsEvents/a/li lia href=/resourcesResources/a/li lia href=/constitutionConstitution/a/li lia href=/baskervilleBaskerville/a/li li class=lasta href=/contactContact/a/li lia href=/aboutAbout/a/li /ul a href=/img width=760px height=100px alt=Masthead Image of a Lion, the TeX mascot src=/images/uktug/lions/100/grey/r:random r:optiongrey/r:option r:optionmgm/r:option r:optionmow/r:option r:optionsculpture/r:option r:optiongrass/r:option r:optionbronze/r:option r:optioniron/r:option r:optionholborn/r:option r:optiondollar/r:option r:optionphoto/r:option r:optionfairmount/r:option r:optioneye/r:option r:optiondayglo/r:option r:optionsand/r:option r:optionhsbc/r:option r:optiongreen/r:option r:optionboston/r:option r:optionegypt/r:option r:optiondoor/r:option r:optionchina/r:option /r:random_100.jpg //a -- 8 -- 2. SecondaryNavigation -- 8 -- h2 class=structuralBreadcrumbs/h2 p class=breadcrumbsr:breadcrumbs separator= rarr; //p h2 class=structuralChild Pages/h2 ul id=secondarynavigation li class=structuralr:title //li r:children:eachlirarr; r:link //li/r:children:each /ul And then this 'Normal' Layout: -- 8 -- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en-US head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titler:title //title link href=/favicon.ico rel=shortcut icon / link rel=stylesheet type=text/css href=/stylesheet.css / r:if_content part=stylesheetstyle type=text/css r:content part=stylesheet/ /style/r:if_content /head body div id=main div id=header r:snippet name=primarynavigation / r:snippet name=secondarynavigation / hr / /div div id=content h1r:title //h1 div id=body r:content / /div div id=footer hr / r:snippet name=footer / /div /div /div /body /html -- 8 -- Note the smart way of including page-level CSS by just creating a 'stylesheet' Page Part in the Admin Interface, but if no part of that name exists then the page does now show any signs of it. (Just added to Receipes on Wiki :-) I also want to follow the r:if_child to the secondarynavigation so instead of h2 class=structuralChild Pages/h2 ul id=secondarynavigation li class=structuralr:title //li r:children:eachlirarr; r:link //li/r:children:each /ul I can do h2 class=structuralChild Pages/h2 ul id=secondarynavigation r:if_children r:children:eachlirarr; r:link //li/r:children:each /r:if_children /ul But not had time yet :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Dynamic pages strategies?
On 18/09/06, John W. Long [EMAIL PROTECTED] wrote: Ian Gordon wrote: This is probably something I am looking for. I am looking to make it a bit more robust with custom CSS, proper field validation and authentication from spam bots. Here is the form I use on my mailer, which passes the http://fae.cita.uiuc.edu tests form action=/contact method=post class=mailer-form enctype=multipart/form-data fieldset legendContact Us/legend input type=hidden name=mailer_name value=contact / label for=nameName/label input type=text name=mailer[name] class=mailer-field id=name value=Enter Name Here /br / label for=emailEmail/label input type=text name=mailer[email] class=mailer-field id=email value=Enter Email Here /br / label for=messageMessage/label textarea name=mailer[message] class=mailer-field cols=35 id=message rows=5 Enter Message Here/textareabr / input type=submit class=mailer-button id=submit value=Send / /fieldset /form r:comment fieldset r:mailer:form name=contact p r:mailer:text name=name value=Enter Name Here /br / r:mailer:text name=email value=Enter Email Here /br / r:mailer:textarea name=messageEnter Message Here/r:mailer:textareabr / r:mailer:submit id=submit value=Send / /p /r:mailer:form /fieldset /r:comment Please share the results when you get something working. I'd like to second that :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Menu and Page Menus
On 18/09/06, Ian Gordon [EMAIL PROTECTED] wrote: Anyway, let me know if anyone thinks this is worthwhile and how I might go about implementing it. I'd be very interested to see what you come up with for this :-) Rather than a behaviour, perhaps a 'Global Tag' is more like what you want to make: http://dev.radiantcms.org/radiant/wiki/HowToDefineGlobalTags -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Mailer Behavior for Radiant XHTML Bug
On 14/09/06, John W. Long [EMAIL PROTECTED] wrote: Dave, perhaps you could create a patch for this and send it to Matt McCray. Plugins are pretty easy to modify. Could you point me in the direction of tutorials to do this? I'm happy to but don't know how :-) When I just changed the lib/mailer.rb file then my changes did not take effect, so I put the r: code for the form in an r:comment and copy and pasted the generated XHTML form back into the page part and edited it from there, both for XHTML compliance and for accessibility with fieldset and legend tags, which need all inputs to have id attributes. form action=/contact method=post class=mailer-form enctype=multipart/form-data fieldset legendContact Us/legend input type=hidden name=mailer_name value=contact / label for=nameName/label input type=text name=mailer[name] class=mailer-field id=name value=Enter Name Here /br / label for=emailEmail/label input type=text name=mailer[email] class=mailer-field id=email value=Enter Email Here /br / label for=messageMessage/label textarea name=mailer[message] class=mailer-field cols=35 id=message rows=5 Enter Message Here/textareabr / input type=submit class=mailer-button id=submit value=Send / /fieldset /form -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] r:random and page children
On 14/09/06, Sean Cribbs [EMAIL PROTECTED] wrote: I've been following this thread, but haven't replied yet. The problem may be a tag scoping issue, and maybe a custom tag is in need here. tag children:random do |tag| children = tag.locals.children if children.size 0 index = rand(children.size) tag.locals.page = children[index] tag.expand end end Then in your page, write r:children:random /r:title //r:children:random or just r:children:random:title / This will only select one child page, mind you, and would need to be modified to select more than one. I've added this to the wiki at http://dev.radiantcms.org/radiant/wiki/HowToDefineGlobalTags -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] r:random and page children
On 14/09/06, Sean Cribbs [EMAIL PROTECTED] wrote: FYI Peek at the weblog... http://radiantcms.org/blog/ That is awesome! Thank you! -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Files on the Filesystem not managed by Radiant
On 13/09/06, Bodhi [EMAIL PROTECTED] wrote: Good luck! mod_rewrite is sometimes just black-magic :) Yup :-) I've tried commenting out that line and removing my specific rewrites, but it doesnt work. I suspect a system wide apache configuration with my hosting provider (www.primehosting.co.uk who are excellent btw :-) and have emailed their support team. Thanks! -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Mailer Behavior for Radiant XHTML Bug
Hi, While validating my XHTML pages I got an error from the Mailer Behavior: # Build the html form tag... results = %Q(form action=#{ url } method=POST can be # Build the html form tag... results = %Q(form action=#{ url } method=post and it validates. I'm not sure why it is capitalised? :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] FileListBehavior not using path attribute
On 12/09/06, James MacAulay [EMAIL PROTECTED] wrote: Sorry about that...my fault entirely. I forgot to update the readme when I changed the way the attributes worked. Haha okay cool :-) Works perfectly - thank you! :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Files on the Filesystem not managed by Radiant
Hi, I have radiant installed via gem and then executed on the directory /home/ukktug/radiant/ I then have a symlink /home/ukktug/public_html - radiant/public/ This is then servied via Apache with FCGI to Rails (I think :-) I have a lot of older legacy files which I would like to place in the public directory, and slowly migrate them into the Radiant system. So ideally I want Apache to serve files that exist, and any that 404 to pass to Radiant to serve or acutally 404. Is this possible? -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Next and Previous Articles
On 11/09/06, Sean Santry [EMAIL PROTECTED] wrote: Hi Sean, Thanks for the quick response! :-) If I want to use these behaviours, how do I go about that? :-) Create a file named 00_next_previous_behavior.rb, paste in the code, and save it to your radiant/app/behaviors directory. Then restart the app. There was no radiant/app directory so I've created it and its behaviors child. I now get these errors: undefined tag `previous' undefined tag `next' Could this work if it was packaged as a plugin? -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Next and Previous Articles
On 12/09/06, Sean Santry [EMAIL PROTECTED] wrote: There was no radiant/app directory so I've created it and its behaviors child. I now get these errors: Sorry, Dave, I should have been more clear. In your Radiant installation (wherever that is), find the app directory, in which there should be a behaviors directory. For example, if you installed radiant in /home/dave/foo/radiant-0.5.2, you should put the 00_next_previous_behavior.rb in /home/dave/foo/radiant-0.5.2/app/ behaviors/. Ah, another issue caused by using the gem installation then. I'll look into using the SVN version I think :-) Thanks again! -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] FileListBehavior not using path attribute
Hi, I'm having a problem with the FileListBehavior not using the path attribute specified, only the radiant/public directory... I have a child of the homepage, 'Images', with the following body part: --8 -- Here is a list of files in this directory: r:files:each path=/home/ukktug/radiant/public/images/ glob=* * r:name /:r:uri / /r:files:each --8 -- Filter is textile, behaviour is set. The URL is http://uk.tug.org/images/ -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Virtual domain plugin patching
Hi, Following the instructions on http://theplant.jp/blog/2006/07/27/radiant-virtual-domain-plugin I have a problem with the patching stage: $ patch -p0 vendor/plugins/virtual_domain/virtual_domain.patch can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: app/controllers/site_controller.rb |=== |--- app/controllers/site_controller.rb (revision 87) |+++ app/controllers/site_controller.rb (working copy) -- File to patch: [EMAIL PROTECTED] [~/radiant]# I've search the radiant directory for site_controller.rb but can't see it. Does it apply to rails? -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Next and Previous Articles
On 06/09/06, Sean Santry [EMAIL PROTECTED] wrote: Here's the corrected version: If I want to use these behaviours, how do I go about that? :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Another question - Entering metadata
On 29/08/06, Nathan Wright [EMAIL PROTECTED] wrote: Let me know and I'll see if I can work up a diff for you. I'd also be interested in this :-) -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] New breadcrumbs tab for use in title ?
Hi, I'm wondering how I would go about implementing a new breadcrumb Radius tag, so I can do something like ... head titler:breadcrumbs home=ThisSite separator=: //title /head body in my XHTML layouts. -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Roadmap?
On 29/08/06, John W. Long [EMAIL PROTECTED] wrote: 1. I'm leaning away from implementing a fine-grained permissions system. Mainly I don't think it is very consistent with Radiant's focus to be a CMS for small teams. I agree 2. I have recently begun to question whether version control is needed or not. I can see the benefits, but am not sure that the complexity is worth it. I think Version Control can be done in a simple way - www.infogami.com has a nice implementation for example. -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Effect of rarr; in r:breadcrumbs /
Hi, I'm trying to use the following in a footer snippet: r:breadcrumbs between= rarr; / larr; You are here Problem is, the rarr; is converted into a gt; for some reason. How can I fix this? I'm very new to Rails and Radiant. -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Effect of rarr; in r:breadcrumbs /
On 22/08/06, Bob Showalter [EMAIL PROTECTED] wrote: On 8/22/06, Dave Crossland [EMAIL PROTECTED] wrote: Hi, I'm trying to use the following in a footer snippet: r:breadcrumbs between= rarr; / larr; You are here Looks like it should be separator instead of between Ah yes, I see that looking at http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb instead of the Tags Part 1 blog post I was working from before :-) -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Problems with r:random tags
Hi, I'm now having a problem with the r:random tag for inserting a random image into a snippet. I've looked at http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb where I see: # r:random # r:option.../r:option # r:option.../r:option # ... # r:random # # Randomly renders one of the options specified by the 'option' tags. # define_tag 'random' do |tag| tag.locals.random = [] tag.expand options = tag.locals.random option = options[rand(options.size)] option.call if option end define_tag 'random:option' do |tag| items = tag.locals.random items tag.block end It seems to me that the r:option tags used in the comments don't match the line define_tag 'random:option' do |tag| and so I tried r:random:option instead, but to no avail. Here is the snippet: div class=randomimage a href=/img alt=This is a random image height=100 width=600 src=/images/banners/ r:random r:random:optionbanner1/r:random:option r:random:optionbanner2/r:random:option /r:random .jpg //a /div TIA, -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problems with r:random tags
Hi John! On 23/08/06, John W. Long [EMAIL PROTECTED] wrote: Dave Crossland wrote: Here is the snippet: div class=randomimage a href=/img alt=This is a random image height=100 width=600 src=/images/banners/ r:random r:random:optionbanner1/r:random:option r:random:optionbanner2/r:random:option /r:random .jpg //a /div What output do you get from the above? Keep in mind that if the page is being cached you won't see a difference for at least 5 minutes. The output is: div class=rowbleed a href=/img alt=iMethod height=275 width=600 src=/images/banners/ .jpg //a /div And yes I have cleared the page cache. And, I love this system! Thanks for releasing it as free software! :-) -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problems with r:random tags
On 23/08/06, John W. Long [EMAIL PROTECTED] wrote: Dave Crossland wrote: Ok, the extra new lines are the problem. Radiant tags observe whitespace (that is, they won't trim extra newlines off for you). Instead of the what you had, try this: r:snip See the difference? Yes - excellent - many thanks! :-) Oh, and you don't have to prefix the r:option / tags with random:. Yes I see this is how the documentation in the comments is; since it wasn't working I tried looking at the ruby. -- Regards, Dave ___ Radiant mailing list Radiant@lists.radiantcms.org http://lists.radiantcms.org/mailman/listinfo/radiant