• Resolved husch

    (@schouppe)


    Hi,
    Is it possible to use independent sidenotes in a single page with multiple tabs? For example, you have a page with tabs “introduction”, “location”, “about”, … Each tab is a named section of the same page but is displayed independently (see for example the plugin GTabs). The sidenotes should renumber for each tab and only displayed in that tab.

    Thanks.

    https://www.ads-software.com/plugins/side-matter/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author setzer

    (@setzer)

    Hi husch,

    This function would need to be implemented within the tabs plugin/theme rather than in Side Matter. A tabs plugin that dynamically loaded a separate page for each tab (rather than shortcode-delimited sections of a single page), and refreshed sidebar widgets upon switching tabs, could work.

    I was not able to find GTabs, but tried similar plugins (e.g.) and they all seem to use the shortcode/sections approach. Unfortunately, this may not be possible with any of the tabs plugins currently available.

    Thread Starter husch

    (@schouppe)

    Hi setzer,
    Thanks for your quick and accurate reply. I thought I had a solution after your suggestion with dynamically loaded pages, but not quite yet.
    I have installed Ultimate Shortcodes. With this plugin, you can create tabs and load posts (in pages and posts; something like:

    [su_tabs][su_tab title=”Course description”][su_post field=”post_content” post_id=”1792″][/su_tab]
    [su_tab title=”Lessons”][su_post field=”post_content” post_id=”1782″][/su_tab]
    [su_tab title=”Course material”][su_post field=”post_content” post_id=”1788″][/su_tab][/su_tabs]

    This works well but the [ref][/ref] shortcode is no longer “interpreted”, probably because the “main” page does not contain the actual [ref]-codes as they are read-in as text.

    Do you see some solution to this?

    Thanks.

    Thread Starter husch

    (@schouppe)

    Hi setzer,
    Perhaps I found a solution for the previous question. Maybe also useful to other users.
    1. You can split a post or page in multiple sections with the <!–nextpage–> tag. In most themes, this gives you a numbered page view at the bottom of the page (e.g. pages: 1 2 3). Side matter works fine with these multi-pages and renumbers the notes.
    2. If you want a tabbed title in stead of numbers, replace the wp_link_pages function with a custom function, e.g. wp_link_pages_titled. The code for this function can be found at https://www.ads-software.com/support/topic/custom-titles-to-replace-page-numbers-on-post-pagination?replies=1
    3. Add a pagetitle tag for each section; e.g. <!–pagetitle:myTitle-for-this-section–>. Best place is probably directly after the nextpage tag
    4. if you want the pagetitles at the top of the post or page, modify the file content.php (for the twentytwelve theme). Put the wp_link_pages_titled function before the_content function.
    5. Use CSS to style the titles. See for example, the last comment on https://wordpress.stackexchange.com/questions/14406/how-to-style-current-page-number-wp-link-pages/14460#14460

    Plugin Author setzer

    (@setzer)

    husch,

    Thanks for the information. Sounds like you have worked out a solution to the problem — the use of <!--nextpage--> is clever. I’ll direct others to your post down the road if they’re seeking this functionality.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sidenotes with tabs’ is closed to new replies.