Welcome to Geeklog, Anonymous Friday, May 23 2025 @ 03:54 am EDT
Geeklog Forums
Plugin Elements in a Static Page
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.
18
12
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.
Looks like it would be easier to create the links manually using Autotag.
Maybe I figure something else out.
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.
11
15
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.
$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.
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.
18
12
Quote
All times are EDT. The time is now 03:54 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