GithubHelp home page GithubHelp logo

docs's People

Contributors

alekseybobkov avatar alxy avatar azaharizaman avatar bennothommo avatar chvuagniaux avatar daftspunk avatar datune avatar dshoreman avatar firemankurt avatar flynsarmy avatar gergo85 avatar herlevsen avatar kg-bot avatar larrybarker avatar luketowers avatar matissjanis avatar meysammahfouzi avatar minecrafter avatar mjauvin avatar octoberapp avatar pixeltherapy avatar romainmazb avatar samgeorges avatar scottbedard avatar summercms avatar tobias-kuendig avatar verenaroe avatar vojtasvoboda avatar zhiweiwu0425 avatar zooboole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

More specific how-to's for common needs

It would be helpful to have entry point doc's on specific how-to's. Specifically for some of the most common design needs that may have some layer of complexity for newcomers to the platform. (fully aware that in sum all parts seem to be doc'd, but in some cases it's quite spread out and difficult to extrapolate)

This may need to be a simple "Examples" doc area?

Examples:

  • Image Slider
  • Contact Us Form
  • Dynamic/Generated Navigation
    (feel free to add more)

Word-break missing

Check screenshot. Maybe word-break: break-all will be enough.

snimek obrazovky 2016-10-02 v 22 33 39

At: Docs -> Backend -> Forms -> Rich editor / WYSIWYG.

Chrome 53 @ MacOS.

Question about console updating

There are two ways to update October - via Composer and via the Update Gateway. Updating October via Composer will connect to the repository and pull updates for the core and any other composer installed packages.

In which directory should I make composer update?

Simple AJAX example from docs doesn't work

If you follow the example code as presented on the AJAX documentation (http://octobercms.com/docs/cms/ajax), you will not get the expected result, as the partial does not render.

In the page markup:

<script src="{{ [
    'assets/javascript/jquery.js',
]|theme }}"></script> 

{% framework extras %}

<form data-request="onTest" data-request-update="calcresult: '#result'">
    <input type="text" name="value1"/>
    <input type="text" name="value2"/>
    <input type="submit" value="Calculate">
</form>
<div id="#result"></div>

In the page code:

function onTest()
{
    $value1 = post('value1');
    $value2 = post('value2');
    $this['result'] = $value1 + $value2;
}

In the calcresult partial:

The result is {{ result }}

The will show the form fine, and make the ajax call, but it will not render the partial in the #result div.

Documentation for front-end user management

There is no documentation, whatsoever, as to how one can manage users on front-end side. The only thing available (for those who want to learn doing this) is the source code of rainlab.user-plugin which is not self-explanatory enough. I mean come on! add some documentation for front-end user management! Or if you do not have time to do that, make laravel's authentication API available to use!

https://octobercms.com/forum/post/authentication-for-a-front-end-login-script
https://octobercms.com/forum/post/why-cant-use-the-auth-class-how-to-use-auth-for-front-end-user?page=1

October rocks, but not at user management. I have chosen to use OctoberCMS to make my life easier, but sometimes it doesn't.

Updated configuration example for lighttpd

After OctoberCMS have grown with a lot more modules and updates i noticed that some changes needed to be made with the initial lighttpd configuration. I have modified the configuration example i provided last time to take in count for parameter arguments in js/css and and also to take in count for all imaginative places the plugin developers can place their asset files.

$HTTP["host"] =~ "example.domain.com" {
        server.document-root = "/var/www/example/"

        url.rewrite-once = (
                "^/(plugins|modules/(system|backend|cms))/(([\w-]+/)+|/|)assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)(\?.*|)$" => "$0",
                "^/(system|themes/[\w-]+)/assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)(\?.*|)$" => "$0",
                "^/uploads/public/[\w-]+/.*$" => "$0",
                "^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",
                "(.*)" => "/index.php$1"
        )
}

backend controls could use label's

I noticed it's pretty difficult to get canvas to play nice with these charts. Right now I have a 'note' to label them. I think we need something more direct. optional of course.

see attached

screen shot 2014-07-06 at 9 24 17 pm

DataTable, form widget not documented

In discover this widget by looking at the builder plugin database Table, but the only reference in found is this old post.

The backend-forms.md should document this widget as well as the other formwidgets.

From the first post I think we have the following options

items:
    label: items
    type: datagrid
    columns: 
        item:
            title: [..]
            type: [..]
            format: [..]
            options: [..]
Option Description
label
type
columns

Howerver there is a readme.md in octobercms table widget folder, It let me think that this widjet as a lot more options.

Building markdown files

Hello,
I need the docs offline but I do not know how to build the markdown files. Any help would be good.
I am on windows by the way

Document all available Twig tags

Document all Twig tags registered by the system, as found in the code here:

        MarkupManager::instance()->registerCallback(function($manager){
            $manager->registerFunctions([
                // Functions
                'post'           => 'post',
                'link_to'        => 'link_to',
                'link_to_asset'  => 'link_to_asset',
                'link_to_route'  => 'link_to_route',
                'link_to_action' => 'link_to_action',
                'asset'          => 'asset',
                'action'         => 'action',
                'url'            => 'url',
                'route'          => 'route',
                'secure_url'     => 'secure_url',
                'secure_asset'   => 'secure_asset',

                // Classes
                'str_*'          => ['Str', '*'],
                'url_*'          => ['URL', '*'],
                'html_*'         => ['HTML', '*'],
                'form_*'         => ['Form', '*'],
                'form_macro'     => ['Form', '__call'],
            ]);

            $manager->registerFilters([
                // Classes
                'slug'           => ['Str', 'slug'],
                'plural'         => ['Str', 'plural'],
                'singular'       => ['Str', 'singular'],
                'finish'         => ['Str', 'finish'],
                'snake'          => ['Str', 'snake'],
                'camel'          => ['Str', 'camel'],
                'studly'         => ['Str', 'studly'],
                'md'             => ['October\Rain\Support\Markdown', 'parse'],
            ]);
        });

Inaccuracy in setup-configuration Nginx configuration paragraph

If Octobercms placed in root folder / , folowing rewrite rules won't work:

...
rewrite ^bootstrap/.* /index.php break;
rewrite ^config/.* /index.php break;
...

Because right path must starts with slash symbol like this:

rewrite ^/bootstrap/(.*) /index.php break;
rewrite ^/config/.* /index.php break;

Probably if you are under subfolder location like /cms/, maybe rules without forward slash will work. Actually I haven't checked this moment.

Developers should check for both controller and model when extending forms

Twice now I haven't been able to display my plugin's model form because other plugins are interfering and adding fields to my form when they shouldn't be. This is because plugins are only checking for the correct controller and not the model too.

For example I've created a new plugin that adds a field to the User form. My field has a form of its own, but because I'm attached to the Users controller, other plugins are trying to add their fields to my form causing an error.

I propose adding a requirement on the developer guide to check for both controller AND model when extending forms with a plugin.

Here is a code sample:

Event::listen('backend.form.extendFields', function($widget)
{
    if (!$widget->getController() instanceof \RainLab\User\Controllers\Users) return;
    // This line should also be included
    if (!$widget->model instanceof \RainLab\User\Models\User) return;

    ...
}

url regex example in docs does not work

In the url example of the "pages" docs, the following is given as an example of using regex in page verification: "/blog/:post_name?|^[a-z0-9-]+$".

However, if you put that in the url when creating a page, you get the following error message:

"Invalid URL format. The URL should start with the forward slash symbol and can contain digits, Latin letters and the following symbols: _-[]:?|/+*".

This apparently disallows the '^' and '$' symbols....?

Need doc on defining user group settings from plugins

Need doc on defining user group settings from plugins.

Need users of a plugin to be able to define or limit access to plugin pages by user group wherein editing a user group plugin tabs can be added to provide task permissions:

  • plugin tab
    • can_do_something permission

/backend/backend/groups/update/group#

[Enhancement] Search box

It's possible to add a search box to the docs page? So when you need search something and you don't know where it's, you can found easily.

Overriding component partials

Components referencing partials

Components can reference their partials in two ways. First is an explicit method:

{% partial __SELF__ ~ "::title" %}

The second is a relaxed method:

{% partial "@title" %}

The relaxed method is contextual:

  1. If called inside a component partial, it will directly refer to itself.
  2. If called inside a theme partial, it will scan all components used on the page/layout for a matching partial name and use that. Then will continue as per 1. for nested partials.

Overriding component partials

All component partials can be overridden using the theme partials. Following from the previous example, if our component called channel uses the title.htm partial.

url = "mypage"

[channel]
==
{% component "channel" %}

We can override the partial by creating a file in our theme called partials/channel/title.htm.

The file path is broken down like this:

  • partials - the theme partials directory
  • channel - the component alias (a partial subdirectory)
  • title.htm - the component partial to override

We can choose our own name for the partial subdirectory by giving the component a different alias. For example:

[channel foobar]
==
{% component "foobar" %}

Now we can override the partial by creating a file in our theme called partials/foobar/title.htm.

CSS and Images don't load

Good Morning Everyone

I just finished the October installation via the web-wizard, where anything seems to be fine, but now when i visit the url on n0ah.roundedge.ch i just get the html withoud images or css. I also cannot access any of the other pages. When i add index.php to the end of the url the homepage gets displayed correctly.
When i then try to access the backend i also just get the html, but as soon as i login anything locks good again.

Here are my config files:

.htaccess

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

##
## You may need to uncomment the following line for some hosting environments,
## if you have installed to a subdirectory, enter the name here also.
##
RewriteBase /n0ah/

##
## Black list protected files
##
RewriteRule themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC]
RewriteRule uploads/protected/.* index.php [L,NC]

##
## White listed folders and files
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !\.js
RewriteCond %{REQUEST_URI} !\.ico
RewriteCond %{REQUEST_URI} !\.jpg
RewriteCond %{REQUEST_URI} !\.jpeg
RewriteCond %{REQUEST_URI} !\.gif
RewriteCond %{REQUEST_URI} !\.css
RewriteCond %{REQUEST_URI} !\.less
RewriteCond %{REQUEST_URI} !\.scss
RewriteCond %{REQUEST_URI} !\.pdf
RewriteCond %{REQUEST_URI} !\.png
RewriteCond %{REQUEST_URI} !\.swf
RewriteCond %{REQUEST_URI} !\.txt
RewriteCond %{REQUEST_URI} !\.xml
RewriteCond %{REQUEST_URI} !\.xls
RewriteCond %{REQUEST_URI} !\.eot
RewriteCond %{REQUEST_URI} !\.woff
RewriteCond %{REQUEST_URI} !\.ttf
RewriteCond %{REQUEST_URI} !\.svg
RewriteCond %{REQUEST_URI} !\.wmv
RewriteCond %{REQUEST_URI} !\.avi
RewriteCond %{REQUEST_URI} !\.mov
RewriteCond %{REQUEST_URI} !\.mp4
RewriteCond %{REQUEST_URI} !\.webm
RewriteCond %{REQUEST_URI} !\.ogg
RewriteCond %{REQUEST_URI} !docs/.*
RewriteCond %{REQUEST_URI} !themes/.*
RewriteRule ^ index.php [L,NC]

##
## Standard routes
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
## vHost file under /etc/apache2/sites-enabled/n0ah.conf
<VirtualHost *:80>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet ## Loaded PHP modules
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_actions mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_svn mod_authz_user mod_autoindex mod_dav mod_dav_svn mod_deflate mod_dir mod_env mod_filter mod_headers mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status  

I have already checked the forum and found many similar issues, but none of the solutions was working for me.
Thanks a lot in advance and have a nice day, Noah

Add explanation to create configurable formwidget

I think the form widget section need a little bit more explanation on how to make a formwidget configurable thought the Form field definitions.

The example of the datePicker widget could be an acceptable solution :

    /**
     * @var bool Display mode: datetime, date, time.
     */
    public $mode = 'datetime';
    /**
     * @var string the minimum/earliest date that can be selected.
     * eg: 2000-01-01
     */
    public $minDate = null;
    /**
     * @var string the maximum/latest date that can be selected.
     * eg: 2020-12-31
     */
    public $maxDate = null;
function init()
{
     $this->fillFromConfig([
            'format',
           'mode',
            'minDate',
            'maxDate',
     ]);
{

ListsController::extendListColumns() has no third argument?

The docs say MyController::extendListColumns accepts 3 arguments however when attempting to use the documented code I get

Missing argument 3 for My\Plugin\Plugin::My\Plugin{closure}()

Does the third argument be there, or should the documentation say $context='' ?

Here's the code I'm using for reference:

\Backend\Controllers\Users::extendListColumns(function($list, $model, $context) {
    var_dump($list);
});

[bug]: Unable to scroll fixed navigation sidebar

When you are viewing a documentation page like this for example, and you have the a sub listing open in the navigation sidebar, you are unable to scroll the sticky navigation sidebar independently of the main content area. This means that you have to scroll all the way to the bottom of the page just to view the rest of the navigation's items. As some pages are quite long, this is very annoying and unfriendly to the user experience.

The side bar should be made either not sticky or it should have a max height set (probably relative to viewport-height) with the overflow set to scroll so that the two components of the page could be scrolled independently of each other.

As a side note, what would it take to get some really low level documentation setup in addition to the higher level tutorial style documentation that we have currently? I'm thinking of something along the lines of Laravel's API documentation. Is this something where I could help contribute to the project by setting up such a system?

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.