Adam van den Hoven said the following on 12/06/2008 05:20 PM:
> If you wrote a simple parameterized snippet (you'd need that extension
> too), you could easily set things up so that you have:
>
> <r:snippet name="amazon" id="123456789"> Some Cool book </r:snippet>
>
> its not exactly what you want but it would be > 80% of the way there!
I've been playing around with snippets.
There's the good and the bad.
The good is that for long strings like Amazon references this works out,
but needs to tell the difference between a specific product and a more
generic thing like a search for the works of an author. The Amazon URL
strings for both are long enough to make it worth while or to have some
javaascript like the 'Add Quick Linker Widget'.
However for things like YouTube or Wikipedia there's a vast difference
between typing
<utube:abc123xyz> and <r:snippet name="utube" id="abc123xyz" />
<wp:Winston_Churchill> and <r:snippet name="wp" id="Winston_Churchill"/>
In fact even a generic tag that deals with URL abbreviations - call it
"ab" - like
<r:ab name="utube" param="abc123xyz" />
where the set of abbreviations and how they are expanded is in a
database table and so can be customized, is STILL too clunky.
I can live with '<a type=amzn asin="B00007L4MJ">' but I'd still prefer
'<amazon:B00007L4MJ>' because that leads to the others like
<utube:abc123xyz> and so forth. Sadly I'm not a programmer (best I can
do is small patches) and the javascript for this kind of thing is beyond
me. I don't suppose there are any 'standard libraries' that do this?
--
What goes around comes around.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant