121
Sekalaista keskustelua / Vs: Videolla päin pläsiä
« on: 20. 11. 2012 16:04 »
Katsoin tuota Serendipityä. En ole asiantuntija. Selailin vähän "usein kysyttyä"-palstaa, ja ainoa mikä tarttui silmään oli tämä:
"I want to add some links / HTML to my blog!
You can add custom pieces of HTML code or links to any special pages to your blog sidebar by installing a "HTML Nugget" sidebar plugin. There you can enter arbitrary HTML or Javascript?.
The other possibility is to use a editor to edit your *.tpl template files and place custom HTML inside the files where you want it. Like you can add custom headers into the index.tpl file.
When you paste javascript code into a .tpl file, you must make sure to replace all occurences of "{" to "{ldelim}" and "}" to "{rdelim}". Smarty requires you to do that, because it uses the {} characters for special instructions. If you forget to escape this, you get an error like
Fatal error: Smarty error: [in file:...]: syntax error: unrecognized tag: ..."
If you paste huge amounts of Java Script?, you can also enclose the whole block with {literal}...{/literal} so that Smarty will ignore any { and } instructions within that block."
Siinä mainitaan esim. tuo HTML Nugget sivupalkki-plugin. Asia on teille varmaan tuttu, mutta mainitsen sen nyt varmuuden vuoksi. Voidaan tietysti odottaa mahdollista päivitystä ohjelmaan. Parempi olisi ehkä lähettää sinne kysymys että miksi ei toimi/milloin toimii Vimeo-upotus.
"I want to add some links / HTML to my blog!
You can add custom pieces of HTML code or links to any special pages to your blog sidebar by installing a "HTML Nugget" sidebar plugin. There you can enter arbitrary HTML or Javascript?.
The other possibility is to use a editor to edit your *.tpl template files and place custom HTML inside the files where you want it. Like you can add custom headers into the index.tpl file.
When you paste javascript code into a .tpl file, you must make sure to replace all occurences of "{" to "{ldelim}" and "}" to "{rdelim}". Smarty requires you to do that, because it uses the {} characters for special instructions. If you forget to escape this, you get an error like
Fatal error: Smarty error: [in file:...]: syntax error: unrecognized tag: ..."
If you paste huge amounts of Java Script?, you can also enclose the whole block with {literal}...{/literal} so that Smarty will ignore any { and } instructions within that block."
Siinä mainitaan esim. tuo HTML Nugget sivupalkki-plugin. Asia on teille varmaan tuttu, mutta mainitsen sen nyt varmuuden vuoksi. Voidaan tietysti odottaa mahdollista päivitystä ohjelmaan. Parempi olisi ehkä lähettää sinne kysymys että miksi ei toimi/milloin toimii Vimeo-upotus.