Comments (8)
It only shows label/slug options on the children pages
from comfortable-mexican-sofa.
Root page doesn't have a slug. Even if it's set somehow, it doesn't do anything. Root page always has full_path of /
. Child pages do have slugs. So page with slug help
will have full_path /help
and is a child of the root page.
from comfortable-mexican-sofa.
Why?
from comfortable-mexican-sofa.
Can you tell me why you want to set it?
from comfortable-mexican-sofa.
I am only using CMS for static content on our new website.
The static content will be edited by interns (who have very little clue), so having a stub root page could cause confusion
from comfortable-mexican-sofa.
Ah, so your index page is managed by the application. Basically you don't want to show the root page in the admin view. Due to how things are structured that page has to be present, but I see why you'd want to hide it.
from comfortable-mexican-sofa.
Yeah. I looked at the source, and seems like the "CmsPage#assign_full_path" method is the culprit. You reckon the best solution would be adding a config var?
from comfortable-mexican-sofa.
I'm closing this ticket as it seems like a lot of work just to hide a root page. I'd welcome a patch if it can be done cleanly.
from comfortable-mexican-sofa.
Related Issues (20)
- 'around action' breaking admin CMS HOT 1
- Passwords cannot be changed by admin users [Bug?] HOT 1
- Feature Request: Work with UUID ID column...
- ERB exposed in JSON response but not HTML HOT 1
- Documentation on Hostname Aliases Unclear
- render cms_layout throws ActionView::MissingTemplate HOT 1
- Wysiwyg file chooser pagination
- undefined method `service_name' for #<ActiveStorage::Blob:0x00007fa1d3eec970> HOT 2
- Rails 6.1 Active Storage's ImageProcessing transformer doesn't support :combine_options HOT 4
- Rails 6.1: support ActiveStorage::Blob#service_name
- Pages index page performance issues
- How to migrate JS and CSS code from 1.x to 2.0
- cms_site_detect fails if request is nil
- Any Updates? HOT 1
- Redirect to 404 page on page not found
- Ruby 3 Support HOT 4
- Content does not get rendered in the layout
- Adding a new Category from the Pages admin view results in an error
- CodeMirror style is broken
- Support for Rails 7? Any maintainers needed? HOT 8
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 comfortable-mexican-sofa.