getgrav / grav Goto Github PK
View Code? Open in Web Editor NEWModern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Home Page: https://getgrav.org
License: MIT License
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Home Page: https://getgrav.org
License: MIT License
I know the official documentation recommended LightPaper for editing markdown files, but since I'm not accustomed to it, I tried editing the markdown files using other code editors.
Surprisingly, changes made using those code editor aren't showing up in the browser (Chrome/Firefox), I even tried clearing the browser everytime I'm previewing but the problem persist. The only way to have the browser reflect the changes is by opening and re-saving the markdown files using LightPaper.
Those code editors are:
Encoding-related issue?
Another plugin request was for a YouTube embed plugin:
http://avexdesigns.com/responsive-youtube-embed/
Would be nice if youtube URL could be auto-detected and converted to an embed format.
Both on my test site and the Grav blog site, it seems that pagination.next_url
is returning the wrong URL. In both cases the lines:
{% if pagination.hasNext %}
<li><a href="{{ base_url }}{{ pagination.next_url }}">»</a></li>
{% else %}
<li><span>»</span></li>
{% endif %}
in pagination.html.twig
will create a link back to /blog
, instead of /blog/page:2
, under the next page arrow.
I'm sure it's not really a "Grav Issue" or bug, as it runs like a charm locally, but have no idea on why have I a "fatal error" once uploaded.
Context : A basic shared hosting plan (yup, I know, there are better sollutions), but that server running PHP 5.5 and obviously Apache as almost everywhere.
Localhost : on MAMP, the local server, all was just a breeze and worked perfectly.
Remote Host : But ... when I upload my work, or even a full copy of a fresh install of Grav, I have "the non-oject error" as follow :
Fatal error: Call to a member function get() on a non-object in /home/host/www/folder/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php on line 69
PS: Tested also with PHP5.4 on the remote host with the same result.
I hope I'll find a way to make that work as I'm quite enthousiast with Grav and what it can do ... and the huge potential of it for the future.
Are there any plans to introduce PHPUnit tests?
Hi guys.
I have a trouble when installing Grav with Terminal. I clone the repository from Github, and, after then, call the bin/grav install command, but the terminal send me this error:
ERROR Missing .dependencies file in user/ folder
ERROR invalid YAML in .dependencies
I'm doing something wrong?
Thanks :)
Using OS X 10.9.4 built-in Apache server
Grav installed in the ~/Sites/Grav directory
The default Grav index page loads at http://localhost/~username/grav/ , but any new pages, created in grav/user/pages/02.test, do not resolve and generate a "Not Found" error.
Say blog posts have categories. And they have tags.
Is there a mechanism in Grav to return all the tags used in a given category?
And a mechanism to return all the posts that have a given category and given tag?
Grav's plug-in architecture is pretty handy for expanding what Grav does from it's core. But it brings the need to manage those plug-ins, which may be from the Grav team, the website designer, or third parties. And a site may end up with more than several.
Will the future update capability handle that?
Grav has a paginator plug-in (pagination.php) that will divide "articles' into desecrate pages.
Does it work only with .md files or can it paginate a group of images files that are displayed in a <ul>
and individual <li>
s?
I attempted to install Grav using the ZIP. Running PHP 5.4.26 on webhost. The problem is when I browse to the location all I see is a blank page! Any ideas on what is wrong?
Hello,
Getting this error on first install.
Parse error: syntax error, unexpected '[', expecting ')' in [directories/listed/here] on line 23
Than i was try to install at first run i have "Cannot use Tracy\Debugger as Debugger because the name is already in use". I'm sure it's same of my server configure. (CentOS Apache/2.2.15 PHP/5.4.22 )
Hi,
I'd like to get rid of Tracy bar at production. But it is hard-coded at index.php that debugger is in development mode regardless the configuration:
https://github.com/getgrav/grav/blob/master/index.php
Debugger::enable(Debugger::DEVELOPMENT, is_dir(LOG_DIR) ? LOG_DIR : null);
I can see that at develop branch it is hard-coded the opposite way:
https://github.com/getgrav/grav/blob/develop/index.php
'debugger' => new Debugger(Debugger::PRODUCTION)
I'd suggest to use
Debugger::DETECT
This will use development mode on localhost and production mode on public IP. That is what all of us need, isn't it?
More info: https://github.com/nette/tracy#production-mode-and-error-logging
I wanted to implement it and make a pull request, but I can't make develop branch working on my localhost. It seems to have missing few classes. That's why I rather write this issue.
Questions:
On systems such as IIS and nginx, the .htaccess is not used at all.
However, Grav seems to require a .htaccess file during requirement checking. This can be worked around by adding a dummy .htaccess but really this should be supported natively with IIS semi-officially supported on the documentation.
By default Windows systems have a rather low ThreadStackSize
of 1MB where as Unix-based systems have 8MB. When using CSS asset pipeline + minification this causes Apache to crash and exit processing. A solution is needed to address this very unfriendly result.
Hi,
Is there a way to import wordpress content on Grav ?
I am very interested to switch from WP to this very nice CMS :)
Thanks for your time,
Regards
Tom
Hello,
I've noticed the default theme shipped with grav
doesn't fit with the Galaxy Note (GT-N7000) native browser (embedded in Android 4.1.2)
Maybe you have some insights about how to fix the stylesheet for this particular version of the native Android browser?
P.S. : Rendering with Chrome is totally OK!
To what extent does RocketThemes expect to develop on Grav?
I would think that some appropriate client, or in-house, work would serve to speed Grav's development. You know, dog food.
Bob
Happens across all themes. Having an apostrophe in the description field of the site.yaml causes a 500 error.
Is it possible to get a total count of child pages where visible is "true"? At present the children.count() returns the total number of pages regardless of whether they are visible or not.
One scenario where this maybe useful is when using a navigation menu (that supports drop-downs) and you don't want to include child pages in the drop-drown structure (e.g. blog articles etc.)
Hello guys,
I've created a folder 'docs' inside joomla so the 'docs' can be accessible through 'www.website.com/docs' but when i hit the url it showing Joomla 404 - url not found page.
I've tried to add some rules in nginx server block but no luck. Here is the code:
location /docs/ {
root /usr/share/nginx/docs;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$request_uri;
}
Any workaround?
Hi,
Is a native comments feature/plugin is planned ?
Disqus service may no suit all users :
Actually I really don't want to create a debate about disqus, but just say that "comments stored in grav database" may interest some «old school» users :)
git clone grav.git
bin/grav install
Parse error: parse error in /Users/corey/Programs/webroot/grav/system/src/Grav/Console/CleanCommand.php on line 15
There is no word about submenus - are they possible with the current code?
Any input on using grav with Google App Engine (GAE), such as how should the app.yaml file look?
Also I get an APC cache error using the problems plugin, I will post more when I get home.
just a simple meta generator tag
We're are moving to a more powerful event dispatcher system for our eventing. As part of this move we are also going to be changing the names of our events to the following format
on<Object><Action>
This will make things a bit tidier and should scale better with more plugins.
Extracting the header from files with windows line endings (CRLF) fails.
It would be great if the respective functions were less strict, e.g. by removing all CR characters before parsing.
Just for robustness added some extra filtering of URL elements
Do I have the option to use HTML syntax in my content files or is markdown the only supported syntax at the moment?
If I right understand, grav install
only can clone plugin from git repos. But now many projects use composer
for managing dependencies and autoloading.
I think, must be provided some functionality, which run setup commands for plugins, e.g. composer install
.
Thanks.
Currently media functionality provides powerful image manipulation. http://learn.getgrav.org/content/media. However it requires twig tags, and twig processing to be enabled for a page. Ideally we would extend parsedown to translate local image references into media calls. This way it would be more readable, and editable in markdown editors, yet still providing the power of our media processing.
![Alt text](image1jpg?forceResize=200,200 "Optional title")
Add support for multiple environment configuration options such as localhost/dev, yourserver.com/production
We were using autoloading before, but now we've merged this into the composer vendor autoload. It improves performance slightly by using a class lookup table.
Start using Symfony EventDispatcher instead of the simple events system we have right now.
Add resource locator and stream wrappers to make it simpler to include different assets.
Whenever I create a new page and navigate to it on a web browser I get a 404 error and my URL bar shows http://mcpe.w-a-s-d.co.uk/test (the new page is called test) but the folder doesn't exist at the root of my server so I looks to be pointing in the wrong direction ?
Thanks for your help
Josh
Implement Pimple Container and replace Registry with it.
Hi, I'm very pleased with how everything in grav looks so far. Since you guys already said, that the backend might take a while and content management might take even longer or will not be included in the first version of the backend (did I get that right?), I was thinking about writing a preliminary plugin for at least elementary editing with aloha editor or sth similar.
So I'd like to know what the approximate roadmap looks like regarding authentication and authorization? Is the base for user management already set? Will I find everything in the development branch? As far as I can see, the learn docs don't cover that yet...
Best regards and thanks for this project!
J
I would love to have a dropbox plugin to sync data. There are several key things to consider:
Replace the simple system Grav currently uses with a more powerful asset management pipeline system that is available throughout the Grav lifecycle.
A wonderful feature that might well differentiate Grav from others even more would be the built-in ability to deal with responsive images.
Perhaps if the Markdown markup called for an image in the traditional way, Grav could be smart enough to know the screen resolution of the display and serve the regular, or the @2x image.
Possible?
A few people have already asked about a browser reload plugin. This is certainly doable, but I would like to get some feedback and thoughts on the functionality people would like to see.
http://cssrefresh.frebsite.nl/ provides a simple refresh using XMLHttpRequest to get modification time
https://github.com/guard/guard-livereload is a CLI version of LiveReload
Just ideas!
Loving what I'm reading so far with Grav and think I'd like to use it on a few projects in the near future.
One thing has cropped up that i'd like to know what peoples opinions are on alternative templating engines? Is there scope to swap out Twig for something else if we wished to used a different flavour of constructing our sites maybe?
We use XSLT and XML a lot and it would be great to think some sort of XSLT bridge similar to this: https://github.com/iwyg/xsltbridge which is for Laravel, but could possibly be ported to work with Grav?
Just putting it out there.
Does Grav have the features necessary to create a simple comment system to go with a blog?
I'm thinking the upcoming forms plug-in would allow a comment to be entered and then saved as a Markdown file with the appropriate YAML front matter. Perhaps they'd be saved in a folder within the folder holding the parent blog post.
Those files could then be cycled through and displayed much like the blog posts themselves.
Or will it not be that simple and require a plug-in (or plug-ins) to implement?
One feature I think would be really great to have incorporated into Grav is the ability to cache specific bits of content for defined amounts of time.
https://github.com/asm89/twig-cache-extension
Provides a great twig extension that does just what the doctor ordered. Would be great to create a custom Grav plugin to add this functionality if required.
I thinking to add on my first plugin the option for auto-render the comments after page.content directly without theme editing, is possible?
Thanks.
As per the forum post: http://getgrav.org/forum#!/general:stop-collection-of-modular
Modular page collection is not filtering out the regular pages. Also regular pages collection is not filtering out the modular pages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.