[Radiant] check for children
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? /Steven -- Steven Noelshttp://outerthought.org/ Outerthought Open Source Java XML stevenn at outerthought.orgstevenn at apache.org ___ 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] check for children
Dave Crossland wrote: 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 Perhaps, but the children:each tag will only work if children exist. So in a sense it encapsulates the if_children idea. If you give us a little more context or detail, I might be able to come up with some code that will do the trick. Sean Cribbs seancribbs.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Manual page sorting in admin view
This in part comes from my desire (like others) to generate tree-style navigation for a website, and (personally) to improve generated sitemaps. This might introduces more complication than the end-result warrants, but I'll toss it out there anyway. What I'm thinking about (and unskillfully hacking at) is the ability to manually sort the admin view via DnD and to have r:children use this ordering. After some poking around, it looks like it would require these changes: 1) A new 'position' column in the pages table. 2) upon creation, a page would be given a position of parent.children.count - any virtual pages. This would put new pages at the botom of the list (instead of placing them by title). 3) upon page deletion, any siblings with greater position would need that value decremented 4) a reposition method 5) tweaks to the page index view to allow the re-ordering, and some kinda no-JS fallback up/down arrows. There is quite likely more code it would touch... so I ask: does anyone want this and would it be worth it? -Tom ___ 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] Manual page sorting in admin view
I think anyone would like that (me for sure). There was some talk of dnd ordering in the list some time ago, check the archives, and it was mostly positive talking :)2006/9/24, Tom von Schwerdtner [EMAIL PROTECTED]:This in part comes from my desire (like others) to generate tree-style navigation for a website, and (personally) to improve generatedsitemaps.This might introduces more complication than the end-resultwarrants, but I'll toss it out there anyway.What I'm thinking about (and unskillfully hacking at) is the ability to manually sort the admin view via DnD and to have r:children usethis ordering. After some poking around, it looks like it wouldrequire these changes:1) A new 'position' column in the pages table. 2) upon creation, a page would be given a position ofparent.children.count - any virtual pages.This would put new pagesat the botom of the list (instead of placing them by title).3) upon page deletion, any siblings with greater position would need that value decremented4) a reposition method5) tweaks to the page index view to allow the re-ordering, and somekinda no-JS fallback up/down arrows.There is quite likely more code it would touch... so I ask: does anyone want this and would it be worth it?-Tom___Radiant mailing listPost: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ 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?
2006/9/20, John W. Long [EMAIL PROTECTED]: 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. Well, i figured out how to apply css to one page, but the children won't use the styles. I just don't get a site-wide css working with the possibilties radiant offers. How it works with a static css file is clear to me. Can someone give me a little more help :-) ? Thanks, Tino ___ 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] Adding an asset sytem to Radiant
Kevin,The plugin sounds great. I already have a pretty hacked up admin interface myself, I'm not looking forward to upgrading... But hopefully everything that I've done so far can be made into plugins. I'd be really interested to see what you have done, but I'll just guess I'll have to wait :D. Do you know when 0.6 is scheduled to be released?ChrisOn 9/25/06, Giovanni Intini [EMAIL PROTECTED] wrote: 2006/9/24, Kevin Ansfield [EMAIL PROTECTED]:Great news, I will eagerly wait for that plugin :) (even though asset management should be in core IMHO) However... adding this kind of functionality should be a lot easier once the new plugin system has been fleshed out. I'll definately be looking at creating an assets plugin as soon as the core developmentis in a reasonably usable state. ___Radiant mailing listPost: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] How do I start RadiantCMS with Instant Rails?
I've searched everywhere on Google and I can't find the answer because probably it's the dumbest question and everyone has it figured it out. But it's like I couldn't find the switch to power on my PC. I've got Instant Rails working on my Windows XP and the integrated gem Typo works too. I downloaded RadiantCMS but how do I start it?! - Ruby no rails -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Still problems with Radiant in a Subdirectory
I'm still having problems trying to get Radiant to work in a subdirectory. I've tried most of the suggestions but am still getting all sorts of errors. I tried adding the behavior that was suggested, but that generated an error in the Apache log and an Application error is generated: /var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in `load': /var/www/radiant/public/../config/../app/behaviors/root_behavior.rb:12: parse error, unexpected kEND, expecting $ (SyntaxError) from /var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in `load' I tried adding the line to the environment.rb file: ActionController::AbstractRequest.relative_url_root ='/radiant/' but that doesn't help. It sorts of work but the stylesheet doesn't load, as it's trying to load it from the root of my web server. I changed the layout to not do /style.css but just style.css and that loads fine. However all of the links for the articles are based off the root of the server, not the subdirectory. In the Admin interface (which works in the subdirectory), when I try to click the '+' to expand an item, it takes quite a while for a response, and then the HTML headers are displayed on the page: Set-Cookie: _session_id=98a0068fd3ae9f53b6cc850ec7500577; path=/ Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html;charset=utf-8 0 Any more hints to get this working would really be appreciated. Thanks. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant