Git Product home page Git Product logo

Comments (9)

etewiah avatar etewiah commented on June 16, 2024

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.

from property_web_builder.

cvillalba avatar cvillalba commented on June 16, 2024

Hi Ed

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

Cheers

from property_web_builder.

etewiah avatar etewiah commented on June 16, 2024

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.

from property_web_builder.

cvillalba avatar cvillalba commented on June 16, 2024

@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

from property_web_builder.

etewiah avatar etewiah commented on June 16, 2024

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!

from property_web_builder.

cvillalba avatar cvillalba commented on June 16, 2024

from property_web_builder.

etewiah avatar etewiah commented on June 16, 2024

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

from property_web_builder.

cvillalba avatar cvillalba commented on June 16, 2024

from property_web_builder.

etewiah avatar etewiah commented on June 16, 2024

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.

from property_web_builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.