2013-10-07, 20:01:08
is it possible to come up with some function, that to link in the menu are relative, not absolute
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
|
link in the menu are relative
|
2013-10-07, 20:01:08
is it possible to come up with some function, that to link in the menu are relative, not absolute
2013-10-07, 22:53:10
Should be easy to do.
The get_nav... function uses find_url() get the path and it takes a param for relative. So we can pass one through get_nav or use some global option. PHP Code: * @param string $slug
I've changed so in basic.php much but were absolute links
Code: function find_url($slug, $parent, $type='relative') { (2013-10-07, 22:53:10)shawn_a Wrote: Should be easy to do.
2013-10-07, 23:59:37
Change theme_functions
get_naviagtion This add the param type ( default relative ) PHP Code: /**
2013-10-08, 00:08:08
Thank you very much remains to get rid of this
Code: <a href="\/ (2013-10-07, 23:59:37)shawn_a Wrote: Change theme_functions
2013-10-08, 00:12:59
Where do you get that?
I do not get anything like that.
2013-10-08, 00:20:39
I changed the file theme_functions.php[/b]
Code: <ul class="nav"> (2013-10-08, 00:12:59)shawn_a Wrote: Where do you get that?
2013-10-08, 00:23:04
you were not supposed to change find_url at all.
2013-10-08, 00:31:11
I did not change basic.php
2013-10-08, 01:06:13
may slash appears only on the local server
2013-10-08, 06:20:27
is it windows ?
yes it is Denver on Windows7, I checked for hosting your suggestion works, but one slash is still, so I had to change the code in the file basic.php
Code: } elseif($type == 'relative') { Code: Notice: Undefined variable: full in B:\home\0parallax.ru\www\admin\inc\basic.php on line 429 I want to use this script http://getbootstrap.com/javascript/#scrollspy links should look like this <a href="#about" title="about">About</a>
2013-10-08, 07:59:53
That is not a relative link, that is an anchor, you should be looking at a making a single page site. There is more information around the forums.
2013-10-08, 15:56:28
I use a theme http://get-simple.info/extend/theme/onepage-innovation/629/, but as absolute links, the script does not work http://getbootstrap.com/javascript/#scrollspy
2013-10-12, 21:06:41
problem was solved very simply with the use of plugin i18n
2013-11-03, 16:40:34
I use i18n plugin for dropmenus and it helps a lot
But I have to admit that this Bootstrap javascript rocks badly! Oleg, would you like to share here some codeline to inspire someone (just me)? :-D
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
I used the following code to the menu component
Code: <li class="<?php echo $item->classes; ?>">
2013-11-03, 18:48:25
Thanks for sharing, mate.
I am gonna try something like this... Landing Page? Are you in the web-marketing stuff?
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
2013-11-03, 19:13:18
rather, try to work
|
« Next Oldest | Next Newest »
|