![]() ![]() Once you have the ID, you can just use the Shortcode widget.įind the Formatting tab and choose, Classic. The Classic Editor will give you the package ID in a Shortcode. Select, Select Package and then choose your image or tour or drag your package to upload it, if you haven’t done so already. Add GGPKG WidgetĪdd the image or tour to the page. Using the Widgetįind the Widgets tab and the GGPKG widget. Once the package is uploaded to WordPress, your project will be unpacked/unzipped and you will see your image/tour in the Media Library. Under the plugin name, select Deactivate.īefore you can add the GGPKG to a post, you must first install the plugin.įirst, export your image or tour using the Generate GGPKG button in the web output settings. The plugin will now be in the Plugins list. Search for our plugin, Garden Gnome Package. In the Dashboard’s left sidebar, hover over Plugins to bring up a menu. ✭ The plugin works only with the self-hosted WordPress publishing platform (). Below are the instructions for WordPress. Values of the form input fields.We provide a package format (GGPKG) to make it easy for you to embed your panoramas on your CMS site or blog. This is used if more then one output file has been generated like for the cube faces export: Void zipoutput(string documentName) Functions and Variablesįilename + relative path to the output file produced:įilenames + relative path to the output files produced. The ZIP file name is the output file name selected in the GUI: Void createutf8file(string dst, string content)Įxpand the filename fn with the project base path as root:Ĭompress the whole output with all the files into a ZIP archive and name the html document documentName. Void createfile(string dst, string content)Ĭreate a new UTF-8 encoded text file dst with the content from content. Subdirectories in dst are created automatically:Ĭreate a new text file dst with the content from content: For relative paths of the src the root is the template directory. Same as write and writeln but encodes the string into html entities:Īdd the src file to the output dst file. The methods document.write and document.writeln add text to the HTML document.Īdd the string s + new line to the output file: The section contains a predefined document object. Void addOutputFormat(string text, string ext) – section These values are shown in the Format combobox directly next to the output: Void addFileNameInput(string id, string label, string text, string filter, string default="")Īdd a output format with a file extension. Input field for file names with a button to select the filename: Void addColorButton(string id, string label, string default="") The return value is the key field.įorm.addComboBox("bgcolor", "Background Color", colors) The items array is an associative JavaScript array. ![]() Void addComboBox(string id, string label, array items, string default) Void addSpinBox(string id, string label, int def=0, int min=0,int max=100) The number can be between minRange and maxRange: Void addCheckBox(string id, string label, bool default=false) Void addLineEdit(string id, string label,int len=0,string default="") Those values can be accessed as formvalue in the section. Methods for the form objectĪll input fields have an id parameter that is used to identify the value. The section contains a predefined form object. This function is good for debugging the code. The same method works with the output object for the current output format. The values for the input file can be retrieved with Where the last part is the method to get the actual value. So the corresponding method call for the pan minimum value is p2vr project files.įor example, the project file looks like: The structure is similar to the structure in the. The output object contains the configuration for the current output format and config gives access to the whole configuration file. All Script SectionsĪll script sections contain two predefined objects. Everything outside of those tags is added to the final HTML page. You can always look up and change the path in Settings/Preferences. On Windows: C:UsersAppDataRoamingGardenGnomeSoftwarePano2VRHtmlTemplatesĪnd on Mac it is: /Users//Library/Application Support/GardenGnomeSoftware/Pano2VR/HtmlTemplates The major advantage of this approach is that many text editors are able to use syntax highlighting for HTML to make the code more readable. ![]() The processing is similar to PHP where you embed scripting code into HTML. You can find a list of predefined objects in Qt’s ECMAScript Reference. The templates use ECMAScript scripting language (JavaScript is also based on ECMAScript so they use the same syntax), as defined in standard ECMA-262. ggt (Garden Gnome Template) files as a basis for the HTML output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |