Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 09 2018 21:05
    Torsten-K commented #81
  • Jun 09 2018 15:42
    Awilum closed #82
  • Jun 09 2018 15:42
    Awilum commented #82
  • Jun 09 2018 15:42
    Awilum commented #82
  • Jun 09 2018 13:31
    Awilum assigned #82
  • Jun 09 2018 13:05
    Awilum commented #82
  • Jun 09 2018 13:04
    Awilum commented #82
  • Jun 09 2018 13:04
    Awilum opened #82
  • Jun 09 2018 10:46
    Awilum commented #72
  • Jun 09 2018 10:46
    Awilum commented #81
  • Jun 09 2018 10:40
    Awilum closed #79
  • Jun 09 2018 10:40
    Awilum closed #80
  • Jun 09 2018 10:40
    Awilum closed #77
  • Oct 31 2017 01:04
    laleveille commented #81
  • Oct 31 2017 00:31
    Torsten-K commented #81
  • Oct 30 2017 22:19
    laleveille commented #81
  • Feb 23 2017 21:07
    Torsten-K opened #81
  • Jul 05 2016 18:07
    Awilum commented #80
  • Jul 04 2016 22:02
    Torsten-K commented #80
  • Jul 02 2016 20:23
    Awilum commented #80
Moncho Varela
@nakome
Ups
@xxwebplus Sorry :smile:
xxwebplus
@xxwebplus
@nakome no problem :)
Moncho Varela
@nakome
@xxwebplus :+1:
Sergey Romanenko
@Awilum
@nakome I have found several code format issues
@nakome can you please try http://cs.sensiolabs.org/ its very simple to use. also you can find this as a plugin for your editor. for my Atom.io I have a plugin...
Sergey Romanenko
@Awilum
@/all Tiny Url plugin takes a long url and uses the TinyURL API to return a shortened version. https://github.com/morfy-cms/morfy-plugin-tiny-url
Moncho Varela
@nakome
@Awilum ok I check
Moncho Varela
@nakome
@Awilum atom-beautify ?
Sergey Romanenko
@Awilum
Moncho Varela
@nakome
@Awilum ok thanks
Sergey Romanenko
@Awilum
@/all Plugin for quick embedding Snipplr snippets. https://github.com/morfy-cms/morfy-plugin-snipplr
xxwebplus
@xxwebplus
@Awilum :+1:
Sergey Romanenko
@Awilum

@/all 45 Plugins already available for Morfy! :sparkles: :rocket:
https://github.com/morfy-cms/morfy-plugins-catalog
xxwebplus
@xxwebplus
cool remainder 5 for the goal :)
Moncho Varela
@nakome
@Awilum I use php php-cs-fixer fix C:\wamp\www\plugins It's ok?
to fix all files of folder
Host de experiencia del shell de Windows.jpg
Sergey Romanenko
@Awilum
yes, it says that every this file must be fixed
its ok @nakome
Moncho Varela
@nakome
@Awilum I fix all plugins and admin panel
Sergey Romanenko
@Awilum
but check is everything is works fine after fixer
Moncho Varela
@nakome
ok
Moncho Varela
@nakome
I think all it's ok
Sergey Romanenko
@Awilum
@nakome good!
Moncho Varela
@nakome
@Awilum Yesterday i make a poll plugin simple Demo But if not change options on system.yaml not work, the plugin use cookie and json data
Host de experiencia del shell de Windows.jpg
Sergey Romanenko
@Awilum
@nakome its a shortcode on the page ?

@nakome try to flush pages cache after your actions and you want to see FRESH data on your page from your POLL plugin

See how its done for Blocks https://github.com/morfy-cms/morfy/blob/dev/morfy/Blocks.php#L53

Moncho Varela
@nakome
yes I think the problem also is this
ok
Sergey Romanenko
@Awilum
To flush page cache on fly
Config::set('system.pages.flush_cache', true);
Moncho Varela
@nakome
@Awilum ok if write this out of shortcode work
inside shortcode not work
Sergey Romanenko
@Awilum
@nakome can you upload your code ?
Moncho Varela
@nakome
@Awilum ok one momment
Moncho Varela
@nakome
Sergey Romanenko
@Awilum
@nakome okey, I will check it today, a little bit later.
Moncho Varela
@nakome
@Awilum :+1:
Moncho Varela
@nakome
Sorry now not work the plugin
Sergey Romanenko
@Awilum
issue in Plugin code ?
Moncho Varela
@nakome
Now its ok i upload
Sergey Romanenko
@Awilum
okey will check
Moncho Varela
@nakome
I update demo with progress bar and more questions demo
Sergey Romanenko
@Awilum

@nakome

I have checked it.
The reason why this issue is reproduced is because the page content where shortcode is placed with logic is cached and that's why you may not see actual result after form submit. if there doesn't exists some others issues with logic inside your plugin. but adding this

Config::set('system.pages.flush_cache', true);

or

Action::add('plugins_loaded', function () {
    Config::set('system.pages.flush_cache', true);
});

must resolved this issue. because its says to Morfy Pages that page is updated and new unique cache must be created for it. But in your plugin for some reason its not works. Need more time on investigate of this issue.

My recomendation: dont use shortcode for this plugin. Create a Tempalte function for templates. for e.g. https://github.com/morfy-cms/morfy-plugin-contact/blob/master/contact.php and template usage is

{Contact::form()}
  • OOP Style

or procedure style

function poll() {

}

and usage in template

{poll()}
Moncho Varela
@nakome
@Awilum ok thx
Sergey Romanenko
@Awilum

@/all Morfy 2.0.2 Release! http://morfy.org/blog/morfy-2.0.2 :rocket:
Sergey Romanenko
@Awilum

@/all
Default Theme in Morfy 2.0.2 use BOWER http://bower.io
And if your are using composer or github clone to install Morfy
then You also need to install vendors for Default Theme by running in console

bower install

from default theme directory

Also, in Morfy 2.0.2 you may access current page template and set your variables if needed
Example:
Action::add('before_page_rendered', function() {
    $template = Pages::getCurrentTemplate();
    $template->assign('var', 'value');
});
Moncho Varela
@nakome
@Awilum :+1: