Thursday 28 December 2006 2:38:37 pm - 13 replies
Using scripts in links is not allowed, link '...' has been removed
Friday 29 December 2006 1:37:55 am
Use a custom tag!
There are years of posts about everything you could need to know about custom tags scattered on ez.no
And with the 3.8 release they are simpler to use within the online editor while editing ezxml content object attributes.
Friday 29 December 2006 10:09:26 am
Thanks for the feedback.
I think the onclick event won't work, since the bookmarklet should be bookmarkable.
I tried a custom tag and that works fine.
Maybe there are still other (and safer) ways to accomplish this. If other users can post on a site then they can also use your custom tag.
Friday 29 December 2006 11:46:46 am
That's a possibility too. What if I want to add several bookmarklets to an article?
a) I need to add different custom tags for each bookmarklet.
b) I add a switch in the custom tag view template. Depending on a custom tag attribute it inserts the right bookmarklet.
Friday 29 December 2006 12:22:51 pm
What if I want to add several bookmarklets to an article? a) I need to add different custom tags for each bookmarklet. b) I add a switch in the custom tag view template. Depending on a custom tag attribute it inserts the right bookmarklet.
In response to item, a
- Question: What exactly will differentiate one final rendered bookmarklet code snippet from another from within the same content attribute / document.
In response to item, b
- Question: Why must custom tag attributes be used to insert the right bookmarklet? (Dependant on answer to above)
- Comment: This would go against processing or using user input in the creation of the custom tag / bookmarklet (to prevent security vulnerabilities related to code injection) unless you have a set standard switch cases say of 1,2,3,4 which insert the correct bookmarklet. It just seems to snow ball quickly downhill once you start accepting user input (let alone informing users of accepted input).
- Comment: Because it sounds like a bookmarklet needs a title and a url. the client knows the url and the url's document name. I don't see why your bookmarklet could not be entirely client side js code and avoid this problem entirely. If you have to say pass it a url via js that's simple enough to grab from within the custom tag via the wrap_operator or other method. If you have to say pass it a url document name, say you grab the current document's name + site title from within the custom tag.
- Comment: I still don't see why user input is needed to include a snippet of code which passes your bookmarklet code snippet the needed argument per instance; a name and url detected via php, tpl or js. A good bookmarklet will pop open a browser based dialog with the ability to alter the default name on the client side.
It's what I was thinking, I still should not have posted it ..
Friday 29 December 2006 12:34:56 pm
<b>Question: What exactly will differentiate one final rendered bookmarklet code snippet from another from within the same content attribute / document</b>
Answer: the title and the content of the href attribute. I meant adding different (~several) bookmarklets.
<b>unless you have a set standard switch cases say of 1,2,3,4 which insert the correct bookmarklet</b>
Exactly what I meant with b)
Monday 19 November 2007 3:20:49 pm
<i> > Re: Please tell me how to add Google Analytics to my site.</i>
While this conversation has come to a close we would like to add the following note to future forum archive readers searching for a similar solution.
BC Website Statistics is a product (an extension) certified by eZ Systems, supported by Brookins Consulting, and a flexible proven solution for integrating Google Analytics with eZ Publish. This extension has been created to provide eZ Publish customers seeking a complete, ready to use, out-of-the-box solution integrating eZ Publish with the Google Analytics web statistics reporting service.
BC Website Statistics, http://ez.no/products/certified_extensions/bc_website_statistics
You must be logged in to post messages in this topic!