0
Welcome Guest! Login
0 items Join Now

Display Page Content in Particle

    • Jain's Avatar
    • Jain
    • Jr. Rocketeer
    • Posts: 26
    • Thanks: 0

    Display Page Content in Particle

    Posted 7 years 9 months ago
    • Hi,

      Basically, I'm trying to create a particle that displays the content of a page that is selected in the particle settings. I just can't get it to work though because I'm not 100% sure how to call the parameter in the .twig file.

      So far I have the YAML is as so:

      name: WordPress Page
      description: Display the contents of a Wordpress Page.
      type: particle
      icon: fa-wordpress

      form:
      fields:
      enabled:
      type: input.checkbox
      label: Enabled
      description: Globally enable WordPress Posts particles.
      default: true

      post.filter.pages:
      type: wordpress.posts
      label: Page
      description: Select the page the content should be taken from.
      overridable: false

      How do I call the results of post.filter.pages and display post.post_content for it?

      Please let me know id this doesn't make sense.

      Thanks!
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Display Page Content in Particle

    Posted 7 years 9 months ago
  • Re: Sourcing content from Wordpress in Ambrosia

    Posted 7 years 9 months ago
    • Hi I am trying to recreate the demo of Ambrosia. But in the Mainbar, that is under the tabs [News, Games, Article] (plz refer the demo site) I want to source content from Wordpress and not through Simple source. How do I do that? I am using my site for online magazine. Hence it makes sense for me only if I feed content through the CMS unlike Simple source. Please help.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Sourcing content from Wordpress in Ambrosia

    Posted 7 years 9 months ago

Time to create page: 0.047 seconds