javascript - Insert DIV without knowing element classes -


i trying insert div on several positions in joomla websites; not in native articles in other components. positions are:

  • after title
  • below article
  • right / left of article

since every component has own layout , each template can use own setup (i think) cannot use default jquery functions append(), after(), etc because classes used reference can differ each component / template.

in way possible make generic solution works (joomla) websites?

thanks in advance!

cheers, roy

assuming can choose runtime instead of dynamically, best option here create joomla content plugin, since manipulations related articles.

http://docs.joomla.org/plugin/events/content

oncontentaftertitle 1st requirement, oncontentprepare or oncontentbeforedisplay 2nd , third.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -