Hi,
im quite a bit rusty with GetSimple however doing mybest to figure stuff out (the best way to re-learn) but I got stuck on this one:
I have this to call SUb Menu (Sub pages)
And I have 'Fancy URL's' with '.html' setup (.htacces too).
Parent pages are all well, but their children with the links in the sidebar not - Im missing '.html'.
So, can't figure out how to add '.html' in above code to make links work with Fancy Url's.
For now I have only errors .. so I must be doing sth wrong ...
Please suggestions !
Thanx
edit: embarrassing .. sometimes i have to get the code out of an editor to see it,
it works now. Im sure there are more elegant solutions ;-)
im quite a bit rusty with GetSimple however doing mybest to figure stuff out (the best way to re-learn) but I got stuck on this one:
I have this to call SUb Menu (Sub pages)
PHP Code:
<?php $links = return_i18n_menu_data('index', 1, 1);
foreach ($links as $link) { ?>
<li><a href="<?php get_site_url(); echo $link['url'];?>
"<?php if ($link['url'] == return_page_slug()) {
echo ' class="current"';} ?>
><?php echo $link['title']; ?></a></li>
<?php }
?>
And I have 'Fancy URL's' with '.html' setup (.htacces too).
Parent pages are all well, but their children with the links in the sidebar not - Im missing '.html'.
So, can't figure out how to add '.html' in above code to make links work with Fancy Url's.
For now I have only errors .. so I must be doing sth wrong ...
Please suggestions !
Thanx
edit: embarrassing .. sometimes i have to get the code out of an editor to see it,
PHP Code:
<?php $links = return_i18n_menu_data('index', 1, 1);
foreach ($links as $link) { ?>
<li><a href="<?php get_site_url(); echo $link['url']; echo '.html';?>
"<?php if ($link['url'] == return_page_slug()) {
echo ' class="current"';} ?>
><?php echo $link['title']; ?></a></li>
<?php }
?>
it works now. Im sure there are more elegant solutions ;-)