[deepamehta-devel] updating clientsideplugin: register_css_stylesheets
Jörg Richter
jri at deepamehta.de
Mi Mai 23 15:57:12 CEST 2012
Hi Malte,
CSS loading doesn't have changed from 4.0.7 to 4.0.11
I think you've actually built with 4.0.6.
From 4.0.6 to 4.0.7 the function
dm4c.register_css_stylesheet()
has been renamed to
dm4c.load_stylesheet()
This should answer your question.
That's nice you adapt the AAL plugin!
-----------------------------
Generally:
In your plugin class you load a stylesheet with dm4c.load_stylesheet().
Look e.g. at the Topicmaps plugin:
dm4c.load_stylesheet("/de.deepamehta.topicmaps/style/topicmaps.css")
Here, de.deepamehta.topicmaps is the bundle ID of your plugin. That namespace part is mandatory.
Below that namespace the content of your bundle's /src/main/resources/web directory is published.
Check your browsers network log weather the stylesheet request fails.
Also empty the browser cache.
Cheers,
Jörg
On May 23, 2012, at 15:09, Malte Reißig wrote:
> hi djiri!
>
> i have clientside plugin loading a custom css style and i built it the last time with the dm4.0.7 release, but unfortunately i cant built it anymore. would be great if you could point me to the place where these hook changed so i am able to built this plugin against the freshest 4.0.11 release!
>
> and thanks a million times for enabling many-cardinality in deepamehta, i cant wait to test this new feature with the asocially associated audiolibrary, now i can introduce "artists" in relation to all the "songs"!
>
> thanks a lot!
>
> cheers!
>
> _______________________________________________
> deepamehta-devel mailing list
> deepamehta-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/deepamehta-devel
Mehr Informationen über die Mailingliste devel