2012-04-19, 11:47:13
n00dles101 Wrote:@alienee2, let me clean up the code a little and i'll post it up.
@n00dles101 -thanks - that's great - no rush, but i am keen to try shortcodes..!
I was able to get jquery tabs working with DynPages, and after reading the worpress wiki on shortcodes, the usage is very similar..
i'm wondering how you would use shortcodes differently that dynpages;
i'm thinking that being able to use more php code in the processing is the main advantage; for example, with the tabs, i have to manually specify the id # of the tab heading to match the tab content div, and i'm thinking that in shortcodes i could just code the id #s to generate automatically... this is how i'm doing it now:
Code:
{% tab-heading %}
{% tab-name 1 "This is" %} {% tab-name 2 "Tabbed" %} {% tab-name 3 "Content" %}
{% tab-heading-end %}
{% tab-content 1 %}
Some content
{% tab-end %}
{% tab-content 2 %}
Some content
{% tab-end %}
{% tab-content 3 %}
Some content
{% tab-end %}
-marc