bnzk / djangocms-baseplugins Goto Github PK
View Code? Open in Web Editor NEWa common base for consistent djangocms plugin development. includes default plugins.
License: MIT License
a common base for consistent djangocms plugin development. includes default plugins.
License: MIT License
same same, but instead of child plugins, use inlines.
a bit as https://github.com/arteria/djangocms-inline-comment does it?
requests
django-filer
django-mailprotector
django-ckeditor
if using only a small subset of the plugins (no file fields, no richtext, no special plugins), one could do without those...explain that probably you are gonna need 'em.
like startapp from django for a baseplugin: use all available tools, create template, etc etc.
file
should be a translated fieldusing srcset, and maybe have custom templatetag, for creating all the versions.
already added. make it more solid, document it
style attribute should be not allowed, for example. class, at max.
to define if plugin at all is shown.
for example:
def show_wrapper(self):
if self.image:
return True
default from baseplugin would still be True
. When False
, render the empty/hidden plugin template?!
ImproperlyConfigured
otherwise.when using latest modeltranslation!
FIELD_LABELS = {
'title': _('Custom Label!'),
}
FIELD_HELP_TEXTS = {
'title': _('Custom Help Text possible!'),
}
class="plugin_column plugin_column_xy"
https://developer.vimeo.com/api/oembed/videos
and reasearch for youtube oembed parameters?
__str__
and other locationsbleach cannot remove <style> AND it's contents...nogo.
for each plugin. think about a generic form, used for every plugin?
ie AbstractBasePluginModelMixin
and AbstractBasePluginModel
, that form todays AbstractBasePlugin
. This would allow to use the basic concept, but without the default fields provided.
The mixin would define a basic API:
the model provides:
dropdown or drag and drop, or none. via settings.
id="{{ object.get_css_id }}"
navigate within a page, via hashbangs. add simple [anchor/link_text] inline to plugin, scroll around, done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.