keissfootball
08-22-2006, 02:18 PM
Hello. I'm trying to create a site map, only I don't want to update it every time when adding another section. My site map is similar to my navigation menu, so I want somehow when adding a section to navigation menu, automatically add it to site map. I have never seen how the site maps work, but I'm 99% sure that they are controlled automatically. So here's my code:
navigation_menu.html
some JS
...
...
...
some CSS
...
...
...
and finally HTML, something like this:
<ul id="primary-nav">
<li><a href="http://www.123.lv/123.php?sc=aboutme">About me</a></li>
<li class="menuparent"><a href="#">My marks</a>
<ul>
<li><a href="http://www.123.lv/123.php?sc=123">123</a></li>
<li><a href="http://www.123.lv/123.php?sc=456">456</a></li>
<li><a href="http://www.123.lv/123.php?sc=789">789</a></li>
</ul>
</li>
</ul>
and I want my site map like this. I want to remove id="primary-nav" (that's the only place where it is) and remove <a href="#">...</a> where class="menuparent".
and of course I need to get rid from JS and CSS when I put this code into Site map section
Can you help me? How can I achieve this? I suppose that I can do it with preg_replace maybe, but I don't know if it's the right way...
navigation_menu.html
some JS
...
...
...
some CSS
...
...
...
and finally HTML, something like this:
<ul id="primary-nav">
<li><a href="http://www.123.lv/123.php?sc=aboutme">About me</a></li>
<li class="menuparent"><a href="#">My marks</a>
<ul>
<li><a href="http://www.123.lv/123.php?sc=123">123</a></li>
<li><a href="http://www.123.lv/123.php?sc=456">456</a></li>
<li><a href="http://www.123.lv/123.php?sc=789">789</a></li>
</ul>
</li>
</ul>
and I want my site map like this. I want to remove id="primary-nav" (that's the only place where it is) and remove <a href="#">...</a> where class="menuparent".
and of course I need to get rid from JS and CSS when I put this code into Site map section
Can you help me? How can I achieve this? I suppose that I can do it with preg_replace maybe, but I don't know if it's the right way...