Posts: 346
Threads: 27
Joined: Sep 2010
2013-08-22, 07:26:14
(This post was last modified: 2015-07-16, 01:34:18 by Angryboy.)
Posts: 1,928
Threads: 88
Joined: Apr 2010
transliteration of the link does not work
Posts: 346
Threads: 27
Joined: Sep 2010
Changelog (v0.2)
- Transliteration added (for page title, slug and url).
Posts: 1,928
Threads: 88
Joined: Apr 2010
why Tittle transliteration?
Posts: 346
Threads: 27
Joined: Sep 2010
2013-08-22, 18:56:22
(This post was last modified: 2013-08-22, 18:56:42 by Angryboy.)
I thought that normal page titles had that done as well (from looking in the admin/changedata.php code). Should that be removed for titles?
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 346
Threads: 27
Joined: Sep 2010
Changelog (v0.3)
- Transliteration no longer affects menu titles/labels
- HTML base tag added to fix relative urls (now all are relative to site url)
Posts: 7
Threads: 0
Joined: Feb 2013
I'm having problem enabling Custom Menu:
Warning: Invalid argument supplied for foreach() in /home/xtz/domains/test.xyz.com/public_html/plugins/custom_menu/php/class.php on line 243
GS 3.2.2, debug mode not showing anything.
Posts: 346
Threads: 27
Joined: Sep 2010
Does the file data/other/custom_menu/default.xml exist? (It should be created automatically when you access the Customize Menus page). I don't get the error - even if I delete the custom_menu folder and reload the page.
Nevertheless:
Changelog (v0.31)
- Attempt to fix error ohayo picked up
Posts: 7
Threads: 0
Joined: Feb 2013
2013-08-23, 04:15:32
(This post was last modified: 2013-08-23, 04:18:09 by ohayo.)
I've checked and there was no visible default.xml, but when I was trying to copy newly created I was ask if I wanted to overwrite old default.xml.
Also I couldn't delete folder "custom_menu" so I've check the folder permissions - it was 357 (not sure, definitely 3xx). Setting permissions manually to 755 solved the problem and now I can create new entries.
OK, checked other server - same situation. Default permission is 341, changing to 755 resolves the problem
Posts: 346
Threads: 27
Joined: Sep 2010
That's good to hear :-)
So are you affirming that this is a problem on your server (with directory/file write permissions)? Or is this the only plugin that you've used that has failed to create directories with the correct permissions?
Posts: 1,928
Threads: 88
Joined: Apr 2010
2013-08-23, 04:29:20
(This post was last modified: 2013-08-23, 04:42:58 by Oleg06.)
and I also doing well cool plugin, very useful
Posts: 7
Threads: 0
Joined: Feb 2013
2013-08-23, 04:38:47
(This post was last modified: 2013-08-23, 04:39:30 by ohayo.)
This is the only plugin that failed (I'm using about 10 plugins). I've tested 2 separate servers and problem was still there, don't know why.
Is it possible to mix Custom Menu plugin with Bootstrap dropdown menus (now it's based on I18N menu)? It would be useful for people using #anchors in links as in GS you cannot save link with "#".
Check - http://get-simple.info/forums/showthread...038&page=2
I'm using it here - http://test.parepikseli.com/
Code: <div class="nav-collapse">
<ul class="nav">
<?php get_i18n_navigation(get_page_slug(FALSE),0,1,I18N_SHOW_MENU, 'nav'); ?>
</ul>
</div>
+ component 'nav'
PHP Code: <?php $ismenu = false; $caret = $dropdown = $dropdown_list = '';
$classStr = $item->classes; $classes = explode(' ',$item->classes); if(in_array('current',$classes)) $classStr .= ' active'; if(in_array('currentpath',$classes)) $classStr .= ' active';
if($item->hasChildren and ($item->isOpen or $ismenu==true)){ if(in_array('open',$classes)) $classStr .= ' dropdown'; $dropdown = 'data-toggle="dropdown" class="dropdown-toggle"'; $dropdown_list = ' class="dropdown-menu"'; $caret = '<b class="caret"></b>'; $classStr = str_replace('open','',$classStr); }
?> <li class="<?php echo $classStr; ?>"> <a href="<?php echo htmlspecialchars($item->link) . "\""; echo ' '.$dropdown; ?> > <?php # debugLog(htmlspecialchars($item->text)); echo htmlspecialchars($item->text); echo $caret ?> </a> <?php if ($item->isOpen) { ?> <ul<?php echo $dropdown_list.'>'; $item->outputChildren(); ?></ul> <?php } ?> </li>
Posts: 1,928
Threads: 88
Joined: Apr 2010
2013-08-23, 05:06:43
(This post was last modified: 2013-08-23, 05:14:53 by Oleg06.)
can come up with a class currentpath?
and mysite/ssylka1/ssylka2/ssylka3/
Posts: 346
Threads: 27
Joined: Sep 2010
Changelog (v0.4)
- Classes for current path, current item, parents (equivalent of hasChildren) and children (terminating items) added
- Main PHP Function now has $classes parameter for you to set your own names for the classes above:
PHP Code: <?php get_custom_menu($menu, $classes=array('currentpath' => 'newcurrentpath', ...)); ?>
-- The array's keys correspond to the class names. The values correspond to the new values that they will take.
-- Available keys: currentpath, current, parent, child
Posts: 59
Threads: 0
Joined: Mar 2012
I had permission problem too, but after change folder perms > 755 everything work like charm Great job again ! Many ThX AB
Posts: 1,928
Threads: 88
Joined: Apr 2010
is it possible to make so that when you create a new page is added menu item? but to leave the ability to add individual menu items.
Posts: 346
Threads: 27
Joined: Sep 2010
It's very unlikely. The menus created are designed to exist independently of all other data structures. I can't think of a way to work that feature in successfully.
Posts: 1,928
Threads: 88
Joined: Apr 2010
yes, I forgot, the plugin is very useful and cool
Posts: 166
Threads: 7
Joined: Jan 2013
I tried instal of v0.4 in both gs3.1.2 and gs3.2.3. I had permissions prob in both with custom_menu data directory being created with perms of 1321. I changed it to 0755 and now works ok in gs3.2.3 but in gs3.1.2 it only part works, with the '+ Item' button not working, so can't add a second menu item :-(
Guess I'll stick with the latest stable GS :-)
Posts: 1,247
Threads: 82
Joined: Feb 2011
2013-09-09, 18:50:01
(This post was last modified: 2013-09-10, 22:09:46 by datiswous.)
Hey, very nice plugin!
What you could ad:
- drop down menu for slug-selection
- add image instead or with link
Some websites use images as links in a menu.
Posts: 52
Threads: 2
Joined: May 2013
2013-09-09, 19:19:59
(This post was last modified: 2013-09-13, 05:00:06 by Everyone.)
Just discovered this... now I'm really angry at myself for using this other CMS (which by now I grown to hate) for a project of mine...
@datiswous: Important navigation menus don't consist of images because such menus aren't SEO friendly.
Posts: 1,247
Threads: 82
Joined: Feb 2011
2013-09-09, 19:55:44
(This post was last modified: 2013-09-10, 22:09:34 by datiswous.)
(2013-09-09, 19:19:59)Everyone Wrote: @datiswous: Important navigation menus don't consist of images because such menus aren't CEO friendly.
I thought there are ways to make them still seo friendly.
Posts: 346
Threads: 27
Joined: Sep 2010
2013-09-12, 23:59:43
(This post was last modified: 2013-09-13, 00:02:27 by Angryboy.)
Changelog (v0.5)
- Deleted unnecessary create.php file (if you still have this file, you can safely delete it)
- Dropdown menu with list of page slugs added for convenience ( @datiswous)
- 'Image' field added - when URL is supplied, image is shown instead of text ( @datiswous)
-- Also, if you do not provide a domain prefix (http://...), the image url is made relative to the data/uploads/ folder
- If no URL is provided, no anchors are output around the text/image are output
- Image and anchors have 'title/alt' attributes for better SEO ( @Everyone)
- Ensures no two entries can have the same slug (before, this problem could cause infinite recursive loop(s) when displaying the menu)
Posts: 59
Threads: 0
Joined: Mar 2012
|