Skip to content
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

Closed
cvillalba opened this issue Jun 7, 2017 · 9 comments
Closed

Comments

@cvillalba
Copy link
Collaborator

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

@etewiah
Copy link
Owner

etewiah commented Jun 7, 2017

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.

@cvillalba
Copy link
Collaborator Author

cvillalba commented Jun 7, 2017

Hi Ed

Yes I have content in both Legal Notice and Privacy Policy, also in both Spanish and English.

Cheers

@etewiah
Copy link
Owner

etewiah commented Jun 8, 2017

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:

content = Pwb::Content.find_by_key("privacyPolicy")
content.raw_es
content.raw_en

Let me know if there is content for raw_es and raw_en.

@cvillalba
Copy link
Collaborator Author

@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

@etewiah
Copy link
Owner

etewiah commented Jun 14, 2017

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!

@cvillalba
Copy link
Collaborator Author

cvillalba commented Jun 14, 2017 via email

@etewiah
Copy link
Owner

etewiah commented Jun 15, 2017

No, the contents table only get populated by the seed tasks when no rows exist.

@cvillalba
Copy link
Collaborator Author

cvillalba commented Jun 15, 2017 via email

@etewiah
Copy link
Owner

etewiah commented Jun 15, 2017

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.

@etewiah etewiah closed this as completed Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants