Page 1 of 1

Toolbar question

Posted: 10 Mar 2017, 00:05
by Leo
Hi Karl, 
I want ask a question about Toolbar.
I saw there's "Comment" code,
      "id": "comment",
      "icon": "comment",
      "label": "Post Comment"
Why it doesn't display in the Toolbar? As it hasn't put display: "overlay"    
By the way, what's the difference between display: "overlay|popup" and without display code ?

Thanks
Leo

Re: Toolbar question

Posted: 10 Mar 2017, 00:30
by mjau-mjau
Sorry, the toolbar is a bit complicated. Good questions.
Leo wrote:I saw there's "Comment" code,
      "id": "comment",
      "icon": "comment",
      "label": "Post Comment"
Why it doesn't display in the Toolbar? As it hasn't put display: "overlay"
The comment toolbar item is a special button, related to Disqus comments ... When clicked, it will simply scroll down to the Disqus comments section usually at the bottom of page. This button will therefore only appear, if you have enabled Disqus comments in your X3 website, and comments are enabled for the specific page.

To enable Disqus comments (for example like here), you would need to sign up for a Disqus account, add your Disqus shortname to X3 Settings -> Accounts, and for each page where you want comments to appear, include it from page settings https://d.pr/i/G70X.
Leo wrote:By the way, what's the difference between display: "overlay|popup" and without display code ?
The ITEMS set in your toolbar configuration will generally display in THREE locations:

1. The default left toolbar (page).


2. The overlay that displays when clicking the main "share" button (overlay).


3. The X3 popup window for images (popup).


If you don't include the "display" value, the item will display in ALL 3 locations. If set to "overlay", the item will only display in the overlay window. We did it like this, because we don't want ALL buttons to display in the compact left toolbar on the PAGE, but have more items display for the OVERLAY when share is clicked. Likewise, some items may be more appropriate for image-sharing (popup) like Pinterest and the special "download" button.
x3panel wrote:"display" : "page|overlay|popup"
Optional setting to only show the item in one or more modes: page, overlay or popup. Useful for creating items that only display in specific modes. Ignore this setting, or leave empty if you want the item to display in all modes. You can add multiple items: for example display:'page|overlay' will the popup.

Re: Toolbar question

Posted: 10 Mar 2017, 01:34
by Leo
Thanks Karl, I learnt a lot. That's amazing effect!