Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Toolbar question

10 Mar 2017, 00:05

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
------http://xiya.photo.gallery-----To memorize my angel,Xiya
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Toolbar question

10 Mar 2017, 00:30

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.
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Re: Toolbar question

10 Mar 2017, 01:34

Thanks Karl, I learnt a lot. That's amazing effect!
------http://xiya.photo.gallery-----To memorize my angel,Xiya