I'm writing a theme using Diazo using the theme editor of plone.app.theming in Plone 4.3.6. I added a image image.png in the theme folder so it is accessible at http://localhost:8080/mysite/++theme++mytheme-theme/image.png when I'm developing the theme in my computer. I want to refer this image in the template HTML file with <img src="path/image.png">. However it is not clear what to put instead of path. I notice that path cannot be an absolute path because it depends of the site domain. Also, it cannot be a relative path because it depends on the path of each page in the site. May be it would be useful to have an specific keyword to reference the theme folder. For example, <img src="$themeFolder/image.png">. Exists such keyword?
How to reference images in a Diazo template?
91 Views Asked by Daniel Hernández At
1
There are 1 best solutions below
Related Questions in THEMES
- Changing the theme of a #32768 (menu) window class at runtime
- Toggling dark/light theme in html
- Flutter Theme Flickers Briefly Before Switching to Light Mode
- Theme toggle caption Image may contain a
- How to set the appBar color to be REALLY White?
- How do I disable the circular slider buttons?
- chakra ui custom theme doesnt give autocomplete for custom varients
- How to isolate the theme colors of concurrent Vue+Vuetify app instances?
- Cannot enable any extension in Ubuntu 22.04
- The Hamburgermenu of my shopify website (www.skiffaboei.myshopify.com) is not showing after clicking on the icon
- Blogger next previous navigations missing
- flynt wordpress site builder not outputting data on frontend
- Trouble defining Themes in a Visual Studio Extension
- Can i set a image as a back ground in theme in flutter?
- How to get the images of a TDBNavigator with a TStyle theme applied to it?
Related Questions in PLONE
- Remove all jobs from plone.app.async queue
- How to add view access to members in plone
- Plone Error After Migration: KeyError('language',)
- Exporting data from a .fs file. Plone 3.3.5
- How do I create a plone and volto project
- Manually start plone 6 instance inside docker container
- Plone 6 Volto generate app - Cannot find module 'is-ci'
- Pressing Enter key on input field does not work as expected
- Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
- Python Could not import class
- Finding all views/namespace urls in a Zope3 system?
- Is it possible to add a if condition inside tal:define?
- Buildout - Allow hosts for package download
- Modify or clean form input in zope or plone
- Rename Dexterity object (id) after copy
Related Questions in DIAZO
- how to replace nested elements with diazo Rules.xml in Plone5
- Editing buildout.cfg in Plone from a browser
- Diazo - on error show message (when you get the content from a page)
- Plone collective.sendaspdf ignores diazo theme
- Diazo rule to append element before closing tag
- Diazo / XSLT - replace class of content in one of two places in theme
- How to purge cached Diazo theme data for non logged in visitors in Plone5 after TTW edits
- Works with CSS but not Diazo <drop> rule
- How to stop Diazo from stripping whitespace in Plone?
- Multiple Conditions in Diazo
- How to link an URL inside the them from the Diazo rules file?
- How to reference images in a Diazo template?
- Paste.httpserver - serve on socket
- Diazo XSLT and external document only work with a hardcoded path to the document
- I want use diazo to replace a attribute, but diazo's <replace /> statement with attributes is not work?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If the HTML file is in your Diazo theme, you can use a relative path from the file, like
"images/image.png". Diazo will correctly interpret it.You can also use
"++theme++mytheme-theme/image.png", as Acquisition would locate the image.