Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:46
    shohey1226 commented #943
  • Nov 17 14:34
    Fodoj opened #946
  • Nov 17 09:16
    Fodoj commented #892
  • Oct 04 15:16
    djmaze commented #907
  • Oct 04 15:15
    djmaze commented #907
  • Oct 01 09:06
    RadoslavMarinov opened #945
  • Sep 02 14:49
    ritec commented #944
  • Aug 30 18:00
    mountaindog opened #944
  • Aug 20 03:29
    LetianChen commented #909
  • Aug 03 04:59
    bkeepers commented #943
  • Aug 03 04:58
    bkeepers closed #942
  • Aug 03 04:58
    bkeepers commented #942
  • Aug 03 04:56
    bkeepers commented #943
  • Aug 03 04:53
    bkeepers opened #943
  • Aug 02 17:39
    bkeepers opened #942
  • Jul 16 15:33
    webdev778 synchronize #936
  • Jul 13 15:46
    Fodoj commented #931
  • Jul 10 18:32
    donrestarone closed #941
  • Jul 10 18:32
    donrestarone opened #941
  • Jul 07 18:58
    pwoltman commented #907
Karol Topolski
@ktopolski
Screen Shot 2019-11-20 at 13.49.51.png
Karol Topolski
@ktopolski
OK so I ended up uploading file via rails console and Comfy::Cms::File model. Saved with validate: false cause I had to skip file attribute presence validation. I attached manually to attachment.
Justin Gordon
@justin808
Hey everybody! Big thanks for the gem! It's awesome.
Big question: we click the <> to edit the HTML in a wysiwyg, and the data saves just fine. But then if we make any edit, even to a different field, the HTML source gets all sort of <p> tags and it's no longer html. Any ideas? Should I open an issue for this?
Oleg
@GBH
@justin808 Please make an issue. I'm guessing that Redactor is doing something weird, but who knows.
Justin Gordon
@justin808
@GBH the workaround is to only edit the HTML by adding attributes to the tags created by Redactor. My co-worker wanted to put a <style> block above the HTML. Are there any docs for what sort of limitations there are with editing the HTML?
Justin Gordon
@justin808

How can I see what user did what update? Is there some glue to the current_user?

2019-12-29_12-48-41.png

chintansheth2001
@chintansheth2001
how can I update WYSIWYG editor
Is there any document for that
Daniel
@chiubaka
Hello! Does anybody know if there's an option to disallow or sanitize <script> tags entered into the WSIWYG? I had an outside security review recently and they flagged this as problematic...
masanarih0ri
@masanarih0ri

I am a beginner developer.
I have been worried since yesterday. I have two pages that are content pages managed by this CMS (mexican-sofa).
https://example.com/interviews
https://example.com/seminars

I put these on the TOP page (https://example.com/
).
Is there a way to do that? I wrote the following code in application_controller using before_action
```

before_action :redirect_cms_pages

private
def redirect_cms_pages
redirect_cms_pages_list = ["/interviews", "/seminars"]
current_fullpath = request.fullpath
redirect_to '/' if redirect_cms_pages_list.include?(current_fullpath)
end

```

m.b.
@mbajur
hey there! is that technically possible to create a custom tag which accepts a block argument? So it's possible to do something like that: {{ gallery-row }} image tags {{ /gallery-row }}
Tom Aranda
@taranda
Is it possible to grant admin access on a page by page basis? I would like some administrators to be able to edit some pages in the site but not others. I am using CanCanCan and Devise. This is a major feature we are looking for.
thomaseude
@thomaseude
hey there, I have problem when I deploy on heroku my picture disappear 😢
Any tips for me ?
image.png
Peter Albertson
@petealbertson
image.png
I have a site with a lot of files and site admins need the ability to attach the same files somewhat often. I'm wondering if there's a reason why there's a limit on the ajax request for files in the redactor chooser?
This is from the files_controller.rb
Oleg
@GBH
I think because there's no pagination on that widget. Loading everything under the sun might be a bad idea.
Atulshukla8957
@Atulshukla8957
Hi Team,
I want to call {{ cms:page:events:event_grid }} as per parent on particular layout can someone suggest me best approach ?
Stanley Liu
@stanleypliu
hi @GBH, i'm upgrading an old app to use ActiveStorage instead of Paperclip, and have almost completely set it up by now, the only issue is that now the ActiveStorage routes are inaccessible as they come after the CMS routes in priority, so I tried using your config.railties_order fix, defining ActiveStorage::Engine first, but now helper methods in app/helpers aren't being imported properly so it breaks the website. perhaps it's in :all? i'm relatively new to Rails, so wanted to understand better how to solve it
Stanley Liu
@stanleypliu
never mind, i managed to solve it by putting setting the order [ActiveStorage::Engine, :main_app, :all] as shown
Matt Polito
@mattpolito
Hello all! Was wondering if anyone else is seeing a huge performance hit when going to a comfy page edit? It seems to be from building the page structure tree to populate the parent and redirect dropdowns.
Matt Polito
@mattpolito
I checked the issues/pr on github but didn't notice anyone else mentioning it so thought I'd pop in here to ask
Stanley Liu
@stanleypliu

wondering whether anyone has had experience with integrating PgSearch with CMS? prior to upgrading to CMS 2.0 this code worked to allow Comfy pages to be indexed:
`module FragmentSearch
extend ActiveSupport::Concern

included do
include PgSearch
multisearchable against: :content, if: -> (record) { record.identifier == "content" }
end
endtrying to launch the server constantly fails with unidentified method 'has_many_attached?' despite ActiveStorage being installed I tried include ActiveStorage::Attached::Macros` but the same message still appears. help is much appreciated. TIA

Craig Hoffman
@mountaindog
Question - My production server is running Nginx through a reverse proxy. The proxy url, for example, looks like this: https://server.example.com/hello/world. When I log in to Comfy and navigate the /admin, I see the left nav links, Site, Layouts, Pages, Etc... When hovering over the links, they do not show the correct URL. They show https://server.example.com/admin/sites. They need to show the full path such as https://exmaple.com/hello/world/admin/sites. Any idea where I can make such changes? Does this make sense?
Emmanuel Hayford
@siaw23
Hi all. I would like to reverse (newest blogs posts first) the order of blog entries in the admin page. How can I achieve this. I'll appreciate some directions. So on this page https://gyazo.com/05aeedba487e3f6a0411ade067577960 "Testo" should be last, "two" (which is latest) should be first. Any idea what to tweat to achieve this?
Damien Sutevski
@dam13n
on my CMS post, I am trying to render a partial, but it just ends up being a string:
<%= render partial: "views/comfy/blog/blogs_rail", locals: {} %>
in the layout, i have: {{ cms:partial 'views/comfy/blog/blogs_rail' }}
appreciate any guidance on this? have googled and looked around github. tried erb, tried slim, and messed around with partial content tag in my local gem.
Damien Sutevski
@dam13n
@siaw23 fyi, you can modify the index file for your posts to be whatever you want. then just put a date order on this: - @blog_posts.each_with_index do |post, index|
@blog_posts.order(created_at: :asc) do |post| (<--- probably this)
Damien Sutevski
@dam13n
@GBH any idea on my issue using partials? looks like a few other users in this chat history may have had similar issues
Damien Sutevski
@dam13n
@datenimperator it seems you also had this issue. the partial tag renders to ERB but doesn't get evaluated and just shows as a string once the view is rendered. how did you fix it?
Paul Bailey
@psbailey31
Does anyone know how to stop the wysiwyg editor from stripping divs in the pages editor? I'd prefer to use the editor in the layouts page as its much nicer so if there is an easy way to switch that I'd be interested to hear too :)
I tried the coffeescript in comfy/comfortable-mexican-sofa#609 but that just broke the textarea box
chintansheth2001
@chintansheth2001
is there any other way to change field name
{{ cms:page_file:other_image }}
it show Other Image
but I want to change label but keep other_image field
ex .{{ cms:page_file:other_image:name:img }}
Chris Payne
@chrisatboilerjuice
Hello, is there a way to add Ruby code to the Snippet or in the Layout content? for example, I've created a snippet called: footer-snippet and the content is: "<p>The current year is <%= Date.today.year %></p>" and then include it in my application view like "<%= cms_snippet_content('footer-snippet').html_safe %>" the current year isn't displayed, tried a fair few different combinations and couldn't find a solution.
webdev778
@webdev778
hi everyone
I'm newbee to here this communitiy, I'm working on the migration from v1.12 to v2.0
now I wanna ask about "Javascript.js" part how v2.0 deal with it
Thanks in advance for you, appreciate your help
Greg
@remiasz_twitter
Does anyone know the current/future planned support for this project? I see a few MRs sitting around and no release in quite some time. @GBH
Peter Albertson
@petealbertson
Has anyone ever successfully used the drag and drop sorting for a custom comfy scaffold?
Peter Albertson
@petealbertson
nvm i figured it out lol
Peter Albertson
@petealbertson
Not sure this channel is active anymore but has anyone ever exported into cms_seeds a non-comfy model?
in other words, I have a non-comfy model that renders like pages, so needs fragments, but this model gets left out when doing a cms export.