Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Pico_Edit plugin Editor #6

Open
m4pleberry opened this issue Jun 28, 2017 · 0 comments
Open

Not compatible with Pico_Edit plugin Editor #6

m4pleberry opened this issue Jun 28, 2017 · 0 comments

Comments

@m4pleberry
Copy link

Thanks very much for this plugin, excatly what i'm looking for :)

But if you don't specify any Placing it disapear from Pico_Edit Plugin Editor List.
My suggestion is adding an automatic Placing computation start from 9999 in onPagesLoaded function:

            $i = 1;
            foreach ($pages as $page) {
                
                $sortindex = $page['placing'];
                if (!$sortindex) $sortindex = 9999+$i;
                
                $sorted_pages[$sortindex] = $page;
                $i++;
            }

In this case, untagged "Placing" pages always comes after tagged pages, and will not be ignored by Pico_Edit.
And voila,
Thanks for your reading,
m4pleberry 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant