Page 1 of 1

change items script on Panel Settings Toolbar

Posted: 17 Jan 2016, 04:00
by florent
Good morning

Try to set up my last download version for my new site : new.bsbd.fr
I delete some lines inside the items script (twitter, google, ...) and now I can't load my index page ...
There is a way to initialise again just this part ?
Thanks
Florent

Re: change items script on Panel Settings Toolbar

Posted: 17 Jan 2016, 05:36
by mjau-mjau
florent wrote:I delete some lines inside the items script (twitter, google, ...) and now I can't load my index page ...
I think you have just a tiny error in your ITEMS code:
Code
{
      "id": "comment",
      "icon": "comment",
      "label": "Post Comment"
    },
See the trailing comma (,) at the end? You need to remove it. JSON is a strict format, and the comma at the end implicates that another item/object is following. I believe it will work after you remove the comma at the end.

Re: change items script on Panel Settings Toolbar

Posted: 17 Jan 2016, 05:48
by florent
Yes, right it's work, thanks a lot Karl :D

Maybe a good idea, to add for each scripts, an reset option permitting to avoid this ?

Florent

Re: change items script on Panel Settings Toolbar

Posted: 17 Jan 2016, 06:41
by mjau-mjau
florent wrote:Maybe a good idea, to add for each scripts, an reset option permitting to avoid this ?
It would be useful for this specific option yes ... I would have preferred something easier than managing a strict JSON object for the toolbar items config, but I couldn't figure out a solution that provides the same flexibility.