• Resolved OllieJones

    (@olliejones)


    I’m hoping to create a few inPageTabs from a list, in which the tag slugs come from variables.

    Is there a good way, from within a content_pageslug() {} method, to figure out the name of the current tab so I can render the correct content?

    (I’d have to use eval() to declare a content_pageslug_tabslug() function, but I obvs don’t want to do that.)

    Or is this a misbegotten idea I should abandon?

    Thanks for a great framework!

    • This topic was modified 3 years, 1 month ago by OllieJones.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    You can use the getCurrentTabSlug() method of the property object.

    
    function content_pageslug() {
        $current_tab_slug = $this->oProp->getCurrentTabSlug();
    }
    
    Thread Starter OllieJones

    (@olliejones)

    Awesome, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘when naming inPageTabs with variables, how can I use content_pageslug(){}’ is closed to new replies.