Giter Club home page Giter Club logo

Comments (13)

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Yes, overriding the root path seems to be difficult. /products does work?

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

On 21 feb. 2012, at 19:05, "Kobius" [email protected] wrote:

Hi there,

I can happily add and manage static pages such as an 'About' page, but if I try to show a static page instead of an existing dynamic page such as the home page - the dynamic page does not get replaced.

Ruby 1.9.3
Rails 3.1.3
Spree 1.0.0
Spree_static_content 1.0.0 from git://raw.github.com/spree/spree_static_content.git (at master)

Many thanks


Reply to this email directly or view it on GitHub:
#34

from spree_static_content.

kobius avatar kobius commented on July 26, 2024

No luck, unfortunately. Just gave it a try - in fact, I can't seem to get any static pages to replace the existing dynamic pages. I have tried replacing:

/
/account
/products
/products/ruby-on-rails-ringer-t-shirt

All just show the standard spree dynamic pages. Although all of my other static pages (such as 'about' work without issue)

from spree_static_content.

joeyjoejoejr avatar joeyjoejoejr commented on July 26, 2024

I'm having the same problem. I've tried this plugin and spree-essentials-cms which is failing in a slightly different way. I'm going to take a look and see if I can come up with a fix. I'll submit a pull request if I figure it out.

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Thanks! must be route order that's an issue.

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

On 22 feb. 2012, at 19:13, "joeyjoejoejr" [email protected] wrote:

I'm having the same problem. I've tried this plugin and spree-essentials-cms which is failing in a slightly different way. I'm going to take a look and see if I can come up with a fix. I'll submit a pull request if I figure it out.


Reply to this email directly or view it on GitHub:
#34 (comment)

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Ok.. I commited a change that makes it work with all overrides except '/' I have to take a better look.

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

c3d3c4f

from spree_static_content.

joeyjoejoejr avatar joeyjoejoejr commented on July 26, 2024

You got to it just before I did. I'll check it out.

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Need some more work, failing on not overridden paths...

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Needs some middleware to determine what to render I guess..

from spree_static_content.

joeyjoejoejr avatar joeyjoejoejr commented on July 26, 2024

It working on everything but the root path for me.

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Try a spree dynamic page! That's failing now since the /*path grabs everything. working on middleware solution right now.

from spree_static_content.

joeyjoejoejr avatar joeyjoejoejr commented on July 26, 2024

#35

Should fix the issue, I hope.

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

Yup! al kudos to @joeyjoejoejr for fixing this.

from spree_static_content.

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.