Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:15 am EST

Geeklog Forums

Plugin Elements in a Static Page


Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
Does anyone know if you can put plg_menu_elements into a static page? If so how?
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
What are you really trying to do? plg_menu_elements is part of the header.thtml isn't it? So copy the code from lib-common's COM_siteHeader() where the content is generated into your static page.
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
Well I thought I asked if you could put the plg_menu_elements into a static page.
You know this tag.

Text Formatted Code
{plg_menu_elements}


Looks like it would be easier to create the links manually using Autotag.

Maybe I figure something else out.
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
Just by dumb luck, found this in the Professional theme Readme for putting Plugin menu items in a block.
Text Formatted Code

    $retval = '';
    $plugin_menu = PLG_getMenuItems();
    for( $i = 1; $i <= count($plugin_menu); $i++ )
    {
        $url = current($plugin_menu);
        $plg = key($plugin_menu);
        $retval .= '<a href="' . $url . '">' . $plg . '</a><br>';
        next( $plugin_menu );
    }
    return $retval;
 


Then after following the directions in "your_site/docs/staticpages.html#php" to turn on php for static pages, had a dropdown box with the choices:

do not execute PHP
execute PHP (return)
execute PHP

chose execute PHP and inserted above code.

HTH,

Chuck
Too many hands on my time.
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
I'll give that a try this weekend.
 Quote

All times are EST. The time is now 09:15 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content