Giter Site home page Giter Site logo

oc-menumanager-plugin's People

Contributors

adis-io avatar alxy avatar benf-mettro avatar benfreke avatar daftspunk avatar devlifex avatar flynsarmy avatar gergo85 avatar kksudo avatar mahony0 avatar matissjanis avatar nnmer avatar pfeugene avatar piterden avatar ribsousa avatar shahiem 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

Watchers

 avatar  avatar  avatar  avatar

oc-menumanager-plugin's Issues

I18N and L10N

I'm developing E-commerce system with October and using this plugin. If you can add lang folder and make texts and inputs dynamic -takes only 5-10 mins.- this plugin will be very useful. I can help editing the plugin btw. Thanks.

Undefined property when creating menu item

I've installed octobercms using composer (git version) and installed the menu manager. Unfortunately I get an error when I try to create a new menu item:

Undefined property: Backend\Classes\FormField::$columnName

Any hints?

components/Menu.php $baseFileName = $this->page->page->getBaseFileName();

Call to a member function getBaseFileName() on a non-object
$baseFileName = $this->page->page->getBaseFileName();

Depricated since Build 260 (2015-05-16)???

The |page filter now supports passing an empty string to generate a link to the current page.
Component variables set with $this->page no longer leech in to other component partials.

Menu is not show on the theme

I have added the menu to a page and configured all the menu links from a menu tab. The menu is not appearing on the webpage

and i dump {{ dump(parentNode.getChildren) }} but the value is null (0)

please help me ..thank you

Incorrect URL paths

One other thing I've just noticed, say you were to link the "Blog" page to the nav, it is now pulling through the full page url ie /blog/:page? instead of just /blog - I'm pretty sure it didn't do this before?

Also, if you're using October via a sub-directory e.g in MAMP, so your site url would be http://localhost:8888/october/ for example, the home url is obviously /, but that doesn't work now as / goes to http://localhost:8888 when it should go to /october, and therefore all other urls in the menu now go to http://localhost:8888
e.g
http://localhost:8888/blog instead of http://localhost:8888/october/blog - if that makes sense?

Again, I'm pretty sure it didn't do this before?

[Extra Features] URL parameters & Query string

Have also added functionality to pull in additional URL parameters e.g

If you want to link to a specific blog post which as a page url of /blog/post/:slug, you can now pass the parameters as a JSON string like {"slug":"my-post-slug"}.

You can now also pass an extra query string option which is appended to the URL, just in case anyone needs that extra feature :)

Again, once pull request #16 is merged....

Extra URL parameters issue

I'm seeing a problem with the "Extra URL parameters".
I am using the { 'slug' : 'slugvalue' } format for the "Extra URL parameters" field but the URL always gets set to:

'url/default'

instead of

'url/slugvalue'

Any help would be appreciated. Thanks!

Still receiving node error

After updating to latest settled OctoberCMS build (107) and updating your plugin to v1.0.5, I'm still getting the error:
A node cannot be moved to a descendant of itself.
every time I try to re-order the menu items?

Bring "enabled" state into model getChildren

This requires a fair chunk of change, as we'll need to update counts as well. Currently we getAllChildren of the topNode, but we need to change that to be just the active nodes.

Likewise, we're currently using childrenCount but will need to do a count(getAllChildren) once we've enabled the "enable" flag on the get method

Template chooser for menu

As Bootstrap is getting close to a version 4 release, the code has changed. Provide a way to use multiple templates, not only for the entire site but on a component by component basis

multiple menus

I can't see a way of adding multiple menus - can I add this as a feature request??

Thanks!

Plugin broken after update to current CMS Build 146

Error on new Menu creation:

The partial '.../modules/backend/widgets/form/partials/_field_text.htm' is not found.
.../modules/backend/traits/ViewMaker.php line 62

EXCEPTION

System\Classes\SystemException

        $partial = '_' . strtolower($partial) . '.htm';

    $partialPath = $this->getViewPath($partial);

    if (!File::isFile($partialPath)) {
        if ($throwException)
            throw new SystemException(Lang::get('backend::lang.partial.not_found', ['name' => $partialPath]));
        else
            return false;
    }

    return $this->makeFileContents($partialPath, $params);
}

Menu is not appearing on the frontend

I have added the menu to a page and configured all the menu links from a menu tab. The menu is not appearing on the webpage. What may be the issue.

Extra dynamic parameter for li > a elements

Hi Ben,

It's a very useful plugin!
Is it possible to add extra dynamic parameter e.g. "listItemLinkClasses" which will add custom classes(es) to the li > a element of the menu items?

Thank you,
Nikolaos

Automatically update page links

Find out if there is an event I can hook into that will tell me when a baseFileName changes, and update any references to it.

Unable to find configuration file

Hi
after install i get this error

Unable to find configuration file /var/www/plugins/plugins/benfreke/menumanager/models/menu/columns.yaml defined for Backend\Behaviors\ListController.

/var/www/modules/system/traits/ConfigMaker.php line 63

Postgres Support

Hi,

while trying to install the menu manager via the backend, I got the following error message:

SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "`" LINE 1: ALTER TABLE `benfreke_menumanager_menus` MODIFY `nest_left` ... ^ (SQL: ALTER TABLE `benfreke_menumanager_menus` MODIFY `nest_left` INTEGER UNSIGNED NULL;)" on line 666 of /Applications/MAMP/htdocs/octobercms/vendor/laravel/framework/src/Illuminate/Database/Connection.php

It seems that it's "the same" as #52

I have error when set Active Node to default

I have error when set Active Node to default

Call to a member function getBaseFileName() on a non-object
// Go and find the page we're on
$baseFileName = $this->page->page->getBaseFileName();

Translatable external URL

CONTEXT:
multilanguage website managed with Rainlab.Translate

NEEDS:
menu items liked to external URL could have different href depending on current locale:

  • IT => google.it
  • ES => google.es

Simply add external_url and url to $translatable fields

public $translatable = ['title', 'description'];
is not sufficient due to how internal/external URL values are saved (unique url attribute plus is_external flag).

Do you think you can support that?

In the meanwhile, the only workaround that I see is to use a CMS page to manage a "redirect router" somehow. Any other ideas?

SQLite Support

As per this forum post, the way the migration has been created prevents this from working with SQLite.

Re-write it so it works with all supported database drivers.

syntax error

Hi,
after install i get this error
syntax error, unexpected '/', expecting variable (T_VARIABLE) or '$' /var/www/plugins/benfreke/menumanager/controllers/Menus.php line 70
i can't access to menu panel

[Feature addition] Inline component "parent node"

Add functionality to enter inline parent node to allow multiple different menus on same page, and maybe different menus on different pages whilst using the menu component at layout level e.g

{% component "menu" parent="Top Nav" %}

{% component "menu" parent="Footer Nav" %}

sql error

hi,when i add a new item to the menu.i got this error,please help,thank you!
"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'internal_url' in 'field list' (SQL: insert into benfreke_menumanager_menus (title, description, enabled, is_external, internal_url, external_url, link_target, parameters, query_string, url, nest_left, nest_right, updated_at, created_at) values (asd, , 1, 0, , , _self, , , , 1, 2, 2015-02-21 06:46:15, 2015-02-21 06:46:15))" on line 614 of D:\xampp\htdocs\octobercms\vendor\laravel\framework\src\Illuminate\Database\Connection.php

Add class to anchor tag

It would be really helpful to have the possibility to add classes to the anchor tag of the menu items.

The reserved indicator "@" cannot start a plain scalar

The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 9 (near "form: @/plugins/benfreke/menumanager/models/menu/fields.yaml").
/home/pooperpumper/public_html/vendor/symfony/yaml/Inline.php line 259

Reorder one menu item

HI!
Thanks for your plugin.
I've reached a bug, when trying to reorder one item of the menu
"A node cannot be moved to a descendant of itself." on line 928 of /Users/bardack/www/parasport/vendor/october/rain/src/Database/Traits/NestedTree.php

[Suggestion] Active class on Home

Thanks for adding the .active class to the plugin. Slight issue, if you have a link to home page or / the link doesn't get the active class.

Add twig blocks for output

This should result in cleaner code in the default partial, as well as increased flexibility in modifying partials down the track

"Method validateJson doesn't exist" problem

Hi,

I have a problem with extra url parameters with json. When I'm trying to save it says that "method validateJSON doesn't exist". I look at Pages plugin's validation and made how they made. Now it saves, but with no validation.

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.