[Radiant] Multilingual...
Hello! I've trying to solve an error with the Multilingual Extension. It seems that anything I write inside r:available repeats twice in the selection list (where users select the language they prefer). Any ideas? Here it goes the code... select onchange=location.href=this.value; r:language_selection r:current option selected=selected value=r:url /r:language_name //option /r:current r:available optionEspañol/option /r:available r:unavailable /r:unavailable /r:language_selection /select Any help would be really appreciated, my best regards, -- Paula ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] (stack level too deep) on admin pages
Hi, Radiant 0.8.1 is installed, rails 2.3.4, ruby 1.8 running with mongrel. The main site itself works, with all the content in place etc. But once I log into the admin pages, I receive a stack level too deep error and I'm totally lost with it. It was working until a Radiant update was completed. Full error: Processing Admin::PagesController#index (for 89.238.157.212 at 2009-10-29 15:27:21) [GET] Parameters: {action=index, controller=admin/pages} Rendering template within layouts/application Rendering admin/pages/index ActionView::TemplateError (stack level too deep) on line #1 of /usr/local/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views/admin/pages/_node.html.haml: 1: %tr.node{:id = page-#{page.id}, :class =level-#{level}#{children_class}#{virtual_class}} 2: - render_region :node, :locals = {:page = page, :level = level, :simple = simple} do |node| 3: - node.title_column do 4: %td.page{:style = padding-left: #{padding_left(level)}px} (eval):3:in `all_hashes' (eval):3:in `each_hash' (eval):3:in `all_hashes' radiant (0.8.1) app/helpers/admin/node_helper.rb:38:in `children_class' radiant (0.8.1) app/views/admin/pages/_node.html.haml:1:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/_node.html.haml:25:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) app/views/admin/pages/_node.html.haml:24:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/index.html.haml:19:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47index46html46haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.8.1) app/controllers/admin/pages_controller.rb:16:in `index' radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' Rendering /usr/home/prime/public_html/radiant/public/500.html (500 Internal Server Error) Regards, James Smith, UH Hosting, a division of M247 Ltd www.uh-hosting.co.ukhttp://www.uh-hosting.co.uk/ Phone: +44 (0) 1618 500 8945 Mobile: +44 (0) 7745 137 724 Registered in England and Wales Company Number 04968341 Registered and Postal address: 1 Ball Green, Cobra Court, Stretford, Manchester M32 0QT ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Extension page_attachments no reaction after click
Hello, I´m using a fresh radiant copy 0.8.1 and the latest version of page_attachments. Installation of radiant and the plugin works like a charm. I'm using this steps for installation git clone git://github.com/radiant/radiant-page-attachments-extension.git vendor/extensions/page_attachments rake radiant:extensions:page_attachments:migrate rake radiant:extensions:page_attachments:update But here´s my problem. I would like to upload a attachment to a page. In admin/page/edit I see the green + button. But clicking the button has no result. I didn´nt see the upload form or an other button? The Database Table and Javascript file (page_attachments) are present?? What did I wrong? Who can help? Best regards Boris ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Extension page_attachments no reaction after click
the master branch of page_attachments does not work with 0.8.x anymore you'll need to checkout the 0.8.1 branch. git clone git://github.com/... vendor/extensions/page_attachments # checkout the 0.8.1 branch cd vendor/extension/page_attachments git checkout origin/radiant-0.8.1 cd ../../.. rake radiant:extensions:page_attachments:migrate rake radiant:extensions:page_attachments:update On Thu, Oct 29, 2009 at 1:18 PM, Boris Raeschler boris.raesch...@googlemail.com wrote: Hello, I´m using a fresh radiant copy 0.8.1 and the latest version of page_attachments. Installation of radiant and the plugin works like a charm. I'm using this steps for installation git clone git://github.com/radiant/radiant-page-attachments-extension.git vendor/extensions/page_attachments rake radiant:extensions:page_attachments:migrate rake radiant:extensions:page_attachments:update But here´s my problem. I would like to upload a attachment to a page. In admin/page/edit I see the green + button. But clicking the button has no result. I didn´nt see the upload form or an other button? The Database Table and Javascript file (page_attachments) are present?? What did I wrong? Who can help? Best regards Boris ___ 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
[Radiant] Sphinx Extension help
Hi, I'm pretty new to Ruby and Radiant so please be gentle. I've installed the Sphinx Search extension for a site search facility. I need the search to include several other content models, such as NewsArticles, and not just Pages. I've so far added this to the env ironment.rb config.after_initialize do ThinkingSphinx::Configuration.instance.model_directories # {RAILS_ROOT}/vendor/extensions/news/app/models/ # Add new inflection rules using the following format: ActiveSupport::Inflector.inflections do |inflect| inflect.uncountable 'config' end end This works fine as all the news gets indexed, however I'm struggling to search the news article. When I do a search terms that has NewsArticles in it I get the following error message undefined method `request' for #NewsArticle:0x1064e3a48 I've had a hunt around the code, but can't find anything that seems obvious. I've so far updated the search_page.rb file as follows (it was only previously search the Page object): def process(request, response) @query = request.params[:query] # Ensure search is not run with empty term @results = @query.blank? ? ThinkingSphinx::Search.new (0,@@per_page,0,0) : ThinkingSphinx.search(@query, :page = request.params[:page], :per_page = @@per_page) super end Another thing I've spotted when doing a search with on Page objects in the results is that the excerpt contains html tags. I know I can strip the tags quite easily, but does it mean that the tags are being indexed and as such and class or id attributes etc might appear in search results? One final question, there doesn't appear to be a link tag in the extension's tag class. Do I need to write my own 'link' tag to link to the correct page? thanks John ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Unknown Mailer Issues (mailer help required again)
Hello all, I'm in the process of updating a site from 0.6.x to 0.8.x and everything so far has gone smoothly enough, however over time the mailer extension has changed considerably and I cannot for the life of me see what is going wrong where. The old v.1 just worked for me out of the box. As far as I am aware I have followed the available instructions and have tried several of the branches without success. I am seeing behaviour that is reported elsewhere, redirecting to / pages/1/mail#mailer, I am not receiving any emails. All that is in the production log is: Parameters: {action=create, page_id=1, mailer= {name=*, email=*...@***.com}, controller=mail} environment.rb: ActionMailer::Base.smtp_settings = { :address = mail..co.uk, :domain = .co.uk, :user_name = ***, :password = , :authentication = :login } Adding Radiant::Config['mailer.post_to_page?'] = true seems to have no effect. I don't know where to go from here as there is nothing in the production log that helps. Are there any known issues with mailer to look out for? Is there a simple way to bypass smtp to force a delivery for testing? Any help?? Cheers, Dominic ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] (stack level too deep) on admin pages
Hello James: The issue is not specifically Radiant, but more to do with how your Ruby installation has been compiled: http://stackoverflow.com/questions/242617/how-to-increase-stack-size-for-a-ruby-app-recursive-app-getting-stack-level-too Admittedly, my solution to the problem was to install Ruby Enterprise Edition and all was well. HTH, Nicholas On Thu, Oct 29, 2009 at 12:08 PM, James Smith james.sm...@m247.com wrote: Hi, Radiant 0.8.1 is installed, rails 2.3.4, ruby 1.8 running with mongrel. The main site itself works, with all the content in place etc. But once I log into the admin pages, I receive a stack level too deep error and I'm totally lost with it. It was working until a Radiant update was completed. Full error: Processing Admin::PagesController#index (for 89.238.157.212 at 2009-10-29 15:27:21) [GET] Parameters: {action=index, controller=admin/pages} Rendering template within layouts/application Rendering admin/pages/index ActionView::TemplateError (stack level too deep) on line #1 of /usr/local/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views/admin/pages/_node.html.haml: 1: %tr.node{:id = page-#{page.id}, :class =level-#{level}#{children_class}#{virtual_class}} 2: - render_region :node, :locals = {:page = page, :level = level, :simple = simple} do |node| 3: - node.title_column do 4: %td.page{:style = padding-left: #{padding_left(level)}px} (eval):3:in `all_hashes' (eval):3:in `each_hash' (eval):3:in `all_hashes' radiant (0.8.1) app/helpers/admin/node_helper.rb:38:in `children_class' radiant (0.8.1) app/views/admin/pages/_node.html.haml:1:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/_node.html.haml:25:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) app/views/admin/pages/_node.html.haml:24:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:57:in `non_haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:12:in `render' radiant (0.8.1) app/helpers/admin/node_helper.rb:6:in `render_node' radiant (0.8.1) app/views/admin/pages/index.html.haml:19:in `_run_haml_47usr47local47lib47ruby47gems47146847gems47radiant45046846147app47views47admin47pages47index46html46haml' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:14:in `render' radiant (0.8.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.8.1) app/controllers/admin/pages_controller.rb:16:in `index' radiant (0.8.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process' Rendering /usr/home/prime/public_html/radiant/public/500.html (500 Internal Server Error) Regards, James Smith, UH Hosting, a division of M247 Ltd www.uh-hosting.co.ukhttp://www.uh-hosting.co.uk/ Phone: +44 (0) 1618 500 8945 Mobile: +44 (0) 7745 137 724 Registered in England and Wales Company Number 04968341 Registered and Postal address: 1 Ball Green, Cobra Court, Stretford, Manchester M32 0QT ___ 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
[Radiant] JRuby1.3.1 Rack Cache Error
Hello! Ruby JRuby1.3.1 Rails 2.3.4 WebServer Webrick Radiant 0.8.1 Admin Page is OK site view error occurs. Error cause is cached. Where should be mended? Processing SiteController#show_page (for 127.0.0.1 at 2009-10-29 16:02:37) [GET] Parameters: {controller=site, action=show_page, url=/} ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Redcloth Acronym limitation
I've been experimenting with embedding the 'title' tag. Redcloth does this with the 'acronym mechanism. From http://redcloth.org/textile/writing-paragraph-text/ there is the example The EPA(Environmental Protection Agency) is measuring GHG(greenhouse gas) emissions. being mapped to pThe acronym title=Environmental Protection Agency span class=capsEPA/span/acronym is measuring acronym title=greenhouse gasspan class=capsGHG/span/acronym emissions./p The key bit here is that the title=Environmental Protection Agency causes a popup. I want to do a similar thing but end up as tag title=explanatory text multi word stuff, not upper case /tag The 'tag' will probably be a span The best I've figured out is ==span title=explanatory text multi word stuff, not upper case /span== which is a bit clunky. Any ideas? -- Between the iron gates of fate, The seeds of time were sown, And watered by the deeds of those Who know and who are known; Knowledge is a deadly friend When no one sets the rules. The fate of all mankind I see Is in the hands of fools. - Greg Lake ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant