Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sub Menu links in a sidebar & .html
#1
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)
PHP Code:
<?php $links return_i18n_menu_data('index'11);
                                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'11);
                                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 ;-)
Reply




Users browsing this thread: 1 Guest(s)