Comments (13)
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.
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.
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.
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.
Ok.. I commited a change that makes it work with all overrides except '/' I have to take a better look.
from spree_static_content.
from spree_static_content.
You got to it just before I did. I'll check it out.
from spree_static_content.
Need some more work, failing on not overridden paths...
from spree_static_content.
Needs some middleware to determine what to render I guess..
from spree_static_content.
It working on everything but the root path for me.
from spree_static_content.
Try a spree dynamic page! That's failing now since the /*path grabs everything. working on middleware solution right now.
from spree_static_content.
Should fix the issue, I hope.
from spree_static_content.
Yup! al kudos to @joeyjoejoejr for fixing this.
from spree_static_content.
Related Issues (20)
- Remove the gem HOT 4
- ActiveRecord::StatementInvalid (Could not find table 'spree_pages')
- Error Installing
- Is this working in Spree 3.2.0 HOT 2
- Please specify the Rails release the migration was written for in gem 'spree_static_content', github: 'spree-contrib/spree_static_content' HOT 2
- Readme is not up to date HOT 2
- Problem with Translations HOT 2
- Mysql2::Error: Table 'development.spree_taxonomy_translations' doesn't exist: SHOW FULL FIELDS FROM `spree_taxonomy_translations` HOT 3
- NoMethodError in Spree::Home#index HOT 5
- Meta Description and Meta Keywords Not Being Applied HOT 1
- methods `find_by` stop working HOT 5
- How do I get the Pages menu item in the admin
- Problems with translations, locale used in slug
- Problems with Spree 4.0 HOT 1
- Table 'myproject_development.spree_page_translations' doesn't exist HOT 2
- Installation failure with a `Sprockets::Railtie::ManifestNeededError` HOT 1
- I can't translate pages HOT 3
- When trying Foreign link (URL) it doesnt work
- Links in footer doesn't work HOT 1
- after intalling the extension on spree nothing shows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_static_content.