Posts: 357
Threads: 23
Joined: Dec 2009
2010-04-14, 09:40:50
(This post was last modified: 2010-06-07, 03:55:24 by baris.)
Hello.
I leave a plugin that allows to put the parent page and 'his pages childrens', of the current page.
For use, to put in template:
Code: <?php menu_pchild(); ?>
PD: it is my first programming in php... please test if there is something wrong...
Regards.
PD2: the version 3 in http://get-simple.info/forum/viewtopic.p...4404#p4404
PD3: the version 4 in http://get-simple.info/forum/viewtopic.p...5136#p5136
PD4: the version 4.1 in http://get-simple.info/forum/viewtopic.p...5146#p5146
Posts: 357
Threads: 23
Joined: Dec 2009
2010-04-18, 10:57:31
(This post was last modified: 2010-04-18, 11:11:32 by baris.)
Hello.
Upload the version 2.
I have improved the order to show the page childrens.
The order taking is that there in the Page Management > Page Options > Add to menu >> Priority; and the name that show is the Menu Text of Add to menu.
Then you should enabled 'Add to menu' and put a priority and a menu text and save it. After, if you don't want that show in the menu of GetSimple uncheck 'Add to menu', but yes will be show in my menu.
PD: sorry for my bad english.
Posts: 104
Threads: 15
Joined: Oct 2009
Do you have a working example site?
Thanks.
homershines
Posts: 357
Threads: 23
Joined: Dec 2009
2010-04-20, 17:37:40
(This post was last modified: 2010-06-05, 20:04:30 by baris.)
Posts: 9
Threads: 3
Joined: Mar 2010
homershines Wrote:Do you have a working example site?
Thanks.
homershines
Homer, this plugin works very slick, I've used it to output anything page related. Title, url, content. Pair it with Noodles Customfields plugin and you can output the customfields attributed to the pages being listed. I'll post some examples when I'm done.
Posts: 104
Threads: 15
Joined: Oct 2009
cameron Wrote:homershines Wrote:Do you have a working example site?
Thanks.
homershines
Homer, this plugin works very slick, I've used it to output anything page related. Title, url, content. Pair it with Noodles Customfields plugin and you can output the customfields attributed to the pages being listed. I'll post some examples when I'm done.
Sounds good.
Can't wait to see.
Thanks.
homershines
Posts: 16
Threads: 4
Joined: Apr 2010
Brilliant, thank you! I will show you what I've done when I'm finished the site and I'm interested to see what others do.
Posts: 16
Threads: 4
Joined: Apr 2010
Just a quick question, is there a way to show the menu text for the parent instead of the url? I have looked at the plugin file and tried a few things but I don't really know what I'm doing!
Posts: 357
Threads: 23
Joined: Dec 2009
Hello,
Upload the version 3.
I have improved the order to show the page childrens.
The order taking is that there in the Page Management > Page Options > Add to menu >> Priority; and the name that show is the Menu Text of Add to menu.
Then you should enabled 'Add to menu' and put a priority and a menu text and save it. After, if you don't want that show in the menu of GetSimple uncheck 'Add to menu', but yes will be show in my menu.
In this version, show the menu text of parent, instead of url:
Quote:banter in post 8:
Just a quick question, is there a way to show the menu text for the parent instead of the url? I have looked at the plugin file and tried a few things but I don't really know what I'm doing!
PD: sorry for my bad english.
Regards.
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 10
Threads: 3
Joined: Feb 2010
I've been using this to good effect on lower-level pages, but now I need to use it on a top-level page and the links don't seem to have the appropriate subdirectory. Normally they are on pages like this:
example.com/services/design
But when I use the plugin on a top level page, the links go to this instead:
example.com/design
Is there a way to fix this by changing something in the plugin? I've already changed it to put the links in columns based on how many links there are.
Posts: 10
Threads: 3
Joined: Feb 2010
It looks like all I'd really need to do is to replace where it's pulling the page slug with a request for the page URL. I can see where it's populating the array for the actual menu HREFs, but I can't figure out what it's actually doing. Any suggestions?
Posts: 357
Threads: 23
Joined: Dec 2009
Hello StateStreet,
Do you have ' Use Fancy URLs ' enabled?.
How are you 'url'?
I do not understand well the problem (my english isn´t good).
Regards.
Posts: 10
Threads: 3
Joined: Feb 2010
Hi, Cumbe!
Yes, I have 'Use fancy URLS' enabled. It's actually working fine with that setting; it just seems that it doesn't work with multi-level fancy URLs, such as "category/page" instead of "/page".
I really like your plugin, though!
Posts: 357
Threads: 23
Joined: Dec 2009
Hello,
Upload the version 4.
With this version the plugin works with 'Use fancy URLS' enabled, too.
Working example sites:
- 'Use fancy URLS' enabled: http://cumbe.no-ip.biz/GS/
- 'Use fancy URLS' disabled: http://cumbe.no-ip.biz/GS_201_RC3/index.php?id=index
I've programmed the best I know, surely there are better ways, but... If someone wants to improve, he is free to do.
Regards.
PD: if there is a bug, please comment.
Posts: 357
Threads: 23
Joined: Dec 2009
2010-06-07, 03:53:17
(This post was last modified: 2010-06-07, 04:02:12 by baris.)
Hello,
Upload the version 4.1
With this version the plugin works with 'Use fancy URLS' enabled, too.
Working example sites:
- 'Use fancy URLS' enabled: http://cumbe.no-ip.biz/GS/
- 'Use fancy URLS' disabled: http://cumbe.no-ip.biz/GS_201_RC3/index.php?id=index
I have done a improve small, replacing the part that reads the xml files of website and cp_settings by two global declarations at first of script. Of this way, is some more fast the plugin.
Regards.
PD: if there is a bug, please comment.
Posts: 1
Threads: 0
Joined: Jun 2010
Hello, i'm new to GetSimple and evaluating it now.
First of all, i'd like to thank to all of those devs and idea makers.
To: Cumbe
many thanks! This feature is very important to me, and to the others as i gues
I'm going to prove it!
Posts: 2
Threads: 0
Joined: Jun 2010
Hello!
Why the parent url form http://site.com/parent/parent ?
I think that he must be http://site.com/parent/
Sorry, for my english
Posts: 2
Threads: 0
Joined: Jun 2010
When I delete page, cache is not clean
|