Welcome Guest, Not a member yet? Register   Sign In
Shortcodes - html modules‏
#1

[eluser]Lykos22[/eluser]
I'd like some help please.

I'm using this library that creates wordpress-like shortcodes.

What I want to do is to create some html modules (htmlmodule is the name of my shortcode model) such us accordions, tab panels etc that may appear within the other content. I'm not quite sure though if something like this can be done, but the main idea (at least how I 've planned to do it ) is something like this

type the shortcode e.g. [ci:htmlmodule id=accordion] that will produce this accordion.

So far so good, but here comes the headache.
The content (panel-headings and panel-bodies in the accordion example) of the accordion should be dynamic. So how can I do this??? I googled to see something about the wordpress shortcodes and found out that a good idea to put the content inside the accordion-shortcode is to make something like this
Code:
[ci:htmlmodules id=accordion]
    [panel]
          [panel-head]
           This is a heading
          [/panel-head]

          [panel-body]
              Lorem ipsum text here ...
          [/panel-body]
    [/panel]
    [panel]
           [panel-head]
           This is another heading
          [/panel-head]

          [panel-body]
              Another text here ...
          [/panel-body]
    [/panel]
etc etc ...
[/accordion]
which actually looks great. The problem is that I can't figure out how can I pass the content like this to my shortcodes library and the htmlmodule model in order to generate the accordion panel.

Any ideas or help would be appreciated.
#2

[eluser]InsiteFX[/eluser]
I would search the forums for HMVC and Widgets




Theme © iAndrew 2016 - Forum software by © MyBB