-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legal Notice and Privacy Policy links in the footer won't display content #24
Comments
Can you confirm that there is content provided to be displayed? The link in the admin panel is "/en/admin/website/content/legal" On the demo site the content displayed corresponds to what is provided in the admin panel. |
Hi Ed Yes I have content in both Legal Notice and Privacy Policy, also in both Spanish and English. Cheers |
That is quite strange. Can you tell me if you get some content returned at this url: /api/v1/web-contents?filter%5Btag%5D=legal You can also start a console session with "heroku run rails console" and type the ff:
Let me know if there is content for raw_es and raw_en. |
@etewiah I see the content on all the options you tell me to see. I don't get why I can't see the content in the site |
Apologies for the delay in getting back to you. I can see what has happened. I am now using a "section_key" column and I forgot that your installation would not have had that column populated. Please got to the heroku console ( "heroku run rails console" ) and type the following:
|
Hi Ed
Thanks I'll try this as soon as I get home.
One question about it, din't this column should have been populated when I
ran the seed back when I had the menu display issue?
Cheers
2017-06-14 6:16 GMT-04:00 Ed Tewiah <notifications@github.com>:
… Apologies for the delay in getting back to you. I can see what has
happened.
I am now using a "section_key" column and I forgot that your installation
would not have had that column populated. Please got to the heroku console
( "heroku run rails console" ) and type the following:
privacy = Pwb::Content.find_by_key("privacyPolicy")
privacy.section_key = "privacy"
privacy.save!
legal = Pwb::Content.find_by_key("legalAdvice")
legal.section_key = "legal"
legal.save!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFYslTI1kW6yx5AuoVoTyXQtZLqadW2Dks5sD7L2gaJpZM4NyJ7V>
.
--
Carlos Antonio Villalba Julio.-
|
No, the contents table only get populated by the seed tasks when no rows exist. |
Ohh, so how I can recreate the tables with all the rows required?.
btw, the fix worked, but after I apply the commands you sent me, the site
didn't load at all so I ran the seed again and everything load perfectly
Thanks again.
Cheers
2017-06-15 8:16 GMT-04:00 Ed Tewiah <notifications@github.com>:
… No, the contents table only get populated by the seed tasks when no rows
exist.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFYslXVQV97SA4CS1qKiWEK-LZorkYvkks5sESCDgaJpZM4NyJ7V>
.
--
Carlos Antonio Villalba Julio.-
|
If the contents table has no rows, it will get populated by the seed task. If you really want to recreate the table, delete all rows and run the seed task - you should only do that if there is a good reason though. Right now everything is fine so I would not do that. |
Hi @etewiah
I notice that Legal Notice and Privacy Policy links in the bottom of the footer don't display any content when one click them.
Let me know if I can help you fix this.
Cheers
The text was updated successfully, but these errors were encountered: