I wish to customize the main_template of plone 4.1 to prevent mouse selection and drag. Don't know where exactly and how to do it in the body tag. Also need a simple and quick reference for learning TAL, TALES, METAL. Something for beginners. Please guide. I wish to prevent copy/paste form the browser. I have customized it for the file preview but unable to do the same for the main_template.
How to customize the body tag for TAL in plone main_template equivalent to "ondragstart="false"?
331 views Asked by user956424 At
2
There are 2 answers
0

The simplest way to customize the body tag is to install plone.app.theming. It is easier to understand, can be done through the web and is more likely to remain compatible through upgrades. It is compatible with Plone 4.1 and included in 4.3.
Related Questions in PYTHON
- Invoking the same activity inside a loop in cadence workflow
- "QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
- What are some of the big differences in Java Client versus Go Client when implementing Uber Cadence workflow?
- Connection timeout on identification
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Cannot find workflow definition even though I register it to worker
- How to determine the number of workers I need in Uber Cadence?
- How to make a workflow run for an infinitely long duration when running it using command line?
- Uber Cadence workflow versioning
- Tracking in progress cadence workflow by client
Related Questions in PLONE
- Invoking the same activity inside a loop in cadence workflow
- "QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
- What are some of the big differences in Java Client versus Go Client when implementing Uber Cadence workflow?
- Connection timeout on identification
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Cannot find workflow definition even though I register it to worker
- How to determine the number of workers I need in Uber Cadence?
- How to make a workflow run for an infinitely long duration when running it using command line?
- Uber Cadence workflow versioning
- Tracking in progress cadence workflow by client
Related Questions in TEMPLATE-TAL
- Invoking the same activity inside a loop in cadence workflow
- "QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
- What are some of the big differences in Java Client versus Go Client when implementing Uber Cadence workflow?
- Connection timeout on identification
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Cannot find workflow definition even though I register it to worker
- How to determine the number of workers I need in Uber Cadence?
- How to make a workflow run for an infinitely long duration when running it using command line?
- Uber Cadence workflow versioning
- Tracking in progress cadence workflow by client
Related Questions in ZPT
- Invoking the same activity inside a loop in cadence workflow
- "QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
- What are some of the big differences in Java Client versus Go Client when implementing Uber Cadence workflow?
- Connection timeout on identification
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Cannot find workflow definition even though I register it to worker
- How to determine the number of workers I need in Uber Cadence?
- How to make a workflow run for an infinitely long duration when running it using command line?
- Uber Cadence workflow versioning
- Tracking in progress cadence workflow by client
Related Questions in TEMPLATE-METAL
- Invoking the same activity inside a loop in cadence workflow
- "QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
- What are some of the big differences in Java Client versus Go Client when implementing Uber Cadence workflow?
- Connection timeout on identification
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Cannot find workflow definition even though I register it to worker
- How to determine the number of workers I need in Uber Cadence?
- How to make a workflow run for an infinitely long duration when running it using command line?
- Uber Cadence workflow versioning
- Tracking in progress cadence workflow by client
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?
Popular Tags
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)
If you are adding a simple
ondragstart="false"
attribute, you don't need any knowledge of TAL, TALES or METAL.TAL is a XML-aware templating language, it uses namespaces and XML attributes to 'blend in' into the template structure. As such, you can add extra attributes to tags outside of the TAL-specific attributes.
Simply customize the
main_template
file and add the attribute to the body tag:If you still want to read up on TAL, TALES and METAL, you can read the Zope 2 book, chapter 10: Using Zope Page Templates, chapter 13: Advanced Page Templates and appendix C: Zope Page Templates Reference.